@enact/webos 4.7.8 → 4.7.9
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 +2 -3
- package/application/application.js +5 -9
- package/deviceinfo/deviceinfo.js +2 -4
- package/keyboard/keyboard.js +2 -3
- package/package.json +2 -2
- package/platform/platform.js +2 -4
- package/pmloglib/pmloglib.js +10 -19
- package/speech/VoiceControlDecorator.js +4 -6
- package/speech/readAlert.js +2 -4
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 = /*#__PURE__*/function () {
|
|
41
|
+
var LS2Request = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
|
43
43
|
* Create a new LS2 request
|
|
44
44
|
*
|
|
@@ -215,5 +215,4 @@ var LS2Request = /*#__PURE__*/function () {
|
|
|
215
215
|
}
|
|
216
216
|
}]);
|
|
217
217
|
return LS2Request;
|
|
218
|
-
}();
|
|
219
|
-
exports["default"] = LS2Request;
|
|
218
|
+
}();
|
|
@@ -26,7 +26,7 @@ var appInfo = {};
|
|
|
26
26
|
* @memberof webos/application
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
var fetchAppId = function fetchAppId() {
|
|
29
|
+
var fetchAppId = exports.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,8 +53,7 @@ var fetchAppId = function fetchAppId() {
|
|
|
53
53
|
* @memberof webos/application
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
|
-
exports.
|
|
57
|
-
var fetchAppInfo = function fetchAppInfo(callback, path) {
|
|
56
|
+
var fetchAppInfo = exports.fetchAppInfo = function fetchAppInfo(callback, path) {
|
|
58
57
|
if (Object.keys(appInfo).length === 0) {
|
|
59
58
|
var parseInfo = function parseInfo(err, info) {
|
|
60
59
|
if (!err && info) {
|
|
@@ -102,8 +101,7 @@ var fetchAppInfo = function fetchAppInfo(callback, path) {
|
|
|
102
101
|
* @memberof webos/application
|
|
103
102
|
* @public
|
|
104
103
|
*/
|
|
105
|
-
exports.
|
|
106
|
-
var fetchAppRootPath = function fetchAppRootPath() {
|
|
104
|
+
var fetchAppRootPath = exports.fetchAppRootPath = function fetchAppRootPath() {
|
|
107
105
|
var base = window.location.href;
|
|
108
106
|
if ('baseURI' in window.document) {
|
|
109
107
|
base = window.document.baseURI;
|
|
@@ -128,12 +126,10 @@ var fetchAppRootPath = function fetchAppRootPath() {
|
|
|
128
126
|
* @memberof webos/application
|
|
129
127
|
* @public
|
|
130
128
|
*/
|
|
131
|
-
exports.
|
|
132
|
-
var platformBack = function platformBack() {
|
|
129
|
+
var platformBack = exports.platformBack = function platformBack() {
|
|
133
130
|
var _window$webOSSystem2;
|
|
134
131
|
var webOSSystem = (_window$webOSSystem2 = window.webOSSystem) !== null && _window$webOSSystem2 !== void 0 ? _window$webOSSystem2 : window.PalmSystem;
|
|
135
132
|
if (webOSSystem && webOSSystem.platformBack) {
|
|
136
133
|
return webOSSystem.platformBack();
|
|
137
134
|
}
|
|
138
|
-
};
|
|
139
|
-
exports.platformBack = platformBack;
|
|
135
|
+
};
|
package/deviceinfo/deviceinfo.js
CHANGED
|
@@ -43,7 +43,7 @@ var device = {};
|
|
|
43
43
|
* @memberof webos/deviceinfo
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
|
-
var deviceinfo = function deviceinfo(callback) {
|
|
46
|
+
var deviceinfo = exports.deviceinfo = function deviceinfo(callback) {
|
|
47
47
|
if (Object.keys(device).length === 0) {
|
|
48
48
|
try {
|
|
49
49
|
var _window$webOSSystem;
|
|
@@ -101,6 +101,4 @@ var deviceinfo = function deviceinfo(callback) {
|
|
|
101
101
|
callback(device);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
exports
|
|
105
|
-
var _default = deviceinfo;
|
|
106
|
-
exports["default"] = _default;
|
|
104
|
+
var _default = exports["default"] = deviceinfo;
|
package/keyboard/keyboard.js
CHANGED
|
@@ -19,9 +19,8 @@ exports.isShowing = void 0;
|
|
|
19
19
|
* @memberof webos/keyboard
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
|
-
var isShowing = function isShowing() {
|
|
22
|
+
var isShowing = exports.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
|
-
};
|
|
27
|
-
exports.isShowing = isShowing;
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.9",
|
|
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.9",
|
|
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,8 +86,7 @@ function detect() {
|
|
|
86
86
|
* @memberof webos/platform
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
var platform = {};
|
|
90
|
-
exports.platform = platform;
|
|
89
|
+
var platform = exports.platform = {};
|
|
91
90
|
['tv', 'watch', 'open', 'legacy', 'unknown'].forEach(function (name) {
|
|
92
91
|
Object.defineProperty(platform, name, {
|
|
93
92
|
enumerable: true,
|
|
@@ -97,5 +96,4 @@ exports.platform = platform;
|
|
|
97
96
|
}
|
|
98
97
|
});
|
|
99
98
|
});
|
|
100
|
-
var _default = platform;
|
|
101
|
-
exports["default"] = _default;
|
|
99
|
+
var _default = exports["default"] = platform;
|
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 = function emergency(messageId, keyVals, freeText) {
|
|
80
|
+
var emergency = exports.emergency = function emergency(messageId, keyVals, freeText) {
|
|
81
81
|
log(levelEmergency, messageId, keyVals, freeText);
|
|
82
82
|
};
|
|
83
83
|
|
|
@@ -92,8 +92,7 @@ var emergency = function emergency(messageId, keyVals, freeText) {
|
|
|
92
92
|
* @memberof webos/pmloglib
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
exports.
|
|
96
|
-
var alert = function alert(messageId, keyVals, freeText) {
|
|
95
|
+
var alert = exports.alert = function alert(messageId, keyVals, freeText) {
|
|
97
96
|
log(levelAlert, messageId, keyVals, freeText);
|
|
98
97
|
};
|
|
99
98
|
|
|
@@ -108,8 +107,7 @@ var alert = function alert(messageId, keyVals, freeText) {
|
|
|
108
107
|
* @memberof webos/pmloglib
|
|
109
108
|
* @public
|
|
110
109
|
*/
|
|
111
|
-
exports.
|
|
112
|
-
var critical = function critical(messageId, keyVals, freeText) {
|
|
110
|
+
var critical = exports.critical = function critical(messageId, keyVals, freeText) {
|
|
113
111
|
log(levelCritical, messageId, keyVals, freeText);
|
|
114
112
|
};
|
|
115
113
|
|
|
@@ -124,8 +122,7 @@ var critical = function critical(messageId, keyVals, freeText) {
|
|
|
124
122
|
* @memberof webos/pmloglib
|
|
125
123
|
* @public
|
|
126
124
|
*/
|
|
127
|
-
exports.
|
|
128
|
-
var error = function error(messageId, keyVals, freeText) {
|
|
125
|
+
var error = exports.error = function error(messageId, keyVals, freeText) {
|
|
129
126
|
log(levelError, messageId, keyVals, freeText);
|
|
130
127
|
};
|
|
131
128
|
|
|
@@ -140,8 +137,7 @@ var error = function error(messageId, keyVals, freeText) {
|
|
|
140
137
|
* @memberof webos/pmloglib
|
|
141
138
|
* @public
|
|
142
139
|
*/
|
|
143
|
-
exports.
|
|
144
|
-
var warning = function warning(messageId, keyVals, freeText) {
|
|
140
|
+
var warning = exports.warning = function warning(messageId, keyVals, freeText) {
|
|
145
141
|
log(levelWarning, messageId, keyVals, freeText);
|
|
146
142
|
};
|
|
147
143
|
|
|
@@ -156,8 +152,7 @@ var warning = function warning(messageId, keyVals, freeText) {
|
|
|
156
152
|
* @memberof webos/pmloglib
|
|
157
153
|
* @public
|
|
158
154
|
*/
|
|
159
|
-
exports.
|
|
160
|
-
var notice = function notice(messageId, keyVals, freeText) {
|
|
155
|
+
var notice = exports.notice = function notice(messageId, keyVals, freeText) {
|
|
161
156
|
log(levelNotice, messageId, keyVals, freeText);
|
|
162
157
|
};
|
|
163
158
|
|
|
@@ -172,8 +167,7 @@ var notice = function notice(messageId, keyVals, freeText) {
|
|
|
172
167
|
* @memberof webos/pmloglib
|
|
173
168
|
* @public
|
|
174
169
|
*/
|
|
175
|
-
exports.
|
|
176
|
-
var info = function info(messageId, keyVals, freeText) {
|
|
170
|
+
var info = exports.info = function info(messageId, keyVals, freeText) {
|
|
177
171
|
log(levelInfo, messageId, keyVals, freeText);
|
|
178
172
|
};
|
|
179
173
|
|
|
@@ -186,8 +180,7 @@ var info = function info(messageId, keyVals, freeText) {
|
|
|
186
180
|
* @memberof webos/pmloglib
|
|
187
181
|
* @public
|
|
188
182
|
*/
|
|
189
|
-
exports.
|
|
190
|
-
var debug = function debug(freeText) {
|
|
183
|
+
var debug = exports.debug = function debug(freeText) {
|
|
191
184
|
log(levelDebug, '', '', freeText);
|
|
192
185
|
};
|
|
193
186
|
|
|
@@ -203,8 +196,7 @@ var debug = function debug(freeText) {
|
|
|
203
196
|
* @memberof webos/pmloglib
|
|
204
197
|
* @public
|
|
205
198
|
*/
|
|
206
|
-
exports.
|
|
207
|
-
var perfLog = function perfLog(messageId, perfType, perfGroup) {
|
|
199
|
+
var perfLog = exports.perfLog = function perfLog(messageId, perfType, perfGroup) {
|
|
208
200
|
if (typeof window !== 'undefined' && (window.webOSSystem || window.PalmSystem)) {
|
|
209
201
|
var _window$webOSSystem2;
|
|
210
202
|
if (!messageId) {
|
|
@@ -217,5 +209,4 @@ var perfLog = function perfLog(messageId, perfType, perfGroup) {
|
|
|
217
209
|
console.error('Unable to send log: PmLogInfoWithClock not found in this version of webOSSystem');
|
|
218
210
|
}
|
|
219
211
|
}
|
|
220
|
-
};
|
|
221
|
-
exports.perfLog = perfLog;
|
|
212
|
+
};
|
|
@@ -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(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; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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 = (0, _hoc["default"])(function (config, Wrapped) {
|
|
78
|
+
var VoiceControlDecorator = exports.VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
|
|
79
79
|
var _class;
|
|
80
80
|
return _class = /*#__PURE__*/function (_Component) {
|
|
81
81
|
_inherits(_class, _Component);
|
|
@@ -118,6 +118,4 @@ var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
|
|
|
118
118
|
onVoice: _propTypes["default"].func.isRequired
|
|
119
119
|
}, _class;
|
|
120
120
|
});
|
|
121
|
-
exports
|
|
122
|
-
var _default = VoiceControlDecorator;
|
|
123
|
-
exports["default"] = _default;
|
|
121
|
+
var _default = exports["default"] = VoiceControlDecorator;
|
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 = function readAlert(string) {
|
|
73
|
+
var readAlert = exports.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,6 +82,4 @@ var readAlert = function readAlert(string) {
|
|
|
82
82
|
console.warn('Platform doesn\'t support TTS api.');
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
exports
|
|
86
|
-
var _default = readAlert;
|
|
87
|
-
exports["default"] = _default;
|
|
85
|
+
var _default = exports["default"] = readAlert;
|