@khanacademy/wonder-blocks-popover 3.2.7 → 3.2.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,18 @@
1
1
  # @khanacademy/wonder-blocks-popover
2
2
 
3
+ ## 3.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 559e82d5: Update to build tooling, generating smaller output
8
+ - Updated dependencies [559e82d5]
9
+ - @khanacademy/wonder-blocks-core@6.4.3
10
+ - @khanacademy/wonder-blocks-icon-button@5.3.3
11
+ - @khanacademy/wonder-blocks-modal@5.1.8
12
+ - @khanacademy/wonder-blocks-tokens@1.3.1
13
+ - @khanacademy/wonder-blocks-tooltip@2.3.7
14
+ - @khanacademy/wonder-blocks-typography@2.1.14
15
+
3
16
  ## 3.2.7
4
17
 
5
18
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _extends from '@babel/runtime/helpers/extends';
1
2
  import * as React from 'react';
2
3
  import * as ReactDOM from 'react-dom';
3
4
  import { View, IDProvider, addStyle } from '@khanacademy/wonder-blocks-core';
@@ -9,21 +10,6 @@ import { HeadingSmall, Body } from '@khanacademy/wonder-blocks-typography';
9
10
  import xIcon from '@phosphor-icons/core/regular/x.svg';
10
11
  import IconButton from '@khanacademy/wonder-blocks-icon-button';
11
12
 
12
- function _extends() {
13
- _extends = Object.assign ? Object.assign.bind() : function (target) {
14
- for (var i = 1; i < arguments.length; i++) {
15
- var source = arguments[i];
16
- for (var key in source) {
17
- if (Object.prototype.hasOwnProperty.call(source, key)) {
18
- target[key] = source[key];
19
- }
20
- }
21
- }
22
- return target;
23
- };
24
- return _extends.apply(this, arguments);
25
- }
26
-
27
13
  const defaultContext = {
28
14
  close: undefined,
29
15
  placement: "top"
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _extends = require('@babel/runtime/helpers/extends');
5
6
  var React = require('react');
6
7
  var ReactDOM = require('react-dom');
7
8
  var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
@@ -16,43 +17,29 @@ var IconButton = require('@khanacademy/wonder-blocks-icon-button');
16
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
18
 
18
19
  function _interopNamespace(e) {
19
- if (e && e.__esModule) return e;
20
- var n = Object.create(null);
21
- if (e) {
22
- Object.keys(e).forEach(function (k) {
23
- if (k !== 'default') {
24
- var d = Object.getOwnPropertyDescriptor(e, k);
25
- Object.defineProperty(n, k, d.get ? d : {
26
- enumerable: true,
27
- get: function () { return e[k]; }
20
+ if (e && e.__esModule) return e;
21
+ var n = Object.create(null);
22
+ if (e) {
23
+ Object.keys(e).forEach(function (k) {
24
+ if (k !== 'default') {
25
+ var d = Object.getOwnPropertyDescriptor(e, k);
26
+ Object.defineProperty(n, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () { return e[k]; }
29
+ });
30
+ }
28
31
  });
29
- }
30
- });
31
- }
32
- n["default"] = e;
33
- return Object.freeze(n);
32
+ }
33
+ n["default"] = e;
34
+ return Object.freeze(n);
34
35
  }
35
36
 
37
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
36
38
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
37
39
  var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
38
40
  var xIcon__default = /*#__PURE__*/_interopDefaultLegacy(xIcon);
39
41
  var IconButton__default = /*#__PURE__*/_interopDefaultLegacy(IconButton);
40
42
 
41
- function _extends() {
42
- _extends = Object.assign ? Object.assign.bind() : function (target) {
43
- for (var i = 1; i < arguments.length; i++) {
44
- var source = arguments[i];
45
- for (var key in source) {
46
- if (Object.prototype.hasOwnProperty.call(source, key)) {
47
- target[key] = source[key];
48
- }
49
- }
50
- }
51
- return target;
52
- };
53
- return _extends.apply(this, arguments);
54
- }
55
-
56
43
  const defaultContext = {
57
44
  close: undefined,
58
45
  placement: "top"
@@ -86,7 +73,7 @@ class PopoverAnchor extends React__namespace.Component {
86
73
  });
87
74
  return React__namespace.cloneElement(renderedChildren, sharedProps);
88
75
  } else {
89
- return React__namespace.cloneElement(children, _extends({}, children.props, sharedProps, {
76
+ return React__namespace.cloneElement(children, _extends__default["default"]({}, children.props, sharedProps, {
90
77
  onClick: children.props.onClick ? e => {
91
78
  e.stopPropagation();
92
79
  children.props.onClick();
@@ -497,7 +484,7 @@ class Popover extends React__namespace.Component {
497
484
  }, React__namespace.createElement(wonderBlocksTooltip.TooltipPopper, {
498
485
  anchorElement: anchorElement,
499
486
  placement: placement
500
- }, props => React__namespace.createElement(PopoverDialog, _extends({}, props, {
487
+ }, props => React__namespace.createElement(PopoverDialog, _extends__default["default"]({}, props, {
501
488
  "aria-describedby": `${uniqueId}-content`,
502
489
  "aria-labelledby": `${uniqueId}-title`,
503
490
  id: uniqueId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-popover",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,12 +16,12 @@
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
- "@khanacademy/wonder-blocks-core": "^6.4.2",
20
- "@khanacademy/wonder-blocks-icon-button": "^5.3.2",
21
- "@khanacademy/wonder-blocks-modal": "^5.1.7",
22
- "@khanacademy/wonder-blocks-tokens": "^1.3.0",
23
- "@khanacademy/wonder-blocks-tooltip": "^2.3.6",
24
- "@khanacademy/wonder-blocks-typography": "^2.1.13"
19
+ "@khanacademy/wonder-blocks-core": "^6.4.3",
20
+ "@khanacademy/wonder-blocks-icon-button": "^5.3.3",
21
+ "@khanacademy/wonder-blocks-modal": "^5.1.8",
22
+ "@khanacademy/wonder-blocks-tokens": "^1.3.1",
23
+ "@khanacademy/wonder-blocks-tooltip": "^2.3.7",
24
+ "@khanacademy/wonder-blocks-typography": "^2.1.14"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@phosphor-icons/core": "^2.0.2",
@@ -32,6 +32,6 @@
32
32
  "react-popper": "^2.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@khanacademy/wb-dev-build-settings": "^1.0.0"
35
+ "@khanacademy/wb-dev-build-settings": "^1.0.1"
36
36
  }
37
37
  }