@enact/webos 4.6.0 → 4.6.1
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/package.json +2 -2
- package/LS2Request/LS2Request.d.ts +0 -22
- package/application/application.d.ts +0 -32
- package/deviceinfo/deviceinfo.d.ts +0 -22
- package/index.d.ts +0 -0
- package/keyboard/keyboard.d.ts +0 -9
- package/platform/platform.d.ts +0 -15
- package/pmloglib/pmloglib.d.ts +0 -74
- package/speech/index.d.ts +0 -19
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/webos",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
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.6.
|
|
34
|
+
"@enact/core": "^4.6.1",
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-dom": "^18.2.0"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/LS2Request
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A class for managing LS2 Requests.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export declare class LS2Request {
|
|
11
|
-
constructor();
|
|
12
|
-
/**
|
|
13
|
-
* Send a request to an LS2 service method.
|
|
14
|
-
*/
|
|
15
|
-
send(options: object): LS2Request;
|
|
16
|
-
/**
|
|
17
|
-
* Cancel the current LS2 request.
|
|
18
|
-
*/
|
|
19
|
-
cancel(): void;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default LS2Request;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/application
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Fetches the appID of the caller app.
|
|
8
|
-
*/
|
|
9
|
-
export function fetchAppId(): string;
|
|
10
|
-
/**
|
|
11
|
-
* The callback signature for `fetchAppInfo`
|
|
12
|
-
*/
|
|
13
|
-
export interface appInfoCallback {
|
|
14
|
-
(
|
|
15
|
-
/**
|
|
16
|
-
* JSON data object read from the app's _appinfo.json_ file. `undefined` if not found.
|
|
17
|
-
*/
|
|
18
|
-
info: any
|
|
19
|
-
): void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Fetches the _appinfo.json_ data of the caller app.
|
|
23
|
-
*/
|
|
24
|
-
export function fetchAppInfo(callback: appInfoCallback, path?: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Fetches the full root URI (path) of the caller app.
|
|
27
|
-
*/
|
|
28
|
-
export function fetchAppRootPath(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Emulate the remote _back_ key.
|
|
31
|
-
*/
|
|
32
|
-
export function platformBack(): void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/deviceinfo
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Callback signature for `deviceinfo`
|
|
8
|
-
*/
|
|
9
|
-
export interface deviceCallback {
|
|
10
|
-
(
|
|
11
|
-
/**
|
|
12
|
-
* JSON object containing the device information details
|
|
13
|
-
*/
|
|
14
|
-
info: object
|
|
15
|
-
): void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Gets the device-specific information regarding model, OS version, specifications, etc.
|
|
19
|
-
*/
|
|
20
|
-
export function deviceinfo(callback: deviceCallback): void;
|
|
21
|
-
|
|
22
|
-
export default deviceinfo;
|
package/index.d.ts
DELETED
|
File without changes
|
package/keyboard/keyboard.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/keyboard
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Checks if the virtual keyboard is visible (only works on SmartTV platform).
|
|
8
|
-
*/
|
|
9
|
-
export function isShowing(): boolean;
|
package/platform/platform.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/platform
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Returns the object.
|
|
8
|
-
*/
|
|
9
|
-
export function detect(): object;
|
|
10
|
-
/**
|
|
11
|
-
* Provides identification of webOS variants.
|
|
12
|
-
*/
|
|
13
|
-
export declare const platform: object;
|
|
14
|
-
|
|
15
|
-
export default platform;
|
package/pmloglib/pmloglib.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/pmloglib
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Logs with PmLogLib at the "emergency" level.
|
|
8
|
-
*/
|
|
9
|
-
export function emergency(
|
|
10
|
-
messageId: string,
|
|
11
|
-
keyVals: object,
|
|
12
|
-
freeText: string
|
|
13
|
-
): void;
|
|
14
|
-
/**
|
|
15
|
-
* Logs with PmLogLib at the "alert" level.
|
|
16
|
-
*/
|
|
17
|
-
export function alert(
|
|
18
|
-
messageId: string,
|
|
19
|
-
keyVals: object,
|
|
20
|
-
freeText: string
|
|
21
|
-
): void;
|
|
22
|
-
/**
|
|
23
|
-
* Logs with PmLogLib at the "critical" level.
|
|
24
|
-
*/
|
|
25
|
-
export function critical(
|
|
26
|
-
messageId: string,
|
|
27
|
-
keyVals: object,
|
|
28
|
-
freeText: string
|
|
29
|
-
): void;
|
|
30
|
-
/**
|
|
31
|
-
* Logs with PmLogLib at the "error" level.
|
|
32
|
-
*/
|
|
33
|
-
export function error(
|
|
34
|
-
messageId: string,
|
|
35
|
-
keyVals: object,
|
|
36
|
-
freeText: string
|
|
37
|
-
): void;
|
|
38
|
-
/**
|
|
39
|
-
* Logs with PmLogLib at the "warning" level.
|
|
40
|
-
*/
|
|
41
|
-
export function warning(
|
|
42
|
-
messageId: string,
|
|
43
|
-
keyVals: object,
|
|
44
|
-
freeText: string
|
|
45
|
-
): void;
|
|
46
|
-
/**
|
|
47
|
-
* Logs with PmLogLib at the "notice" level.
|
|
48
|
-
*/
|
|
49
|
-
export function notice(
|
|
50
|
-
messageId: string,
|
|
51
|
-
keyVals: object,
|
|
52
|
-
freeText: string
|
|
53
|
-
): void;
|
|
54
|
-
/**
|
|
55
|
-
* Logs with PmLogLib at the "info" level.
|
|
56
|
-
*/
|
|
57
|
-
export function info(
|
|
58
|
-
messageId: string,
|
|
59
|
-
keyVals: object,
|
|
60
|
-
freeText: string
|
|
61
|
-
): void;
|
|
62
|
-
/**
|
|
63
|
-
* Logs with PmLogLib at the "debug" level.
|
|
64
|
-
*/
|
|
65
|
-
export function debug(freeText: string): void;
|
|
66
|
-
/**
|
|
67
|
-
* Places a time-stamped performance log entry into the system log using the `PmLogInfoWithClock()`
|
|
68
|
-
method.
|
|
69
|
-
*/
|
|
70
|
-
export function perfLog(
|
|
71
|
-
messageId: string,
|
|
72
|
-
perfType: string,
|
|
73
|
-
perfGroup: string
|
|
74
|
-
): void;
|
package/speech/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Type definitions for webos/speech
|
|
2
|
-
|
|
3
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
|
-
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
5
|
-
|
|
6
|
-
export interface VoiceControlDecoratorProps {
|
|
7
|
-
/**
|
|
8
|
-
* Callback to be executed when a wrapped element's `data-webos-voice-intent` is activated.
|
|
9
|
-
*/
|
|
10
|
-
onVoice: Function;
|
|
11
|
-
}
|
|
12
|
-
export function VoiceControlDecorator<P>(
|
|
13
|
-
Component: React.ComponentType<P> | string
|
|
14
|
-
): React.ComponentType<P & VoiceControlDecoratorProps>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Read alert text when accessibility audio guidance is enabled.
|
|
18
|
-
*/
|
|
19
|
-
export function readAlert(string: string, clear: boolean): void;
|