@enact/webos 4.7.7 → 4.7.8
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 +4 -0
- package/LS2Request/LS2Request.js +3 -2
- package/application/application.js +9 -5
- package/deviceinfo/deviceinfo.js +4 -2
- package/keyboard/keyboard.js +3 -2
- package/package.json +2 -2
- package/platform/platform.js +4 -2
- package/pmloglib/pmloglib.js +19 -10
- package/speech/VoiceControlDecorator.js +6 -4
- package/speech/readAlert.js +4 -2
package/CHANGELOG.md
CHANGED
package/LS2Request/LS2Request.js
CHANGED
|
@@ -38,7 +38,7 @@ var timeoutHandler = function timeoutHandler(_ref2) {
|
|
|
38
38
|
* @memberof webos/LS2Request
|
|
39
39
|
* @class
|
|
40
40
|
*/
|
|
41
|
-
var LS2Request =
|
|
41
|
+
var LS2Request = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
|
43
43
|
* Create a new LS2 request
|
|
44
44
|
*
|
|
@@ -215,4 +215,5 @@ var LS2Request = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
215
|
}
|
|
216
216
|
}]);
|
|
217
217
|
return LS2Request;
|
|
218
|
-
}();
|
|
218
|
+
}();
|
|
219
|
+
exports["default"] = LS2Request;
|
|
@@ -26,7 +26,7 @@ var appInfo = {};
|
|
|
26
26
|
* @memberof webos/application
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
var fetchAppId =
|
|
29
|
+
var fetchAppId = function fetchAppId() {
|
|
30
30
|
var _window$webOSSystem;
|
|
31
31
|
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem;
|
|
32
32
|
if (webOSSystem && webOSSystem.identifier) {
|
|
@@ -53,7 +53,8 @@ var fetchAppId = exports.fetchAppId = function fetchAppId() {
|
|
|
53
53
|
* @memberof webos/application
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
exports.fetchAppId = fetchAppId;
|
|
57
|
+
var fetchAppInfo = function fetchAppInfo(callback, path) {
|
|
57
58
|
if (Object.keys(appInfo).length === 0) {
|
|
58
59
|
var parseInfo = function parseInfo(err, info) {
|
|
59
60
|
if (!err && info) {
|
|
@@ -101,7 +102,8 @@ var fetchAppInfo = exports.fetchAppInfo = function fetchAppInfo(callback, path)
|
|
|
101
102
|
* @memberof webos/application
|
|
102
103
|
* @public
|
|
103
104
|
*/
|
|
104
|
-
|
|
105
|
+
exports.fetchAppInfo = fetchAppInfo;
|
|
106
|
+
var fetchAppRootPath = function fetchAppRootPath() {
|
|
105
107
|
var base = window.location.href;
|
|
106
108
|
if ('baseURI' in window.document) {
|
|
107
109
|
base = window.document.baseURI;
|
|
@@ -126,10 +128,12 @@ var fetchAppRootPath = exports.fetchAppRootPath = function fetchAppRootPath() {
|
|
|
126
128
|
* @memberof webos/application
|
|
127
129
|
* @public
|
|
128
130
|
*/
|
|
129
|
-
|
|
131
|
+
exports.fetchAppRootPath = fetchAppRootPath;
|
|
132
|
+
var platformBack = function platformBack() {
|
|
130
133
|
var _window$webOSSystem2;
|
|
131
134
|
var webOSSystem = (_window$webOSSystem2 = window.webOSSystem) !== null && _window$webOSSystem2 !== void 0 ? _window$webOSSystem2 : window.PalmSystem;
|
|
132
135
|
if (webOSSystem && webOSSystem.platformBack) {
|
|
133
136
|
return webOSSystem.platformBack();
|
|
134
137
|
}
|
|
135
|
-
};
|
|
138
|
+
};
|
|
139
|
+
exports.platformBack = platformBack;
|
package/deviceinfo/deviceinfo.js
CHANGED
|
@@ -43,7 +43,7 @@ var device = {};
|
|
|
43
43
|
* @memberof webos/deviceinfo
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
|
-
var deviceinfo =
|
|
46
|
+
var deviceinfo = function deviceinfo(callback) {
|
|
47
47
|
if (Object.keys(device).length === 0) {
|
|
48
48
|
try {
|
|
49
49
|
var _window$webOSSystem;
|
|
@@ -101,4 +101,6 @@ var deviceinfo = exports.deviceinfo = function deviceinfo(callback) {
|
|
|
101
101
|
callback(device);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
exports.deviceinfo = deviceinfo;
|
|
105
|
+
var _default = deviceinfo;
|
|
106
|
+
exports["default"] = _default;
|
package/keyboard/keyboard.js
CHANGED
|
@@ -19,8 +19,9 @@ exports.isShowing = void 0;
|
|
|
19
19
|
* @memberof webos/keyboard
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
|
-
var isShowing =
|
|
22
|
+
var isShowing = function isShowing() {
|
|
23
23
|
var _window$webOSSystem;
|
|
24
24
|
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem;
|
|
25
25
|
return webOSSystem && webOSSystem.isKeyboardVisible;
|
|
26
|
-
};
|
|
26
|
+
};
|
|
27
|
+
exports.isShowing = isShowing;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.8",
|
|
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.7.
|
|
34
|
+
"@enact/core": "^4.7.8",
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-dom": "^18.2.0"
|
package/platform/platform.js
CHANGED
|
@@ -86,7 +86,8 @@ function detect() {
|
|
|
86
86
|
* @memberof webos/platform
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
var platform =
|
|
89
|
+
var platform = {};
|
|
90
|
+
exports.platform = platform;
|
|
90
91
|
['tv', 'watch', 'open', 'legacy', 'unknown'].forEach(function (name) {
|
|
91
92
|
Object.defineProperty(platform, name, {
|
|
92
93
|
enumerable: true,
|
|
@@ -96,4 +97,5 @@ var platform = exports.platform = {};
|
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
});
|
|
99
|
-
var _default =
|
|
100
|
+
var _default = platform;
|
|
101
|
+
exports["default"] = _default;
|
package/pmloglib/pmloglib.js
CHANGED
|
@@ -77,7 +77,7 @@ var log = function log(level, messageId, keyVals, freeText) {
|
|
|
77
77
|
* @memberof webos/pmloglib
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
|
-
var emergency =
|
|
80
|
+
var emergency = function emergency(messageId, keyVals, freeText) {
|
|
81
81
|
log(levelEmergency, messageId, keyVals, freeText);
|
|
82
82
|
};
|
|
83
83
|
|
|
@@ -92,7 +92,8 @@ var emergency = exports.emergency = function emergency(messageId, keyVals, freeT
|
|
|
92
92
|
* @memberof webos/pmloglib
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
exports.emergency = emergency;
|
|
96
|
+
var alert = function alert(messageId, keyVals, freeText) {
|
|
96
97
|
log(levelAlert, messageId, keyVals, freeText);
|
|
97
98
|
};
|
|
98
99
|
|
|
@@ -107,7 +108,8 @@ var alert = exports.alert = function alert(messageId, keyVals, freeText) {
|
|
|
107
108
|
* @memberof webos/pmloglib
|
|
108
109
|
* @public
|
|
109
110
|
*/
|
|
110
|
-
|
|
111
|
+
exports.alert = alert;
|
|
112
|
+
var critical = function critical(messageId, keyVals, freeText) {
|
|
111
113
|
log(levelCritical, messageId, keyVals, freeText);
|
|
112
114
|
};
|
|
113
115
|
|
|
@@ -122,7 +124,8 @@ var critical = exports.critical = function critical(messageId, keyVals, freeText
|
|
|
122
124
|
* @memberof webos/pmloglib
|
|
123
125
|
* @public
|
|
124
126
|
*/
|
|
125
|
-
|
|
127
|
+
exports.critical = critical;
|
|
128
|
+
var error = function error(messageId, keyVals, freeText) {
|
|
126
129
|
log(levelError, messageId, keyVals, freeText);
|
|
127
130
|
};
|
|
128
131
|
|
|
@@ -137,7 +140,8 @@ var error = exports.error = function error(messageId, keyVals, freeText) {
|
|
|
137
140
|
* @memberof webos/pmloglib
|
|
138
141
|
* @public
|
|
139
142
|
*/
|
|
140
|
-
|
|
143
|
+
exports.error = error;
|
|
144
|
+
var warning = function warning(messageId, keyVals, freeText) {
|
|
141
145
|
log(levelWarning, messageId, keyVals, freeText);
|
|
142
146
|
};
|
|
143
147
|
|
|
@@ -152,7 +156,8 @@ var warning = exports.warning = function warning(messageId, keyVals, freeText) {
|
|
|
152
156
|
* @memberof webos/pmloglib
|
|
153
157
|
* @public
|
|
154
158
|
*/
|
|
155
|
-
|
|
159
|
+
exports.warning = warning;
|
|
160
|
+
var notice = function notice(messageId, keyVals, freeText) {
|
|
156
161
|
log(levelNotice, messageId, keyVals, freeText);
|
|
157
162
|
};
|
|
158
163
|
|
|
@@ -167,7 +172,8 @@ var notice = exports.notice = function notice(messageId, keyVals, freeText) {
|
|
|
167
172
|
* @memberof webos/pmloglib
|
|
168
173
|
* @public
|
|
169
174
|
*/
|
|
170
|
-
|
|
175
|
+
exports.notice = notice;
|
|
176
|
+
var info = function info(messageId, keyVals, freeText) {
|
|
171
177
|
log(levelInfo, messageId, keyVals, freeText);
|
|
172
178
|
};
|
|
173
179
|
|
|
@@ -180,7 +186,8 @@ var info = exports.info = function info(messageId, keyVals, freeText) {
|
|
|
180
186
|
* @memberof webos/pmloglib
|
|
181
187
|
* @public
|
|
182
188
|
*/
|
|
183
|
-
|
|
189
|
+
exports.info = info;
|
|
190
|
+
var debug = function debug(freeText) {
|
|
184
191
|
log(levelDebug, '', '', freeText);
|
|
185
192
|
};
|
|
186
193
|
|
|
@@ -196,7 +203,8 @@ var debug = exports.debug = function debug(freeText) {
|
|
|
196
203
|
* @memberof webos/pmloglib
|
|
197
204
|
* @public
|
|
198
205
|
*/
|
|
199
|
-
|
|
206
|
+
exports.debug = debug;
|
|
207
|
+
var perfLog = function perfLog(messageId, perfType, perfGroup) {
|
|
200
208
|
if (typeof window !== 'undefined' && (window.webOSSystem || window.PalmSystem)) {
|
|
201
209
|
var _window$webOSSystem2;
|
|
202
210
|
if (!messageId) {
|
|
@@ -209,4 +217,5 @@ var perfLog = exports.perfLog = function perfLog(messageId, perfType, perfGroup)
|
|
|
209
217
|
console.error('Unable to send log: PmLogInfoWithClock not found in this version of webOSSystem');
|
|
210
218
|
}
|
|
211
219
|
}
|
|
212
|
-
};
|
|
220
|
+
};
|
|
221
|
+
exports.perfLog = perfLog;
|
|
@@ -10,8 +10,8 @@ var _reactDom = require("react-dom");
|
|
|
10
10
|
var _hoc = _interopRequireDefault(require("@enact/core/hoc"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
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); } }
|
|
@@ -75,7 +75,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
75
75
|
* @hoc
|
|
76
76
|
* @public
|
|
77
77
|
*/
|
|
78
|
-
var VoiceControlDecorator =
|
|
78
|
+
var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
|
|
79
79
|
var _class;
|
|
80
80
|
return _class = /*#__PURE__*/function (_Component) {
|
|
81
81
|
_inherits(_class, _Component);
|
|
@@ -118,4 +118,6 @@ var VoiceControlDecorator = exports.VoiceControlDecorator = (0, _hoc["default"])
|
|
|
118
118
|
onVoice: _propTypes["default"].func.isRequired
|
|
119
119
|
}, _class;
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
exports.VoiceControlDecorator = VoiceControlDecorator;
|
|
122
|
+
var _default = VoiceControlDecorator;
|
|
123
|
+
exports["default"] = _default;
|
package/speech/readAlert.js
CHANGED
|
@@ -70,7 +70,7 @@ var readAlertMessage = function readAlertMessage(string, clear) {
|
|
|
70
70
|
* @memberof webos/speech
|
|
71
71
|
* @public
|
|
72
72
|
*/
|
|
73
|
-
var readAlert =
|
|
73
|
+
var readAlert = function readAlert(string) {
|
|
74
74
|
var clear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
75
75
|
if (_platform.platform.tv) {
|
|
76
76
|
checkAudioGuidance().then(readAlertMessage(string, clear))["catch"](function (message) {
|
|
@@ -82,4 +82,6 @@ var readAlert = exports.readAlert = function readAlert(string) {
|
|
|
82
82
|
console.warn('Platform doesn\'t support TTS api.');
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
exports.readAlert = readAlert;
|
|
86
|
+
var _default = readAlert;
|
|
87
|
+
exports["default"] = _default;
|