@cloudflare/component-tooltip 6.0.6 → 6.0.7

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fc455fa761: Require explicit opt-in before injecting source-file debug attributes into package build artifacts.
8
+ - Updated dependencies [fc455fa761]
9
+ - @cloudflare/elements@4.0.7
10
+
3
11
  ## 6.0.6
4
12
 
5
13
  ### Patch Changes
package/es/Tooltip.js CHANGED
@@ -137,8 +137,7 @@ class Tooltip extends React.PureComponent {
137
137
  getContent: [() => message || getContent()],
138
138
  onClick: this.props.onClick,
139
139
  event: "click",
140
- role: "status",
141
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:127"
140
+ role: "status"
142
141
  }), document.body) : /*#__PURE__*/React.createElement(ReactTooltip, {
143
142
  id: id,
144
143
  disable: disable,
@@ -153,8 +152,7 @@ class Tooltip extends React.PureComponent {
153
152
  getContent: [() => message || getContent()],
154
153
  onClick: this.props.onClick,
155
154
  event: "click",
156
- role: "status",
157
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:146"
155
+ role: "status"
158
156
  }), /*#__PURE__*/React.createElement(Component, _extends({
159
157
  innerRef: ref => {
160
158
  this.tooltipElement = ref;
@@ -196,9 +194,7 @@ class Tooltip extends React.PureComponent {
196
194
  "aria-controls": id,
197
195
  "aria-label": ariaLabel,
198
196
  "aria-describedby": id
199
- }, buttonProps, {
200
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:163"
201
- }), children));
197
+ }, buttonProps), children));
202
198
  }
203
199
 
204
200
  }
package/lib/Tooltip.js CHANGED
@@ -200,8 +200,7 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
200
200
  }],
201
201
  onClick: this.props.onClick,
202
202
  event: "click",
203
- role: "status",
204
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:127"
203
+ role: "status"
205
204
  }), document.body) : /*#__PURE__*/_react.default.createElement(_reactTooltip.default, {
206
205
  id: id,
207
206
  disable: disable,
@@ -218,8 +217,7 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
218
217
  }],
219
218
  onClick: this.props.onClick,
220
219
  event: "click",
221
- role: "status",
222
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:146"
220
+ role: "status"
223
221
  }), /*#__PURE__*/_react.default.createElement(Component, _extends({
224
222
  innerRef: function innerRef(ref) {
225
223
  _this3.tooltipElement = ref;
@@ -266,9 +264,7 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
266
264
  "aria-controls": id,
267
265
  "aria-label": ariaLabel,
268
266
  "aria-describedby": id
269
- }, buttonProps, {
270
- "data-source-file": "@cloudflare/component-tooltip:src/Tooltip.js:163"
271
- }), children));
267
+ }, buttonProps), children));
272
268
  }
273
269
  }]);
274
270
 
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.6",
4
+ "version": "6.0.7",
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.6",
15
+ "@cloudflare/elements": "^4.0.7",
16
16
  "lodash.uniqueid": "^4.0.1",
17
17
  "prop-types": "^15.6.0",
18
18
  "react-tooltip": "^3.11.6"