@khanacademy/wonder-blocks-pill 3.1.0 → 3.1.1

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-pill
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
8
+ - Updated dependencies [ee8d95a]
9
+ - @khanacademy/wonder-blocks-clickable@6.1.1
10
+ - @khanacademy/wonder-blocks-core@12.1.1
11
+ - @khanacademy/wonder-blocks-link@7.1.1
12
+ - @khanacademy/wonder-blocks-tokens@4.2.1
13
+ - @khanacademy/wonder-blocks-typography@3.1.1
14
+
3
15
  ## 3.1.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.js CHANGED
@@ -9,7 +9,10 @@ var tokens = require('@khanacademy/wonder-blocks-tokens');
9
9
  var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
10
10
  var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
11
11
 
12
- function _interopNamespaceDefault(e) {
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ function _interopNamespace(e) {
15
+ if (e && e.__esModule) return e;
13
16
  var n = Object.create(null);
14
17
  if (e) {
15
18
  Object.keys(e).forEach(function (k) {
@@ -22,12 +25,15 @@ function _interopNamespaceDefault(e) {
22
25
  }
23
26
  });
24
27
  }
25
- n.default = e;
28
+ n["default"] = e;
26
29
  return Object.freeze(n);
27
30
  }
28
31
 
29
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
30
- var tokens__namespace = /*#__PURE__*/_interopNamespaceDefault(tokens);
32
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
33
+ var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
34
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
35
+ var Clickable__default = /*#__PURE__*/_interopDefaultLegacy(Clickable);
36
+ var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
31
37
 
32
38
  const _excluded = ["id", "children", "kind", "size", "role", "onClick", "style", "tabIndex", "testId"];
33
39
  const PillInner = props => {
@@ -58,7 +64,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
58
64
  tabIndex,
59
65
  testId
60
66
  } = props,
61
- ariaProps = _objectWithoutPropertiesLoose(props, _excluded);
67
+ ariaProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded);
62
68
  let wrapperSizeStyle;
63
69
  switch (size) {
64
70
  case "small":
@@ -73,7 +79,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
73
79
  const colorStyles = _generateColorStyles(!!onClick, kind);
74
80
  const defaultStyles = [pillStyles.wrapper, colorStyles.pill, wrapperSizeStyle];
75
81
  if (onClick) {
76
- return React__namespace.createElement(Clickable, _extends({
82
+ return React__namespace.createElement(Clickable__default["default"], _extends__default["default"]({
77
83
  id: id,
78
84
  role: role,
79
85
  onClick: onClick,
@@ -85,7 +91,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
85
91
  size: size
86
92
  }, children));
87
93
  }
88
- return React__namespace.createElement(wonderBlocksCore.View, _extends({
94
+ return React__namespace.createElement(wonderBlocksCore.View, _extends__default["default"]({
89
95
  id: id,
90
96
  role: role,
91
97
  style: [defaultStyles, style],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-pill",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "design": "v1",
5
5
  "description": "Pill components for Wonder Blocks.",
6
6
  "main": "dist/index.js",
@@ -14,18 +14,18 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/runtime": "^7.24.5",
17
- "@khanacademy/wonder-blocks-clickable": "6.1.0",
18
- "@khanacademy/wonder-blocks-core": "12.1.0",
19
- "@khanacademy/wonder-blocks-link": "7.1.0",
20
- "@khanacademy/wonder-blocks-tokens": "4.2.0",
21
- "@khanacademy/wonder-blocks-typography": "3.1.0"
17
+ "@khanacademy/wonder-blocks-clickable": "6.1.1",
18
+ "@khanacademy/wonder-blocks-core": "12.1.1",
19
+ "@khanacademy/wonder-blocks-link": "7.1.1",
20
+ "@khanacademy/wonder-blocks-tokens": "4.2.1",
21
+ "@khanacademy/wonder-blocks-typography": "3.1.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "aphrodite": "^1.2.5",
25
25
  "react": "18.2.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@khanacademy/wb-dev-build-settings": "2.1.0"
28
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
29
29
  },
30
30
  "scripts": {
31
31
  "test": "echo \"Error: no test specified\" && exit 1"