@cloudflare/component-text 5.1.0 → 5.1.2

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
  # Change Log
2
2
 
3
+ ## 5.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1bc29ca267: Fix: Use IS_RELEASE_CANDIDATE to enable a11y source file attributes in preview builds
8
+
9
+ ## 5.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 625b95cb19: Add data-source-file attributes to JSX elements for a11y debugging (non-production only)
14
+
3
15
  ## 5.1.0
4
16
 
5
17
  ### Minor Changes
package/es/Text.js CHANGED
@@ -57,7 +57,8 @@ class Text extends React.Component {
57
57
  } = this.props;
58
58
  return /*#__PURE__*/React.createElement("div", {
59
59
  className: className,
60
- role: role
60
+ role: role,
61
+ "data-source-file": "@cloudflare/component-text:src/Text.js:51"
61
62
  }, children);
62
63
  }
63
64
 
package/lib/Text.js CHANGED
@@ -100,7 +100,8 @@ var Text = /*#__PURE__*/function (_React$Component) {
100
100
  children = _this$props.children;
101
101
  return /*#__PURE__*/_react.default.createElement("div", {
102
102
  className: className,
103
- role: role
103
+ role: role,
104
+ "data-source-file": "@cloudflare/component-text:src/Text.js:51"
104
105
  }, children);
105
106
  }
106
107
  }]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-text",
3
3
  "description": "Cloudflare Text Component",
4
- "version": "5.1.0",
4
+ "version": "5.1.2",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",