@cloudflare/component-tooltip 6.0.4 → 6.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,21 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 1bc29ca267: Fix: Use IS_RELEASE_CANDIDATE to enable a11y source file attributes in preview builds
8
+ - Updated dependencies [1bc29ca267]
9
+ - @cloudflare/elements@4.0.6
10
+
11
+ ## 6.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 625b95cb19: Add data-source-file attributes to JSX elements for a11y debugging (non-production only)
16
+ - Updated dependencies [625b95cb19]
17
+ - @cloudflare/elements@4.0.5
18
+
3
19
  ## 6.0.4
4
20
 
5
21
  ### Patch Changes
package/es/Tooltip.js CHANGED
@@ -137,7 +137,8 @@ class Tooltip extends React.PureComponent {
137
137
  getContent: [() => message || getContent()],
138
138
  onClick: this.props.onClick,
139
139
  event: "click",
140
- role: "status"
140
+ role: "status",
141
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:127"
141
142
  }), document.body) : /*#__PURE__*/React.createElement(ReactTooltip, {
142
143
  id: id,
143
144
  disable: disable,
@@ -152,7 +153,8 @@ class Tooltip extends React.PureComponent {
152
153
  getContent: [() => message || getContent()],
153
154
  onClick: this.props.onClick,
154
155
  event: "click",
155
- role: "status"
156
+ role: "status",
157
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:146"
156
158
  }), /*#__PURE__*/React.createElement(Component, _extends({
157
159
  innerRef: ref => {
158
160
  this.tooltipElement = ref;
@@ -194,7 +196,9 @@ class Tooltip extends React.PureComponent {
194
196
  "aria-controls": id,
195
197
  "aria-label": ariaLabel,
196
198
  "aria-describedby": id
197
- }, buttonProps), children));
199
+ }, buttonProps, {
200
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:163"
201
+ }), children));
198
202
  }
199
203
 
200
204
  }
package/lib/Tooltip.js CHANGED
@@ -200,7 +200,8 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
200
200
  }],
201
201
  onClick: this.props.onClick,
202
202
  event: "click",
203
- role: "status"
203
+ role: "status",
204
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:127"
204
205
  }), document.body) : /*#__PURE__*/_react.default.createElement(_reactTooltip.default, {
205
206
  id: id,
206
207
  disable: disable,
@@ -217,7 +218,8 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
217
218
  }],
218
219
  onClick: this.props.onClick,
219
220
  event: "click",
220
- role: "status"
221
+ role: "status",
222
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:146"
221
223
  }), /*#__PURE__*/_react.default.createElement(Component, _extends({
222
224
  innerRef: function innerRef(ref) {
223
225
  _this3.tooltipElement = ref;
@@ -264,7 +266,9 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
264
266
  "aria-controls": id,
265
267
  "aria-label": ariaLabel,
266
268
  "aria-describedby": id
267
- }, buttonProps), children));
269
+ }, buttonProps, {
270
+ "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:163"
271
+ }), children));
268
272
  }
269
273
  }]);
270
274
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-tooltip",
3
3
  "description": "Cloudflare Tooltip Component",
4
- "version": "6.0.4",
4
+ "version": "6.0.6",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -12,7 +12,7 @@
12
12
  "module": "es/index.js"
13
13
  },
14
14
  "dependencies": {
15
- "@cloudflare/elements": "^4.0.4",
15
+ "@cloudflare/elements": "^4.0.6",
16
16
  "lodash.uniqueid": "^4.0.1",
17
17
  "prop-types": "^15.6.0",
18
18
  "react-tooltip": "^3.11.6"