@enact/webos 3.2.3 → 3.2.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
@@ -2,6 +2,22 @@
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
+ ## [3.2.7] - 2022-01-17
6
+
7
+ No significant changes.
8
+
9
+ ## [3.2.6] - 2020-03-26
10
+
11
+ No significant changes.
12
+
13
+ ## [3.2.5] - 2019-11-14
14
+
15
+ No significant changes.
16
+
17
+ ## [3.2.4] - 2019-11-07
18
+
19
+ No significant changes.
20
+
5
21
  ## [3.2.3] - 2019-11-01
6
22
 
7
23
  No significant changes.
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _util = require("@enact/core/util");
9
9
 
10
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
10
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
11
11
 
12
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
13
 
@@ -41,9 +41,7 @@ var timeoutHandler = function timeoutHandler(_ref2) {
41
41
  */
42
42
 
43
43
 
44
- var LS2Request =
45
- /*#__PURE__*/
46
- function () {
44
+ var LS2Request = /*#__PURE__*/function () {
47
45
  /**
48
46
  * Create a new LS2 request
49
47
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/webos",
3
- "version": "3.2.3",
3
+ "version": "3.2.7",
4
4
  "description": "webOS support library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "extends": "enact/strict"
29
29
  },
30
30
  "dependencies": {
31
- "@enact/core": "^3.2.3",
31
+ "@enact/core": "^3.2.7",
32
32
  "prop-types": "^15.7.2",
33
33
  "react": "^16.8.0",
34
34
  "react-dom": "^16.8.0"
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.perfLog = exports.debug = exports.info = exports.notice = exports.warning = exports.error = exports.critical = exports.alert = exports.emergency = void 0;
7
7
 
8
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
8
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
9
9
 
10
10
  /* eslint-disable no-console */
11
11
 
@@ -15,9 +15,11 @@ var _hoc = _interopRequireDefault(require("@enact/core/hoc"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
18
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
19
19
 
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
21
+
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
21
23
 
22
24
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
25
 
@@ -27,10 +29,14 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
29
 
28
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
31
 
32
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
+
30
34
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
31
35
 
32
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
37
 
38
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
39
+
34
40
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
41
 
36
42
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
@@ -92,15 +98,15 @@ var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
92
98
  var _class, _temp;
93
99
 
94
100
  // eslint-disable-line no-unused-vars
95
- return _temp = _class =
96
- /*#__PURE__*/
97
- function (_React$Component) {
101
+ return _temp = _class = /*#__PURE__*/function (_React$Component) {
98
102
  _inherits(_class, _React$Component);
99
103
 
104
+ var _super = _createSuper(_class);
105
+
100
106
  function _class() {
101
107
  _classCallCheck(this, _class);
102
108
 
103
- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
109
+ return _super.apply(this, arguments);
104
110
  }
105
111
 
106
112
  _createClass(_class, [{
@@ -125,7 +131,7 @@ var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
125
131
  var props = _objectSpread({}, this.props);
126
132
 
127
133
  delete props.onVoice;
128
- return _react["default"].createElement(Wrapped, props);
134
+ return /*#__PURE__*/_react["default"].createElement(Wrapped, props);
129
135
  }
130
136
  }]);
131
137
 
package/docs/index.md DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- title: webOS Support Module
3
- ---
4
-
5
- The webOS package includes the following documentation:
6
-
7
- * [Luna Service API](./luna-service-api.md)
8
- * [Using webOS Features](./webos-features.md)
@@ -1,35 +0,0 @@
1
- ---
2
- title: Luna Service API
3
- ---
4
-
5
- The [Luna service API](http://webostv.developer.lge.com/api/webos-service-api/) is available on webOS platforms and allows developers to create applications that can
6
- make use of platform features, such as the `Settings Service` or the `Media Database`.
7
-
8
- ### LS2Request
9
-
10
- The Enact framework provides `@enact/webos/LS2Request` for developers to interact with the API.
11
-
12
- #### Example
13
-
14
- ```js
15
- import LS2Request from '@enact/webos/LS2Request';
16
-
17
- ...
18
-
19
- startNetwork = () => {
20
- // to cancel a request you must store a reference
21
- this.findNetworkReq = new LS2Request().send({
22
- service: 'luna://com.webos.service.wifi',
23
- method: 'findnetworks',
24
- onSuccess: this.findNetworkSuccess
25
- });
26
- }
27
-
28
- findNetworkSuccess = (res) => {
29
- if (res.foundNetworks) {
30
- this.setState({
31
- foundNetworks: res.foundNetworks
32
- });
33
- }
34
- }
35
- ```
@@ -1,37 +0,0 @@
1
- ---
2
- title: Using webOS Features
3
- ---
4
-
5
- ## Built-in webOS Events
6
-
7
- Included within the webOS system itself are the following custom document events:
8
-
9
- * `webOSLaunch`: Dispatched when the application launches and the launch parameters are received. The launch parameters are included within the event data. Note that this does not necessarily mean that the application has been loaded or rendered.
10
- * `webOSRelaunch`: Dispatched when an already-running application is launched, potentially with new launch parameters.
11
- * `webOSLocaleChange`: Dispatched when the system changes its language settings.
12
-
13
- To listen for these events, you can use the global dispatcher's `on()` method.
14
-
15
- ```js
16
- import {off, on} from '@enact/core/dispatcher';
17
- ...
18
- const handleLaunch = () => {
19
- console.log('APP LAUNCH');
20
- };
21
- on('webOSLaunch', handleLaunch, window);
22
- ...
23
- ```
24
-
25
- ## `@enact/webos`
26
-
27
- The `@enact/webos` library has a number of features designed exclusively for the webOS platform, including service integration
28
- with LS2Request and other useful platform APIs.
29
-
30
- * `@enact/webos/application` - provides information about the application metadata
31
- * `@enact/webos/deviceinfo` - returns various details about the webOS device where the application is running
32
- * `@enact/webos/keyboard` - use to see if the keyboard is currently visible
33
- * `@enact/webos/LS2Request` - without this, your application cannot use the myriad webOS services that are available!
34
- * [Luna Service API example](./luna-service-api.md#example)
35
- * `@enact/webos/platform` - returns various details about the webOS platform where the application is running (SmartTV, Open webOS, legacy devices (Palm, HP), etc.)
36
- * `@enact/webos/pmloglib` - system-level logging for your application
37
- * `@enact/webos/speech` - working with webOS speech APIs