@enact/webos
Advanced tools
Comparing version 4.9.0-alpha.2 to 4.9.0-alpha.3
@@ -5,2 +5,12 @@ # Change Log | ||
## [4.9.0-alpha.3] - 2024-06-05 | ||
### Changed | ||
- `webos/speech.VoiceControlDecorator` to have sibling DOM node as alternative to findDOMNode API which will be removed in React 19 | ||
## [4.0.15] - 2024-05-28 | ||
No significant changes. | ||
## [4.9.0-alpha.2] - 2024-05-24 | ||
@@ -7,0 +17,0 @@ |
{ | ||
"name": "@enact/webos", | ||
"version": "4.9.0-alpha.2", | ||
"version": "4.9.0-alpha.3", | ||
"description": "webOS support library", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"dependencies": { | ||
"@enact/core": "^4.9.0-alpha.2", | ||
"@enact/core": "^4.9.0-alpha.3", | ||
"prop-types": "^15.8.1", | ||
@@ -38,0 +38,0 @@ "react": "^18.3.1", |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _reactDom = require("react-dom"); | ||
var _hoc = _interopRequireDefault(require("@enact/core/hoc")); | ||
var _WithRef = require("@enact/core/internal/WithRef"); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
@@ -84,5 +84,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var _super = _createSuper(_class); | ||
function _class() { | ||
function _class(props) { | ||
var _this; | ||
_classCallCheck(this, _class); | ||
return _super.apply(this, arguments); | ||
_this = _super.call(this, props); | ||
_this.node = null; | ||
_this.nodeRef = /*#__PURE__*/(0, _react.createRef)(); | ||
return _this; | ||
} | ||
@@ -92,3 +96,3 @@ _createClass(_class, [{ | ||
value: function componentDidMount() { | ||
this.node = (0, _reactDom.findDOMNode)(this); // eslint-disable-line | ||
this.node = this.nodeRef.current; | ||
if (this.node && !(this.node.hasAttribute('data-webos-voice-event-target') || this.node.hasAttribute('data-webos-voice-intent'))) { | ||
@@ -109,3 +113,7 @@ this.node = this.node.querySelector('[data-webos-voice-event-target]') || this.node.querySelector('[data-webos-voice-intent]'); | ||
delete props.onVoice; | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, props)); | ||
var WithRefComponent = (0, _WithRef.WithRef)(Wrapped); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(WithRefComponent, _objectSpread(_objectSpread({}, props), {}, { | ||
outermostRef: this.nodeRef, | ||
referrerName: "VoiceControlDecorator" | ||
})); | ||
} | ||
@@ -112,0 +120,0 @@ }]); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68338
1450
Updated@enact/core@^4.9.0-alpha.3