@enact/webos 4.7.8 → 4.8.0

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
+ ## [4.8.0] - 2024-02-08
6
+
7
+ No significant changes.
8
+
9
+ ## [4.7.9] - 2023-12-08
10
+
11
+ No significant changes.
12
+
13
+ ## [4.5.6] - 2023-11-30
14
+
15
+ No significant changes.
16
+
17
+ ## [4.0.13] - 2022-11-29
18
+
19
+ No significant changes.
20
+
5
21
  ## [4.7.8] - 2023-11-17
6
22
 
7
23
  No significant changes.
@@ -8,13 +8,13 @@ var _util = require("@enact/core/util");
8
8
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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
- 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); } /* 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
- */
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
12
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* 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
+ */
18
18
  var refs = {};
19
19
  var adjustPath = function adjustPath(path) {
20
20
  if (!/^(luna|palm):\/\//.test(path)) path = 'luna://' + path;
@@ -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
+ }();
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install --save @enact/webos
12
12
 
13
13
  Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
14
14
 
15
- Copyright (c) 2012-2023 LG Electronics
15
+ Copyright (c) 2012-2024 LG Electronics
16
16
 
17
17
  Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at
18
18
 
@@ -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.8.0",
4
4
  "description": "webOS support library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,6 +11,7 @@
11
11
  "main": "index.js",
12
12
  "scripts": {
13
13
  "clean": "enact clean",
14
+ "interlink": "npm link ../core",
14
15
  "lint": "enact lint --strict",
15
16
  "test": "enact test",
16
17
  "test-json": "enact test --json",
@@ -31,7 +32,7 @@
31
32
  }
32
33
  },
33
34
  "dependencies": {
34
- "@enact/core": "^4.7.8",
35
+ "@enact/core": "^4.8.0",
35
36
  "prop-types": "^15.8.1",
36
37
  "react": "^18.2.0",
37
38
  "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,14 +10,14 @@ 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); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
20
- 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); }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
21
  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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -25,57 +25,57 @@ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "
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
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
- */
78
- var VoiceControlDecorator = (0, _hoc["default"])(function (config, Wrapped) {
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
+ */
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;