@khanacademy/wonder-blocks-popover 5.0.5 → 5.0.6

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,17 @@
1
1
  # @khanacademy/wonder-blocks-popover
2
2
 
3
+ ## 5.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 03bd4c58: Reverts changes to focus manager. Doesn't do what we need it to do, and would require further adjustments or changes to Perseus widgets. Better to just wait for an updated implementation.
8
+ - Updated dependencies [8cfaeab0]
9
+ - Updated dependencies [c162abb4]
10
+ - @khanacademy/wonder-blocks-tokens@4.1.0
11
+ - @khanacademy/wonder-blocks-icon-button@6.0.7
12
+ - @khanacademy/wonder-blocks-modal@7.0.5
13
+ - @khanacademy/wonder-blocks-tooltip@4.0.5
14
+
3
15
  ## 5.0.5
4
16
 
5
17
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -293,9 +293,8 @@ class FocusManager extends React.Component {
293
293
  }
294
294
  };
295
295
  this.changeFocusabilityInsidePopover = (enabled = true) => {
296
+ const tabIndex = enabled ? "0" : "-1";
296
297
  this.elementsThatCanBeFocusableInsidePopover.forEach(element => {
297
- var _element$getAttribute;
298
- const tabIndex = enabled ? (_element$getAttribute = element.getAttribute("tabIndex")) != null ? _element$getAttribute : "0" : "-1";
299
298
  element.setAttribute("tabIndex", tabIndex);
300
299
  });
301
300
  };
package/dist/index.js CHANGED
@@ -323,9 +323,8 @@ class FocusManager extends React__namespace.Component {
323
323
  }
324
324
  };
325
325
  this.changeFocusabilityInsidePopover = (enabled = true) => {
326
+ const tabIndex = enabled ? "0" : "-1";
326
327
  this.elementsThatCanBeFocusableInsidePopover.forEach(element => {
327
- var _element$getAttribute;
328
- const tabIndex = enabled ? (_element$getAttribute = element.getAttribute("tabIndex")) != null ? _element$getAttribute : "0" : "-1";
329
328
  element.setAttribute("tabIndex", tabIndex);
330
329
  });
331
330
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-popover",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.18.6",
20
20
  "@khanacademy/wonder-blocks-core": "^11.1.0",
21
- "@khanacademy/wonder-blocks-icon-button": "^6.0.6",
22
- "@khanacademy/wonder-blocks-modal": "^7.0.4",
23
- "@khanacademy/wonder-blocks-tokens": "^4.0.0",
24
- "@khanacademy/wonder-blocks-tooltip": "^4.0.4",
21
+ "@khanacademy/wonder-blocks-icon-button": "^6.0.7",
22
+ "@khanacademy/wonder-blocks-modal": "^7.0.5",
23
+ "@khanacademy/wonder-blocks-tokens": "^4.1.0",
24
+ "@khanacademy/wonder-blocks-tooltip": "^4.0.5",
25
25
  "@khanacademy/wonder-blocks-typography": "^3.0.5"
26
26
  },
27
27
  "peerDependencies": {