Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enact/webos

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/webos - npm Package Compare versions

Comparing version 4.9.0-alpha.2 to 4.9.0-alpha.3

10

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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 @@ }]);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc