@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 CHANGED
@@ -2,6 +2,10 @@
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.9] - 2023-12-08
6
+
7
+ No significant changes.
8
+
5
9
  ## [4.7.8] - 2023-11-17
6
10
 
7
11
  No significant changes.
@@ -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.fetchAppId = fetchAppId;
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.fetchAppInfo = fetchAppInfo;
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.fetchAppRootPath = fetchAppRootPath;
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
+ };
@@ -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.deviceinfo = deviceinfo;
105
- var _default = deviceinfo;
106
- exports["default"] = _default;
104
+ var _default = exports["default"] = deviceinfo;
@@ -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.8",
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.8",
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"
@@ -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;
@@ -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.emergency = emergency;
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.alert = alert;
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.critical = critical;
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.error = error;
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.warning = warning;
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.notice = notice;
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.info = info;
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.debug = debug;
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(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; }
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.VoiceControlDecorator = VoiceControlDecorator;
122
- var _default = VoiceControlDecorator;
123
- exports["default"] = _default;
121
+ var _default = exports["default"] = VoiceControlDecorator;
@@ -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.readAlert = readAlert;
86
- var _default = readAlert;
87
- exports["default"] = _default;
85
+ var _default = exports["default"] = readAlert;