@videosdk.live/react-sdk 0.6.7 → 0.7.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/README.md +79 -67
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/types/index.d.ts +31 -0
- package/package.json +5 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1934,6 +1934,29 @@ export function withAdaptiveObservers(
|
|
|
1934
1934
|
debounceDelay?: number
|
|
1935
1935
|
): React.ComponentType<any>;
|
|
1936
1936
|
|
|
1937
|
+
/**
|
|
1938
|
+
* Updates the SDK logging verbosity level.
|
|
1939
|
+
*
|
|
1940
|
+
* Higher verbosity levels show more detailed logs, including messages from lower levels, helping with debugging while keeping console output manageable.
|
|
1941
|
+
*
|
|
1942
|
+
* The log level can be modified at runtime and is applied immediately.
|
|
1943
|
+
*
|
|
1944
|
+
* @example
|
|
1945
|
+
* ```js
|
|
1946
|
+
* import {setLogLevel , Constants} from "@videosdk.live/react-sdk";
|
|
1947
|
+
*
|
|
1948
|
+
* setLogLevel(Constants.LogLevel.ALL);
|
|
1949
|
+
* ```
|
|
1950
|
+
*/
|
|
1951
|
+
export function setLogLevel(
|
|
1952
|
+
/**
|
|
1953
|
+
* Defines how media streams should behave {@link LogLevel}.
|
|
1954
|
+
*
|
|
1955
|
+
* @default LogLevel.INFO
|
|
1956
|
+
*/
|
|
1957
|
+
logLevel?: 'NONE' | 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'ALL'
|
|
1958
|
+
): void;
|
|
1959
|
+
|
|
1937
1960
|
export const Constants: {
|
|
1938
1961
|
errors: {
|
|
1939
1962
|
INVALID_API_KEY: number;
|
|
@@ -2059,5 +2082,13 @@ export const Constants: {
|
|
|
2059
2082
|
BALANCED: string;
|
|
2060
2083
|
BANDWIDTH_OPTIMIZED: string;
|
|
2061
2084
|
};
|
|
2085
|
+
LogLevel: {
|
|
2086
|
+
NONE: string;
|
|
2087
|
+
ERROR: string;
|
|
2088
|
+
WARN: string;
|
|
2089
|
+
INFO: string;
|
|
2090
|
+
DEBUG: string;
|
|
2091
|
+
ALL: string;
|
|
2092
|
+
};
|
|
2062
2093
|
};
|
|
2063
2094
|
export { CameraDeviceInfo, DeviceInfo, MicrophoneDeviceInfo };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@videosdk.live/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.modern.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"build": "microbundle-crl --no-compress --format modern,cjs && yarn copyTypesFolder",
|
|
11
11
|
"copyTypesFolder": "cp -a ./src/types/ ./dist/types",
|
|
12
12
|
"prettier": "prettier --write 'src/**/*.js'",
|
|
13
|
-
"lint": "eslint 'src/**/*.js'"
|
|
13
|
+
"lint": "eslint 'src/**/*.js'",
|
|
14
|
+
"typedoc": "typedoc"
|
|
14
15
|
},
|
|
15
16
|
"peerDependencies": {
|
|
16
17
|
"react": "^16.13.1 || ^17 || ^18 || ^19"
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"prettier": "^1.17.1",
|
|
40
41
|
"react": "^16.13.1",
|
|
41
42
|
"test-listen": "^1.1.0",
|
|
43
|
+
"typedoc": "^0.28.15",
|
|
42
44
|
"typescript": "^4.7.4"
|
|
43
45
|
},
|
|
44
46
|
"eslintConfig": {
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
}
|
|
75
77
|
},
|
|
76
78
|
"dependencies": {
|
|
77
|
-
"@videosdk.live/js-sdk": "0.
|
|
79
|
+
"@videosdk.live/js-sdk": "0.6.0",
|
|
78
80
|
"events": "^3.3.0"
|
|
79
81
|
}
|
|
80
82
|
}
|