@khanacademy/wonder-blocks-labeled-field 2.1.0 → 2.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,16 @@
1
1
  # @khanacademy/wonder-blocks-labeled-field
2
2
 
3
+ ## 2.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-core@12.1.1
10
+ - @khanacademy/wonder-blocks-layout@3.1.1
11
+ - @khanacademy/wonder-blocks-tokens@4.2.1
12
+ - @khanacademy/wonder-blocks-typography@3.1.1
13
+
3
14
  ## 2.1.0
4
15
 
5
16
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
  var aphrodite = require('aphrodite');
5
7
  var WarningCircle = require('@phosphor-icons/core/bold/warning-circle-bold.svg');
@@ -9,7 +11,10 @@ var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
9
11
  var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
10
12
  var wonderBlocksIcon = require('@khanacademy/wonder-blocks-icon');
11
13
 
12
- function _interopNamespaceDefault(e) {
14
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
+
16
+ function _interopNamespace(e) {
17
+ if (e && e.__esModule) return e;
13
18
  var n = Object.create(null);
14
19
  if (e) {
15
20
  Object.keys(e).forEach(function (k) {
@@ -22,11 +27,12 @@ function _interopNamespaceDefault(e) {
22
27
  }
23
28
  });
24
29
  }
25
- n.default = e;
30
+ n["default"] = e;
26
31
  return Object.freeze(n);
27
32
  }
28
33
 
29
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
34
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
35
+ var WarningCircle__default = /*#__PURE__*/_interopDefaultLegacy(WarningCircle);
30
36
 
31
37
  const defaultLabeledFieldLabels = {
32
38
  errorIconAriaLabel: "Error:"
@@ -87,7 +93,7 @@ function LabeledField(props) {
87
93
  "aria-live": "assertive",
88
94
  "aria-atomic": "true"
89
95
  }, errorMessage && React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(wonderBlocksIcon.PhosphorIcon, {
90
- icon: WarningCircle,
96
+ icon: WarningCircle__default["default"],
91
97
  style: [styles.errorIcon, styles.error],
92
98
  role: "img",
93
99
  "aria-label": labels.errorIconAriaLabel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-labeled-field",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "design": "v1",
5
5
  "description": "LabeledField handles accessibility and layout for associating labels with form components.",
6
6
  "main": "dist/index.js",
@@ -13,10 +13,10 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.24.5",
16
- "@khanacademy/wonder-blocks-core": "12.1.0",
17
- "@khanacademy/wonder-blocks-layout": "3.1.0",
18
- "@khanacademy/wonder-blocks-tokens": "4.2.0",
19
- "@khanacademy/wonder-blocks-typography": "3.1.0"
16
+ "@khanacademy/wonder-blocks-core": "12.1.1",
17
+ "@khanacademy/wonder-blocks-layout": "3.1.1",
18
+ "@khanacademy/wonder-blocks-tokens": "4.2.1",
19
+ "@khanacademy/wonder-blocks-typography": "3.1.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@phosphor-icons/core": "^2.0.2",
@@ -24,7 +24,7 @@
24
24
  "react": "18.2.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@khanacademy/wb-dev-build-settings": "2.1.0"
27
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
28
28
  },
29
29
  "scripts": {
30
30
  "test": "echo \"Error: no test specified\" && exit 1"