@enact/webos 4.9.0-alpha.1 → 4.9.0-alpha.3
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 +22 -0
- package/package.json +4 -4
- package/speech/VoiceControlDecorator.js +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
The following is a curated list of changes in the Enact webos module, newest changes on the top.
|
|
4
4
|
|
|
5
|
+
## [4.9.0-alpha.3] - 2024-06-05
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- `webos/speech.VoiceControlDecorator` to have sibling DOM node as alternative to findDOMNode API which will be removed in React 19
|
|
10
|
+
|
|
11
|
+
## [4.0.15] - 2024-05-28
|
|
12
|
+
|
|
13
|
+
No significant changes.
|
|
14
|
+
|
|
15
|
+
## [4.9.0-alpha.2] - 2024-05-24
|
|
16
|
+
|
|
17
|
+
No significant changes.
|
|
18
|
+
|
|
19
|
+
## [4.0.14] - 2024-05-14
|
|
20
|
+
|
|
21
|
+
No significant changes.
|
|
22
|
+
|
|
23
|
+
## [4.7.11] - 2024-05-13
|
|
24
|
+
|
|
25
|
+
No significant changes.
|
|
26
|
+
|
|
5
27
|
## [4.9.0-alpha.1] - 2024-04-09
|
|
6
28
|
|
|
7
29
|
### Deprecated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "4.9.0-alpha.
|
|
3
|
+
"version": "4.9.0-alpha.3",
|
|
4
4
|
"description": "webOS support library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@enact/core": "^4.9.0-alpha.
|
|
35
|
+
"@enact/core": "^4.9.0-alpha.3",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
|
-
"react": "^18.
|
|
38
|
-
"react-dom": "^18.
|
|
37
|
+
"react": "^18.3.1",
|
|
38
|
+
"react-dom": "^18.3.1"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = exports.VoiceControlDecorator = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactDom = require("react-dom");
|
|
10
9
|
var _hoc = _interopRequireDefault(require("@enact/core/hoc"));
|
|
10
|
+
var _WithRef = require("@enact/core/internal/WithRef");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -80,14 +80,18 @@ var VoiceControlDecorator = exports.VoiceControlDecorator = (0, _hoc["default"])
|
|
|
80
80
|
return _class = /*#__PURE__*/function (_Component) {
|
|
81
81
|
_inherits(_class, _Component);
|
|
82
82
|
var _super = _createSuper(_class);
|
|
83
|
-
function _class() {
|
|
83
|
+
function _class(props) {
|
|
84
|
+
var _this;
|
|
84
85
|
_classCallCheck(this, _class);
|
|
85
|
-
|
|
86
|
+
_this = _super.call(this, props);
|
|
87
|
+
_this.node = null;
|
|
88
|
+
_this.nodeRef = /*#__PURE__*/(0, _react.createRef)();
|
|
89
|
+
return _this;
|
|
86
90
|
}
|
|
87
91
|
_createClass(_class, [{
|
|
88
92
|
key: "componentDidMount",
|
|
89
93
|
value: function componentDidMount() {
|
|
90
|
-
this.node =
|
|
94
|
+
this.node = this.nodeRef.current;
|
|
91
95
|
if (this.node && !(this.node.hasAttribute('data-webos-voice-event-target') || this.node.hasAttribute('data-webos-voice-intent'))) {
|
|
92
96
|
this.node = this.node.querySelector('[data-webos-voice-event-target]') || this.node.querySelector('[data-webos-voice-intent]');
|
|
93
97
|
}
|
|
@@ -103,7 +107,11 @@ var VoiceControlDecorator = exports.VoiceControlDecorator = (0, _hoc["default"])
|
|
|
103
107
|
value: function render() {
|
|
104
108
|
var props = _objectSpread({}, this.props);
|
|
105
109
|
delete props.onVoice;
|
|
106
|
-
|
|
110
|
+
var WithRefComponent = (0, _WithRef.WithRef)(Wrapped);
|
|
111
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(WithRefComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
112
|
+
outermostRef: this.nodeRef,
|
|
113
|
+
referrerName: "VoiceControlDecorator"
|
|
114
|
+
}));
|
|
107
115
|
}
|
|
108
116
|
}]);
|
|
109
117
|
return _class;
|