@enact/webos 4.6.2 → 4.7.1

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
@@ -2,6 +2,18 @@
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.7.1] - 2023-06-02
6
+
7
+ No significant changes.
8
+
9
+ ## [4.5.3] - 2023-04-06
10
+
11
+ No significant changes.
12
+
13
+ ## [4.7.0] - 2023-04-25
14
+
15
+ No significant changes.
16
+
5
17
  ## [4.6.2] - 2023-03-09
6
18
 
7
19
  No significant changes.
@@ -9,7 +9,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
9
9
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
11
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable no-console */ /**
13
+ * Provides a class for making LS2 service requests on webOS platforms.
14
+ *
15
+ * @module webos/LS2Request
16
+ * @exports LS2Request
17
+ */
13
18
  var refs = {};
14
19
  var adjustPath = function adjustPath(path) {
15
20
  if (!/^(luna|palm):\/\//.test(path)) path = 'luna://' + path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/webos",
3
- "version": "4.6.2",
3
+ "version": "4.7.1",
4
4
  "description": "webOS support library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@enact/core": "^4.6.2",
34
+ "@enact/core": "^4.7.1",
35
35
  "prop-types": "^15.8.1",
36
36
  "react": "^18.2.0",
37
37
  "react-dom": "^18.2.0"
@@ -24,58 +24,57 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
24
24
  function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
- /**
29
- * VoiceControlDecorator is a higher-order component that adds a callback for voice event
30
- * to its wrapped component.
31
- *
32
- * By default, `onVoice` handler will be added to the node where `data-webos-voice-intent` attribute is declared.
33
- * In addition, if you need to specify a target node, `data-webos-voice-event-target` attribute can be used.
34
- *
35
- * Usage:
36
- * ```
37
- * import {Component} from 'react';
38
- * import Item from '@enact/moonstone/Item';
39
- * import {VoiceControlDecorator} from '@enact/webos/speech';
40
- *
41
- * const VoiceDiv = VoiceControlDecorator('div');
42
- * const VoiceItem = VoiceControlDecorator(Item);
43
- *
44
- * class Sample extends Component {
45
- * handlePlayListControl = (e) => {
46
- * const {intent, control} = e.detail;
47
- * // Change the app status refer to the `control` value.
48
- * }
49
- *
50
- * handlePlayContent = (e) => {
51
- * const {intent, value} = e.detail;
52
- * // Play content
53
- * }
54
- *
55
- * render () {
56
- * return(
57
- * <div>
58
- * <VoiceDiv
59
- * data-webos-voice-intent='PlayListControl'
60
- * onVoice={this.handlePlayListControl}
61
- * />
62
- * <VoiceItem
63
- * data-webos-voice-intent='Select PlayContent'
64
- * onVoice={this.handlePlayContent}
65
- * >
66
- * The Dark Knight
67
- * </VoiceItem>
68
- * </div>
69
- * );
70
- * }
71
- * }
72
- * ```
73
- *
74
- * @class VoiceControlDecorator
75
- * @memberof webos/speech
76
- * @hoc
77
- * @public
78
- */
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
28
+ * VoiceControlDecorator is a higher-order component that adds a callback for voice event
29
+ * to its wrapped component.
30
+ *
31
+ * By default, `onVoice` handler will be added to the node where `data-webos-voice-intent` attribute is declared.
32
+ * In addition, if you need to specify a target node, `data-webos-voice-event-target` attribute can be used.
33
+ *
34
+ * Usage:
35
+ * ```
36
+ * import {Component} from 'react';
37
+ * import Item from '@enact/moonstone/Item';
38
+ * import {VoiceControlDecorator} from '@enact/webos/speech';
39
+ *
40
+ * const VoiceDiv = VoiceControlDecorator('div');
41
+ * const VoiceItem = VoiceControlDecorator(Item);
42
+ *
43
+ * class Sample extends Component {
44
+ * handlePlayListControl = (e) => {
45
+ * const {intent, control} = e.detail;
46
+ * // Change the app status refer to the `control` value.
47
+ * }
48
+ *
49
+ * handlePlayContent = (e) => {
50
+ * const {intent, value} = e.detail;
51
+ * // Play content
52
+ * }
53
+ *
54
+ * render () {
55
+ * return(
56
+ * <div>
57
+ * <VoiceDiv
58
+ * data-webos-voice-intent='PlayListControl'
59
+ * onVoice={this.handlePlayListControl}
60
+ * />
61
+ * <VoiceItem
62
+ * data-webos-voice-intent='Select PlayContent'
63
+ * onVoice={this.handlePlayContent}
64
+ * >
65
+ * The Dark Knight
66
+ * </VoiceItem>
67
+ * </div>
68
+ * );
69
+ * }
70
+ * }
71
+ * ```
72
+ *
73
+ * @class VoiceControlDecorator
74
+ * @memberof webos/speech
75
+ * @hoc
76
+ * @public
77
+ */
79
78
  var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
80
79
  var _class;
81
80
  return _class = /*#__PURE__*/function (_Component) {