Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref(TS) Alpha sort interfaces (#11883)

Robert Pintiliiac2af798073f
diff --git a/package-lock.json b/package-lock.json
index 78cc6ef841..2c5c61e16c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -162,6 +162,7 @@
"eslint-plugin-jsdoc": "37.0.3",
"eslint-plugin-react": "7.26.1",
"eslint-plugin-react-native": "3.11.0",
+ "eslint-plugin-typescript-sort-keys": "2.1.0",
"expose-loader": "3.0.0",
"imports-loader": "0.7.1",
"jetifier": "1.6.4",
@@ -5766,6 +5767,147 @@
"node": ">=10"
}
},
+ "node_modules/@typescript-eslint/experimental-utils": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.30.7.tgz",
+ "integrity": "sha512-r218ZVL0zFBYzEq8/9K2ZhRgsmKUhm8xd3sWChgvTbmP98kHGuY83IUl64SS9fx9OSBM9vMLdzBfox4eDdm/ZQ==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/utils": "5.30.7"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/scope-manager": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.30.7.tgz",
+ "integrity": "sha512-7BM1bwvdF1UUvt+b9smhqdc/eniOnCKxQT/kj3oXtj3LqnTWCAM0qHRHfyzCzhEfWX0zrW7KqXXeE4DlchZBKw==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/visitor-keys": "5.30.7"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/types": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.30.7.tgz",
+ "integrity": "sha512-ocVkETUs82+U+HowkovV6uxf1AnVRKCmDRNUBUUo46/5SQv1owC/EBFkiu4MOHeZqhKz2ktZ3kvJJ1uFqQ8QPg==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/typescript-estree": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.7.tgz",
+ "integrity": "sha512-tNslqXI1ZdmXXrHER83TJ8OTYl4epUzJC0aj2i4DMDT4iU+UqLT3EJeGQvJ17BMbm31x5scSwo3hPM0nqQ1AEA==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/visitor-keys": "5.30.7",
+ "debug": "^4.3.4",
+ "globby": "^11.1.0",
+ "is-glob": "^4.0.3",
+ "semver": "^7.3.7",
+ "tsutils": "^3.21.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/utils": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.30.7.tgz",
+ "integrity": "sha512-Z3pHdbFw+ftZiGUnm1GZhkJgVqsDL5CYW2yj+TB2mfXDFOMqtbzQi2dNJIyPqPbx9mv2kUxS1gU+r2gKlKi1rQ==",
+ "dev": true,
+ "dependencies": {
+ "@types/json-schema": "^7.0.9",
+ "@typescript-eslint/scope-manager": "5.30.7",
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/typescript-estree": "5.30.7",
+ "eslint-scope": "^5.1.1",
+ "eslint-utils": "^3.0.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/visitor-keys": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.7.tgz",
+ "integrity": "sha512-KrRXf8nnjvcpxDFOKej4xkD7657+PClJs5cJVSG7NNoCNnjEdc46juNAQt7AyuWctuCgs6mVRc1xGctEqrjxWw==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "5.30.7",
+ "eslint-visitor-keys": "^3.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/experimental-utils/node_modules/semver": {
+ "version": "7.3.7",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
+ "dev": true,
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/@typescript-eslint/parser": {
"version": "5.30.4",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.30.4.tgz",
@@ -9317,6 +9459,25 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/eslint-plugin-typescript-sort-keys": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-2.1.0.tgz",
+ "integrity": "sha512-ET7ABypdz19m47QnKynzNfWPi4CTNQ5jQQC1X5d0gojIwblkbGiCa5IilsqzBTmqxZ0yXDqKBO/GBkBFQCOFsg==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/experimental-utils": "^5.0.0",
+ "json-schema": "^0.4.0",
+ "natural-compare-lite": "^1.4.0"
+ },
+ "engines": {
+ "node": "10 - 12 || >= 13.9"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^1 || ^2 || ^3 || ^4 || ^5",
+ "eslint": "^5 || ^6 || ^7 || ^8",
+ "typescript": "^3 || ^4"
+ }
+ },
"node_modules/eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
@@ -12379,6 +12540,12 @@
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="
},
+ "node_modules/json-schema": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
+ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
+ "dev": true
+ },
"node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
@@ -13682,6 +13849,12 @@
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
"dev": true
},
+ "node_modules/natural-compare-lite": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
+ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
+ "dev": true
+ },
"node_modules/negotiator": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
@@ -24827,6 +25000,87 @@
}
}
},
+ "@typescript-eslint/experimental-utils": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.30.7.tgz",
+ "integrity": "sha512-r218ZVL0zFBYzEq8/9K2ZhRgsmKUhm8xd3sWChgvTbmP98kHGuY83IUl64SS9fx9OSBM9vMLdzBfox4eDdm/ZQ==",
+ "dev": true,
+ "requires": {
+ "@typescript-eslint/utils": "5.30.7"
+ },
+ "dependencies": {
+ "@typescript-eslint/scope-manager": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.30.7.tgz",
+ "integrity": "sha512-7BM1bwvdF1UUvt+b9smhqdc/eniOnCKxQT/kj3oXtj3LqnTWCAM0qHRHfyzCzhEfWX0zrW7KqXXeE4DlchZBKw==",
+ "dev": true,
+ "requires": {
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/visitor-keys": "5.30.7"
+ }
+ },
+ "@typescript-eslint/types": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.30.7.tgz",
+ "integrity": "sha512-ocVkETUs82+U+HowkovV6uxf1AnVRKCmDRNUBUUo46/5SQv1owC/EBFkiu4MOHeZqhKz2ktZ3kvJJ1uFqQ8QPg==",
+ "dev": true
+ },
+ "@typescript-eslint/typescript-estree": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.7.tgz",
+ "integrity": "sha512-tNslqXI1ZdmXXrHER83TJ8OTYl4epUzJC0aj2i4DMDT4iU+UqLT3EJeGQvJ17BMbm31x5scSwo3hPM0nqQ1AEA==",
+ "dev": true,
+ "requires": {
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/visitor-keys": "5.30.7",
+ "debug": "^4.3.4",
+ "globby": "^11.1.0",
+ "is-glob": "^4.0.3",
+ "semver": "^7.3.7",
+ "tsutils": "^3.21.0"
+ }
+ },
+ "@typescript-eslint/utils": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.30.7.tgz",
+ "integrity": "sha512-Z3pHdbFw+ftZiGUnm1GZhkJgVqsDL5CYW2yj+TB2mfXDFOMqtbzQi2dNJIyPqPbx9mv2kUxS1gU+r2gKlKi1rQ==",
+ "dev": true,
+ "requires": {
+ "@types/json-schema": "^7.0.9",
+ "@typescript-eslint/scope-manager": "5.30.7",
+ "@typescript-eslint/types": "5.30.7",
+ "@typescript-eslint/typescript-estree": "5.30.7",
+ "eslint-scope": "^5.1.1",
+ "eslint-utils": "^3.0.0"
+ }
+ },
+ "@typescript-eslint/visitor-keys": {
+ "version": "5.30.7",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.7.tgz",
+ "integrity": "sha512-KrRXf8nnjvcpxDFOKej4xkD7657+PClJs5cJVSG7NNoCNnjEdc46juNAQt7AyuWctuCgs6mVRc1xGctEqrjxWw==",
+ "dev": true,
+ "requires": {
+ "@typescript-eslint/types": "5.30.7",
+ "eslint-visitor-keys": "^3.3.0"
+ }
+ },
+ "eslint-visitor-keys": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
+ "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",
+ "dev": true
+ },
+ "semver": {
+ "version": "7.3.7",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ }
+ }
+ },
"@typescript-eslint/parser": {
"version": "5.30.4",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.30.4.tgz",
@@ -27701,6 +27955,17 @@
"integrity": "sha512-9aEPf1JEpiTjcFAmmyw8eiIXmcNZOqaZyHO77wgm0/dWfT/oxC1SrIq8ET38pMxHYrcB6Uew+TzUVsBeczF88g==",
"dev": true
},
+ "eslint-plugin-typescript-sort-keys": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-2.1.0.tgz",
+ "integrity": "sha512-ET7ABypdz19m47QnKynzNfWPi4CTNQ5jQQC1X5d0gojIwblkbGiCa5IilsqzBTmqxZ0yXDqKBO/GBkBFQCOFsg==",
+ "dev": true,
+ "requires": {
+ "@typescript-eslint/experimental-utils": "^5.0.0",
+ "json-schema": "^0.4.0",
+ "natural-compare-lite": "^1.4.0"
+ }
+ },
"eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
@@ -29897,6 +30162,12 @@
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="
},
+ "json-schema": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
+ "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
+ "dev": true
+ },
"json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
@@ -30976,6 +31247,12 @@
"integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
"dev": true
},
+ "natural-compare-lite": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
+ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
+ "dev": true
+ },
"negotiator": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
diff --git a/package.json b/package.json
index 13ad6291a4..f7c3cdc8ea 100644
--- a/package.json
+++ b/package.json
@@ -167,6 +167,7 @@
"eslint-plugin-jsdoc": "37.0.3",
"eslint-plugin-react": "7.26.1",
"eslint-plugin-react-native": "3.11.0",
+ "eslint-plugin-typescript-sort-keys": "2.1.0",
"expose-loader": "3.0.0",
"imports-loader": "0.7.1",
"jetifier": "1.6.4",
diff --git a/react/.eslintrc.js b/react/.eslintrc.js
index 50a45456bd..e5b7466f56 100644
--- a/react/.eslintrc.js
+++ b/react/.eslintrc.js
@@ -19,11 +19,12 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'no-prototype-builtins': 'off',
'no-shadow': 'off',
- '@typescript-eslint/no-shadow': [ 'error' ]
+ '@typescript-eslint/no-shadow': [ 'error' ],
+ 'typescript-sort-keys/interface': 'error',
+ 'typescript-sort-keys/string-enum': 'error'
},
- 'plugins': [ '@typescript-eslint' ],
+ 'plugins': [ '@typescript-eslint', 'typescript-sort-keys' ],
'extends': [
- 'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
]
diff --git a/react/features/analytics/reducer.ts b/react/features/analytics/reducer.ts
index 67cbc03f8a..185f06a06e 100644
--- a/react/features/analytics/reducer.ts
+++ b/react/features/analytics/reducer.ts
@@ -36,11 +36,11 @@ interface Value {
export interface IAnalyticsState {
localTracksDuration: {
audio: Value,
+ conference: Value,
video: {
camera: Value,
desktop: Value
- },
- conference: Value
+ }
}
}
diff --git a/react/features/app/types.ts b/react/features/app/types.ts
index e256eb3e3a..1557c8a9ab 100644
--- a/react/features/app/types.ts
+++ b/react/features/app/types.ts
@@ -14,8 +14,8 @@ import { ILastNState } from '../base/lastn/reducer';
import { ILibJitsiMeetState } from '../base/lib-jitsi-meet/reducer';
export interface IStore {
- getState: Function,
- dispatch: Function
+ dispatch: Function,
+ getState: Function
}
export interface IState {
diff --git a/react/features/av-moderation/reducer.ts b/react/features/av-moderation/reducer.ts
index 959f905c51..34a45de20c 100644
--- a/react/features/av-moderation/reducer.ts
+++ b/react/features/av-moderation/reducer.ts
@@ -31,13 +31,13 @@ const initialState = {
export interface IAVModerationState {
audioModerationEnabled: boolean;
- videoModerationEnabled: boolean;
+ audioUnmuteApproved?: boolean|undefined;
audioWhitelist: { [id: string]: boolean };
- videoWhitelist: { [id: string]: boolean };
pendingAudio: Array<{ id: string }>;
pendingVideo: Array<{ id: string }>;
- audioUnmuteApproved?: boolean|undefined;
+ videoModerationEnabled: boolean;
videoUnmuteApproved?: boolean|undefined;
+ videoWhitelist: { [id: string]: boolean };
}
/**
diff --git a/react/features/base/conference/reducer.ts b/react/features/base/conference/reducer.ts
index 9e6a666cd1..00d0017f2d 100644
--- a/react/features/base/conference/reducer.ts
+++ b/react/features/base/conference/reducer.ts
@@ -47,24 +47,24 @@ const DEFAULT_STATE = {
};
export interface IConferenceState {
+ authEnabled?: boolean|undefined;
+ authLogin?: string|undefined;
+ authRequired?: Object;
conference: Object|undefined;
+ conferenceTimestamp?: number;
e2eeSupported: boolean|undefined;
+ followMeEnabled?: boolean;
joining: Object|undefined;
leaving: Object|undefined;
+ localSubject?: string;
locked: string|undefined;
membersOnly: boolean|undefined;
password: string|undefined;
passwordRequired: boolean|undefined;
- authEnabled?: boolean|undefined;
- authLogin?: string|undefined;
- subject?: string;
- localSubject?: string;
- conferenceTimestamp?: number;
- authRequired?: Object;
- followMeEnabled?: boolean;
- startReactionsMuted?: boolean;
- room?: Object;
pendingSubjectChange?: string;
+ room?: Object;
+ startReactionsMuted?: boolean;
+ subject?: string;
}
/**
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index 58f7ae63cc..dac82b7d26 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -89,379 +89,379 @@ type Sounds = 'ASKED_TO_UNMUTE_SOUND' |
'TALK_WHILE_MUTED_SOUND';
export interface IConfig {
- hosts?: {
- domain: string;
- anonymousdomain?: string;
- authdomain?: string;
- focus?: string;
- muc: string;
- };
- bosh?: string;
- websocket?: string;
- focusUserJid?: string;
- testing?: {
- disableE2EE?: boolean;
- enableThumbnailReordering?: boolean;
- mobileXmppWsThreshold?: number;
- p2pTestMode?: boolean;
- testMode?: boolean;
- noAutoPlayVideo?: boolean;
- capScreenshareBitrate?: number;
- setScreenSharingResolutionConstraints?: boolean;
- callStatsThreshold?: number;
- };
- flags?: {
- sourceNameSignaling?: boolean;
- sendMultipleVideoStreams?: boolean;
- };
- disableModeratorIndicator?: boolean;
- disableReactions?: boolean;
- disableReactionsModeration?: boolean;
- disablePolls?: boolean;
- disableSelfView?: boolean;
- disableSelfViewSettings?: boolean;
- screenshotCapture?: {
- enabled?: boolean;
- mode?: 'always' | 'recording';
+ _desktopSharingSourceDevice?: string;
+ analytics?: {
+ amplitudeAPPKey?: string;
+ disabled?: boolean;
+ googleAnalyticsTrackingId?: string;
+ matomoEndpoint?: string;
+ matomoSiteID?: string;
+ obfuscateRoomName?: boolean;
+ rtcstatsEnabled?: boolean;
+ rtcstatsEndpoint?: string;
+ rtcstatsPolIInterval?: number;
+ scriptURLs?: Array<string>;
};
- webrtcIceUdpDisable?: boolean;
- webrtcIceTcpDisable?: boolean;
- enableUnifiedOnChrome?: boolean;
- disableAudioLevels?: boolean;
+ apiLogLevels?: Array<'warn' | 'log' | 'error' | 'info' | 'debug'>;
audioLevelsInterval?: number;
- enableNoAudioDetection?: boolean;
- enableSaveLogs?: boolean;
- disableShowMoreStats?: boolean;
- enableNoisyMicDetection?: boolean;
- startAudioOnly?: boolean;
- startAudioMuted?: boolean;
- startWithAudioMuted?: boolean;
- startSilent?: boolean;
- enableOpusRed?: boolean;
audioQuality?: {
- stereo?: boolean;
opusMaxAverageBitrate?: number|null;
+ stereo?: boolean;
};
- stereo?: boolean;
- opusMaxAverageBitrate?: number;
- resolution?: number;
- disableRemoveRaisedHandOnFocus?: boolean;
- disableSpeakerStatsSearch?: boolean;
- speakerStatsOrder?: Array<'role'|'name'|'hasLeft'>;
- maxFullResolutionParticipants?: number;
- constraints?: {
- video?: {
- height?: {
- ideal?: number;
- max?: number;
- min?: number;
- }
- }
- };
- disableSimulcast?: boolean;
- enableLayerSuspension?: boolean;
- startVideoMuted?: number;
- startWithVideoMuted?: boolean;
- preferH264?: boolean;
- disableH264?: boolean;
- desktopSharingFrameRate?: {
- min?: number;
- max?: number;
- };
- startScreenSharing?: boolean;
- fileRecordingsEnabled?: boolean;
- dropbox?: {
- appKey: string;
- redirectURI?: string;
- };
- recordingService?: {
- enabled?: boolean;
- sharingEnabled?: boolean;
- hideStorageWarning?: boolean;
- };
- fileRecordingsServiceEnabled?: boolean;
- fileRecordingsServiceSharingEnabled?: boolean;
- liveStreamingEnabled?: boolean;
- localRecording?: {
- disable?: boolean;
- notifyAllParticipants?: boolean;
- };
- transcribingEnabled?: boolean;
- transcribeWithAppLanguage?: boolean;
- preferredTranscribeLanguage?: string;
autoCaptionOnRecord?: boolean;
- transcription?: {
- enabled?: boolean;
- useAppLanguage?: boolean;
- preferredLanguage?: string;
- disableStartForAll?: boolean;
- autoCaptionOnRecord?: boolean;
- };
- channelLastN?: number;
- connectionIndicators?: {
- autoHide?: boolean;
- autoHideTimeout?: number;
- disabled?: boolean;
- disableDetails?: boolean;
- inactiveDisabled?: boolean;
- };
- startLastN?: number;
- lastNLimits?: {
- [key: number]: number;
- };
- useNewBandwidthAllocationStrategy?: boolean;
- videoQuality?: {
- disabledCodec?: string;
- preferredCodec?: string;
- enforcePreferredCodec?: boolean;
- maxBitratesVideo?: {
- [key: string]: {
- low?: number;
- standard?: number;
- high?: number;
- }
- };
- minHeightForQualityLvl: {
- [key: number]: string;
- };
- resizeDesktopForPresenter?: boolean;
- };
- notificationTimeouts?: {
- short?: number;
- medium?: number;
- long?: number;
- };
- recordingLimit?: {
- limit?: number;
- appName?: string;
- appURL?: string;
- };
- disableRtx?: boolean;
- disableBeforeUnloadHandlers?: boolean;
- enableTcc?: boolean;
- enableRemb?: boolean;
- enableIceRestart?: boolean;
- enableForcedReload?: boolean;
- useTurnUdp?: boolean;
- enableEncodedTransformSupport?: boolean;
- disableResponsiveTiles?: boolean;
- hideLobbyButton?: boolean;
autoKnockLobby?: boolean;
- enableLobbyChat?: boolean;
- hideAddRoomButton?: boolean;
- requireDisplayName?: boolean;
- enableWelcomePage?: boolean;
- disableShortcuts?: boolean;
- disableInitialGUM?: boolean;
- enableClosePage?: boolean;
- disable1On1Mode?: boolean|null;
- defaultLocalDisplayName?: string;
- defaultRemoteDisplayName?: string;
- hideDisplayName?: boolean;
- hideDominantSpeakerBadge?: boolean;
- defaultLanguage?: string;
- disableProfile?: boolean;
- hideEmailInSettings?: boolean;
- enableFeaturesBasedOnToken?: boolean;
- roomPasswordNumberOfDigits?: number;
- noticeMessage?: string;
- enableCalendarIntegration?: boolean;
- prejoinConfig?: {
- enabled?: boolean;
- hideDisplayName?: boolean;
- hideExtraJoinButtons?: Array<string>;
- };
- prejoinPageEnabled?: boolean;
- readOnlyName?: boolean;
- openSharedDocumentOnJoin?: boolean;
- enableInsecureRoomNameWarning?: boolean;
- enableAutomaticUrlCopy?: boolean;
- corsAvatarURLs?: Array<string>;
- gravatarBaseURL?: string;
- gravatar?: {
- baseUrl?: string;
- disabled?: boolean;
- };
- inviteAppName?: string|null;
- toolbarButtons?: Array<ToolbarButtons>;
- toolbarConfig?: {
- initialTimeout?: number;
- timeout?: number;
- alwaysVisible?: boolean;
- autoHideWhileChatIsOpen?: boolean;
+ backgroundAlpha?: number;
+ bosh?: string;
+ brandingRoomAlias?: string;
+ breakoutRooms?: {
+ hideAddRoomButton?: boolean;
+ hideAutoAssignButton?: boolean;
+ hideJoinRoomButton?: boolean;
};
buttonsWithNotifyClick?: Array<ButtonsWithNotifyClick | { key: ButtonsWithNotifyClick; preventExecution: boolean }>;
- hiddenPremeetingButtons?: Array<'microphone' | 'camera' | 'select-background' | 'invite' | 'settings'>;
- gatherStats?: boolean;
- pcStatsInterval?: number;
- callStatsID?: string;
- callStatsSecret?: string;
callStatsConfigParams?: {
- disableBeforeUnloadHandler?: boolean;
- applicationVersion?: string;
- disablePrecalltest?: boolean;
- siteID?: string;
additionalIDs?: {
customerID?: string;
- tenantID?: string;
- productName?: string;
+ fqExtensionID?: string;
meetingsName?: string;
- serverName?: string;
- pbxID?: string;
pbxExtensionID?: string;
- fqExtensionID?: string;
+ pbxID?: string;
+ productName?: string;
+ serverName?: string;
sessionID?: string;
+ tenantID?: string;
};
- collectLegacyStats?: boolean;
+ applicationVersion?: string;
collectIP?: boolean;
+ collectLegacyStats?: boolean;
+ disableBeforeUnloadHandler?: boolean;
+ disablePrecalltest?: boolean;
+ siteID?: string;
};
- enableDisplayNameInStats?: boolean;
- enableEmailInStats?: boolean;
- faceLandmarks?: {
- enableFaceCentering?: boolean;
- enableFaceExpressionsDetection?: boolean;
- enableDisplayFaceExpressions?: boolean;
- enableRTCStats?: boolean;
- faceCenteringThreshold?: number;
- captureInterval?: number;
+ callStatsID?: string;
+ callStatsSecret?: string;
+ channelLastN?: number;
+ chromeExtensionBanner?: {
+ chromeExtensionsInfo?: Array<{id: string; path: string}>;
+ edgeUrl?: string;
+ url?: string;
};
- feedbackPercentage?: number;
- disableThirdPartyRequests?: boolean;
- p2p?: {
- enabled?: boolean;
- enableUnifiedOnChrome?: boolean;
- iceTransportPolicy?: string;
- preferH264?: boolean;
- preferredCodec?: string;
- disableH264?: boolean;
- disabledCodec?: string;
- backToP2PDelay?: number;
- stunServers?: Array<{urls: string}>;
+ conferenceInfo?: {
+ alwaysVisible?: Array<string>;
+ autoHide?: Array<string>;
};
- analytics?: {
+ connectionIndicators?: {
+ autoHide?: boolean;
+ autoHideTimeout?: number;
+ disableDetails?: boolean;
disabled?: boolean;
- googleAnalyticsTrackingId?: string;
- matomoEndpoint?: string;
- matomoSiteID?: string;
- amplitudeAPPKey?: string;
- obfuscateRoomName?: boolean;
- rtcstatsEnabled?: boolean;
- rtcstatsEndpoint?: string;
- rtcstatsPolIInterval?: number;
- scriptURLs?: Array<string>;
+ inactiveDisabled?: boolean;
};
- apiLogLevels?: Array<'warn' | 'log' | 'error' | 'info' | 'debug'>;
+ constraints?: {
+ video?: {
+ height?: {
+ ideal?: number;
+ max?: number;
+ min?: number;
+ }
+ }
+ };
+ corsAvatarURLs?: Array<string>;
+ defaultLanguage?: string;
+ defaultLocalDisplayName?: string;
+ defaultRemoteDisplayName?: string;
deploymentInfo?: {
- shard?: string;
region?: string;
+ shard?: string;
userRegion?: string;
};
- disabledSounds?: Array<Sounds>;
- disableRecordAudioNotification?: boolean;
- disableJoinLeaveSounds?: boolean;
+ deploymentUrls?: {
+ downloadAppsUrl?: string;
+ userDocumentationURL?: string;
+ };
+ desktopSharingFrameRate?: {
+ max?: number;
+ min?: number;
+ };
+ dialInConfCodeUrl?: string;
+ dialInNumbersUrl?: string;
+ disable1On1Mode?: boolean|null;
+ disableAddingBackgroundImages?: boolean;
+ disableAudioLevels?: boolean;
+ disableBeforeUnloadHandlers?: boolean;
+ disableChatSmileys?: boolean;
+ disableDeepLinking?: boolean;
+ disableFilmstripAutohiding?: boolean;
+ disableH264?: boolean;
disableIncomingMessageSound?: boolean;
- chromeExtensionBanner?: {
- url?: string;
- edgeUrl?: string;
- chromeExtensionsInfo?: Array<{id: string; path: string}>;
+ disableInitialGUM?: boolean;
+ disableInviteFunctions?: boolean;
+ disableJoinLeaveSounds?: boolean;
+ disableLocalVideoFlip?: boolean;
+ disableModeratorIndicator?: boolean;
+ disablePolls?: boolean;
+ disableProfile?: boolean;
+ disableReactions?: boolean;
+ disableReactionsModeration?: boolean;
+ disableRecordAudioNotification?: boolean;
+ disableRemoteMute?: boolean;
+ disableRemoveRaisedHandOnFocus?: boolean;
+ disableResponsiveTiles?: boolean;
+ disableRtx?: boolean;
+ disableScreensharingVirtualBackground?: boolean;
+ disableSelfView?: boolean;
+ disableSelfViewSettings?: boolean;
+ disableShortcuts?: boolean;
+ disableShowMoreStats?: boolean;
+ disableSimulcast?: boolean;
+ disableSpeakerStatsSearch?: boolean;
+ disableThirdPartyRequests?: boolean;
+ disableTileEnlargement?: boolean;
+ disableTileView?: boolean;
+ disabledNotifications?: Array<string>;
+ disabledSounds?: Array<Sounds>;
+ doNotFlipLocalVideo?: boolean;
+ doNotStoreRoom?: boolean;
+ dropbox?: {
+ appKey: string;
+ redirectURI?: string;
};
+ dynamicBrandingUrl?: string;
e2ee?: {
- labels?: {
- tooltip?: string;
+ e2eeLabels?: {
description?: string;
label?: string;
+ tooltip?: string;
warning?: string;
};
externallyManagedKey?: boolean;
- e2eeLabels?: {
- tooltip?: string;
+ labels?: {
description?: string;
label?: string;
+ tooltip?: string;
warning?: string;
};
};
e2eeLabels?: {
- tooltip?: string;
description?: string;
label?: string;
+ tooltip?: string;
warning?: string;
};
e2eping?: {
enabled?: boolean;
- numRequests?: number;
maxConferenceSize?: number;
maxMessagesPerSecond?: number;
+ numRequests?: number;
};
- _desktopSharingSourceDevice?: string;
- disableDeepLinking?: boolean;
- disableLocalVideoFlip?: boolean;
- doNotFlipLocalVideo?: boolean;
- disableInviteFunctions?: boolean;
- doNotStoreRoom?: boolean;
- deploymentUrls?: {
- userDocumentationURL?: string;
- downloadAppsUrl?: string;
+ enableAutomaticUrlCopy?: boolean;
+ enableCalendarIntegration?: boolean;
+ enableClosePage?: boolean;
+ enableDisplayNameInStats?: boolean;
+ enableEmailInStats?: boolean;
+ enableEncodedTransformSupport?: boolean;
+ enableFeaturesBasedOnToken?: boolean;
+ enableForcedReload?: boolean;
+ enableIceRestart?: boolean;
+ enableInsecureRoomNameWarning?: boolean;
+ enableLayerSuspension?: boolean;
+ enableLipSync?: boolean;
+ enableLobbyChat?: boolean;
+ enableNoAudioDetection?: boolean;
+ enableNoisyMicDetection?: boolean;
+ enableOpusRed?: boolean;
+ enableRemb?: boolean;
+ enableSaveLogs?: boolean;
+ enableTcc?: boolean;
+ enableUnifiedOnChrome?: boolean;
+ enableWelcomePage?: boolean;
+ etherpad_base?: string;
+ faceLandmarks?: {
+ captureInterval?: number;
+ enableDisplayFaceExpressions?: boolean;
+ enableFaceCentering?: boolean;
+ enableFaceExpressionsDetection?: boolean;
+ enableRTCStats?: boolean;
+ faceCenteringThreshold?: number;
};
- remoteVideoMenu?: {
- disabled?: boolean;
- disableKick?: boolean;
- disableGrantModerator?: boolean;
- disablePrivateChat?: boolean;
+ feedbackPercentage?: number;
+ fileRecordingsEnabled?: boolean;
+ fileRecordingsServiceEnabled?: boolean;
+ fileRecordingsServiceSharingEnabled?: boolean;
+ filmstrip?: {
+ disableResizable?: boolean;
+ disableStageFilmstrip?: boolean;
+ disableTopPanel?: boolean;
+ minParticipantCountForTopPanel?: number;
};
- salesforceUrl?: string;
- disableRemoteMute?: boolean;
- enableLipSync?: boolean;
- dynamicBrandingUrl?: string;
- participantsPane?: {
- hideModeratorSettingsTab?: boolean;
- hideMoreActionsButton?: boolean;
- hideMuteAllButton?: boolean;
+ flags?: {
+ sendMultipleVideoStreams?: boolean;
+ sourceNameSignaling?: boolean;
};
- breakoutRooms?: {
- hideAddRoomButton?: boolean;
- hideAutoAssignButton?: boolean;
- hideJoinRoomButton?: boolean;
+ focusUserJid?: string;
+ gatherStats?: boolean;
+ giphy?: {
+ displayMode?: 'all' | 'tile' | 'chat';
+ enabled?: boolean;
+ sdkKey?: '';
+ tileTime?: number;
};
- disableAddingBackgroundImages?: boolean;
- disableScreensharingVirtualBackground?: boolean;
- backgroundAlpha?: number;
- moderatedRoomServiceUrl?: string;
- disableTileView?: boolean;
- disableTileEnlargement?: boolean;
- conferenceInfo?: {
- alwaysVisible?: Array<string>;
- autoHide?: Array<string>;
+ gravatar?: {
+ baseUrl?: string;
+ disabled?: boolean;
};
+ gravatarBaseURL?: string;
+ hiddenPremeetingButtons?: Array<'microphone' | 'camera' | 'select-background' | 'invite' | 'settings'>;
+ hideAddRoomButton?: boolean;
hideConferenceSubject?: boolean;
hideConferenceTimer?: boolean;
- hideRecordingLabel?: boolean;
+ hideDisplayName?: boolean;
+ hideDominantSpeakerBadge?: boolean;
+ hideEmailInSettings?: boolean;
+ hideLobbyButton?: boolean;
hideParticipantsStats?: boolean;
- subject?: string;
+ hideRecordingLabel?: boolean;
+ hosts?: {
+ anonymousdomain?: string;
+ authdomain?: string;
+ domain: string;
+ focus?: string;
+ muc: string;
+ };
+ inviteAppName?: string|null;
+ lastNLimits?: {
+ [key: number]: number;
+ };
+ liveStreamingEnabled?: boolean;
+ localRecording?: {
+ disable?: boolean;
+ notifyAllParticipants?: boolean;
+ };
localSubject?: string;
- useHostPageLocalStorage?: boolean;
- etherpad_base?: string;
- dialInNumbersUrl?: string;
- dialInConfCodeUrl?: string;
- brandingRoomAlias?: string;
+ locationURL?: string;
+ maxFullResolutionParticipants?: number;
+ moderatedRoomServiceUrl?: string;
mouseMoveCallbackInterval?: number;
+ noticeMessage?: string;
+ notificationTimeouts?: {
+ long?: number;
+ medium?: number;
+ short?: number;
+ };
notifications?: Array<string>;
- disabledNotifications?: Array<string>;
- disableFilmstripAutohiding?: boolean;
- filmstrip?: {
- disableResizable?: boolean;
- disableStageFilmstrip?: boolean;
- disableTopPanel?: boolean;
- minParticipantCountForTopPanel?: number;
+ openSharedDocumentOnJoin?: boolean;
+ opusMaxAverageBitrate?: number;
+ p2p?: {
+ backToP2PDelay?: number;
+ disableH264?: boolean;
+ disabledCodec?: string;
+ enableUnifiedOnChrome?: boolean;
+ enabled?: boolean;
+ iceTransportPolicy?: string;
+ preferH264?: boolean;
+ preferredCodec?: string;
+ stunServers?: Array<{urls: string}>;
+ };
+ participantsPane?: {
+ hideModeratorSettingsTab?: boolean;
+ hideMoreActionsButton?: boolean;
+ hideMuteAllButton?: boolean;
+ };
+ pcStatsInterval?: number;
+ preferH264?: boolean;
+ preferredTranscribeLanguage?: string;
+ prejoinConfig?: {
+ enabled?: boolean;
+ hideDisplayName?: boolean;
+ hideExtraJoinButtons?: Array<string>;
+ };
+ prejoinPageEnabled?: boolean;
+ readOnlyName?: boolean;
+ recordingLimit?: {
+ appName?: string;
+ appURL?: string;
+ limit?: number;
+ };
+ recordingService?: {
+ enabled?: boolean;
+ hideStorageWarning?: boolean;
+ sharingEnabled?: boolean;
+ };
+ remoteVideoMenu?: {
+ disableGrantModerator?: boolean;
+ disableKick?: boolean;
+ disablePrivateChat?: boolean;
+ disabled?: boolean;
+ };
+ requireDisplayName?: boolean;
+ resolution?: number;
+ roomPasswordNumberOfDigits?: number;
+ salesforceUrl?: string;
+ screenshotCapture?: {
+ enabled?: boolean;
+ mode?: 'always' | 'recording';
+ };
+ speakerStatsOrder?: Array<'role'|'name'|'hasLeft'>;
+ startAudioMuted?: boolean;
+ startAudioOnly?: boolean;
+ startLastN?: number;
+ startScreenSharing?: boolean;
+ startSilent?: boolean;
+ startVideoMuted?: number;
+ startWithAudioMuted?: boolean;
+ startWithVideoMuted?: boolean;
+ stereo?: boolean;
+ subject?: string;
+ testing?: {
+ callStatsThreshold?: number;
+ capScreenshareBitrate?: number;
+ disableE2EE?: boolean;
+ enableThumbnailReordering?: boolean;
+ mobileXmppWsThreshold?: number;
+ noAutoPlayVideo?: boolean;
+ p2pTestMode?: boolean;
+ setScreenSharingResolutionConstraints?: boolean;
+ testMode?: boolean;
};
tileView?: {
numberOfVisibleTiles?: number;
};
- disableChatSmileys?: boolean;
- giphy?: {
+ toolbarButtons?: Array<ToolbarButtons>;
+ toolbarConfig?: {
+ alwaysVisible?: boolean;
+ autoHideWhileChatIsOpen?: boolean;
+ initialTimeout?: number;
+ timeout?: number;
+ };
+ transcribeWithAppLanguage?: boolean;
+ transcribingEnabled?: boolean;
+ transcription?: {
+ autoCaptionOnRecord?: boolean;
+ disableStartForAll?: boolean;
enabled?: boolean;
- sdkKey?: '';
- displayMode?: 'all' | 'tile' | 'chat';
- tileTime?: number;
+ preferredLanguage?: string;
+ useAppLanguage?: boolean;
};
- locationURL?: string;
+ useHostPageLocalStorage?: boolean;
+ useNewBandwidthAllocationStrategy?: boolean;
+ useTurnUdp?: boolean;
+ videoQuality?: {
+ disabledCodec?: string;
+ enforcePreferredCodec?: boolean;
+ maxBitratesVideo?: {
+ [key: string]: {
+ high?: number;
+ low?: number;
+ standard?: number;
+ }
+ };
+ minHeightForQualityLvl: {
+ [key: number]: string;
+ };
+ preferredCodec?: string;
+ resizeDesktopForPresenter?: boolean;
+ };
+ webrtcIceTcpDisable?: boolean;
+ webrtcIceUdpDisable?: boolean;
+ websocket?: string;
}
diff --git a/react/features/base/connection/reducer.ts b/react/features/base/connection/reducer.ts
index fe868af72d..84a47fdd9c 100644
--- a/react/features/base/connection/reducer.ts
+++ b/react/features/base/connection/reducer.ts
@@ -20,13 +20,13 @@ import {
import { ConnectionFailedError } from './actions.native';
export interface IConnectionState {
- connection?: Object;
connecting?: Object;
- timeEstablished?: number;
+ connection?: Object;
error?: ConnectionFailedError;
- passwordRequired?: Object;
locationURL?: URL;
+ passwordRequired?: Object;
showConnectionInfo?: boolean;
+ timeEstablished?: number;
}
/**
diff --git a/react/features/base/icons/components/Icon.tsx b/react/features/base/icons/components/Icon.tsx
index 8743fb8e68..07c76589f8 100644
--- a/react/features/base/icons/components/Icon.tsx
+++ b/react/features/base/icons/components/Icon.tsx
@@ -10,99 +10,99 @@ import { styleTypeToObject } from '../../styles';
type Props = {
/**
- * Class name for the web platform, if any.
+ * The id of the element this button icon controls.
*/
- className?: string,
+ ariaControls?: string,
/**
- * Color of the icon (if not provided by the style object).
+ * Id of description label.
*/
- color?: string,
+ ariaDescribedBy?: string,
/**
- * Id prop (mainly for autotests).
+ * Aria disabled flag for the Icon.
*/
- id?: string,
+ ariaDisabled?: boolean,
/**
- * Id of the icon container.
+ * Whether the element popup is expanded.
*/
- containerId?: string,
+ ariaExpanded?: boolean,
/**
- * Function to invoke on click.
+ * Whether the element has a popup.
*/
- onClick?: Function,
+ ariaHasPopup?: boolean,
/**
- * The size of the icon (if not provided by the style object).
+ * Aria label for the Icon.
*/
- size?: number | string,
+ ariaLabel?: string,
/**
- * The preloaded icon component to render.
+ * Whether the element has a pressed.
*/
- src: Function,
+ ariaPressed?: boolean,
/**
- * Style object to be applied.
+ * Class name for the web platform, if any.
*/
- style?: Object,
+ className?: string,
/**
- * Aria disabled flag for the Icon.
+ * Color of the icon (if not provided by the style object).
*/
- ariaDisabled?: boolean,
+ color?: string,
/**
- * Aria label for the Icon.
+ * Id of the icon container.
*/
- ariaLabel?: string,
+ containerId?: string,
/**
- * Whether the element has a popup.
+ * Id prop (mainly for autotests).
*/
- ariaHasPopup?: boolean,
+ id?: string,
/**
- * Whether the element has a pressed.
+ * Function to invoke on click.
*/
- ariaPressed?: boolean,
+ onClick?: Function,
/**
- * Id of description label.
+ * Keydown handler.
*/
- ariaDescribedBy?: string,
+ onKeyDown?: Function,
/**
- * Whether the element popup is expanded.
+ * Keypress handler.
*/
- ariaExpanded?: boolean,
+ onKeyPress?: Function,
/**
- * The id of the element this button icon controls.
+ * Role for the Icon.
*/
- ariaControls?: string,
+ role?: string,
/**
- * TabIndex for the Icon.
+ * The size of the icon (if not provided by the style object).
*/
- tabIndex?: number,
+ size?: number | string,
/**
- * Role for the Icon.
+ * The preloaded icon component to render.
*/
- role?: string,
+ src: Function,
/**
- * Keypress handler.
+ * Style object to be applied.
*/
- onKeyPress?: Function,
+ style?: Object,
/**
- * Keydown handler.
+ * TabIndex for the Icon.
*/
- onKeyDown?: Function
+ tabIndex?: number
}
export const DEFAULT_COLOR = navigator.product === 'ReactNative' ? 'white' : undefined;
diff --git a/react/features/base/lastn/reducer.ts b/react/features/base/lastn/reducer.ts
index e4a63e478f..28ccdeb7c2 100644
--- a/react/features/base/lastn/reducer.ts
+++ b/react/features/base/lastn/reducer.ts
@@ -11,10 +11,10 @@ import { SET_LAST_N } from './actionTypes';
import { validateLastNLimits } from './functions';
export interface ILastNState {
+ lastN?: number;
lastNLimits?: {
[key: number]: number;
};
- lastN?: number;
}
ReducerRegistry.register('features/base/lastn', (state: ILastNState = { }, action) => {
diff --git a/react/features/base/react/constants.ts b/react/features/base/react/constants.ts
index 85d17002fd..afe3197d8f 100644
--- a/react/features/base/react/constants.ts
+++ b/react/features/base/react/constants.ts
@@ -8,10 +8,10 @@ export const OVERLAY_Z_INDEX = 1000;
* The types of the buttons.
*/
export enum BUTTON_TYPES {
+ DESTRUCTIVE = 'destructive',
PRIMARY = 'primary',
SECONDARY = 'secondary',
- TERTIARY = 'tertiary',
- DESTRUCTIVE = 'destructive'
+ TERTIARY = 'tertiary'
}
/**
diff --git a/react/features/base/ui/types.ts b/react/features/base/ui/types.ts
index 9203e1c1cd..0729f88264 100644
--- a/react/features/base/ui/types.ts
+++ b/react/features/base/ui/types.ts
@@ -1,55 +1,41 @@
interface TypographyType {
fontSize: number;
- lineHeight: number;
fontWeight: string;
letterSpacing: number;
+ lineHeight: number;
}
export interface Theme {
+ breakpoints: {
+ down: (value: number) => string;
+ up: (value: number) => string;
+ },
palette: {
- uiBackground: string;
- ui01: string;
- ui02: string;
- ui03: string;
- ui04: string;
- ui05: string;
- ui06: string;
- ui07: string;
- ui08: string;
- ui09: string;
- ui10: string;
action01: string;
- action01Hover: string;
action01Active: string;
+ action01Hover: string;
action02: string;
- action02Hover: string;
action02Active: string;
- actionDanger: string;
- actionDangerHover: string;
- actionDangerActive: string;
+ action02Hover: string;
action03: string;
- action03Hover: string;
action03Active: string;
+ action03Hover: string;
+ actionDanger: string;
+ actionDangerActive: string;
+ actionDangerHover: string;
disabled01: string;
+ field01: string;
focus01: string;
- link01: string;
- link01Hover: string;
- link01Active: string;
- text01: string;
- text02: string;
- text03: string;
- text04: string;
- textError: string;
icon01: string;
icon02: string;
icon03: string;
icon04: string;
iconError: string;
- field01: string;
+ link01: string;
+ link01Active: string;
+ link01Hover: string;
success01: string;
success02: string;
- warning01: string;
- warning02: string;
support01: string;
support02: string;
support03: string;
@@ -59,31 +45,45 @@ export interface Theme {
support07: string;
support08: string;
support09: string;
+ text01: string;
+ text02: string;
+ text03: string;
+ text04: string;
+ textError: string;
+ ui01: string;
+ ui02: string;
+ ui03: string;
+ ui04: string;
+ ui05: string;
+ ui06: string;
+ ui07: string;
+ ui08: string;
+ ui09: string;
+ ui10: string;
+ uiBackground: string;
+ warning01: string;
+ warning02: string;
};
shape: {
borderRadius: number;
};
spacing: (index: number) => number;
typography: {
- labelRegular: TypographyType;
- labelBold: TypographyType;
- bodyShortRegular: TypographyType;
- bodyShortBold: TypographyType;
- bodyShortRegularLarge: TypographyType;
- bodyShortBoldLarge: TypographyType;
- bodyLongRegular: TypographyType;
- bodyLongRegularLarge: TypographyType;
bodyLongBold: TypographyType;
bodyLongBoldLarge: TypographyType;
+ bodyLongRegular: TypographyType;
+ bodyLongRegularLarge: TypographyType;
+ bodyShortBold: TypographyType;
+ bodyShortBoldLarge: TypographyType;
+ bodyShortRegular: TypographyType;
+ bodyShortRegularLarge: TypographyType;
heading1: TypographyType;
heading2: TypographyType;
heading3: TypographyType;
heading4: TypographyType;
heading5: TypographyType;
heading6: TypographyType;
+ labelBold: TypographyType;
+ labelRegular: TypographyType;
};
- breakpoints: {
- down: (value: number) => string;
- up: (value: number) => string;
- }
}
diff --git a/react/features/face-landmarks/FaceLandmarksHelper.ts b/react/features/face-landmarks/FaceLandmarksHelper.ts
index 08797e146e..6b9acec312 100644
--- a/react/features/face-landmarks/FaceLandmarksHelper.ts
+++ b/react/features/face-landmarks/FaceLandmarksHelper.ts
@@ -20,19 +20,19 @@ type InitInput = {
}
type DetectOutput = {
- faceExpression?: string,
faceBox?: FaceBox,
- faceCount: number
+ faceCount: number,
+ faceExpression?: string
};
export interface FaceLandmarksHelper {
+ detect({ image, threshold } : DetectInput): Promise<DetectOutput>;
+ getDetectionInProgress(): boolean;
+ getDetections(image: ImageBitmap | ImageData): Promise<Array<FaceResult>>;
getFaceBox(detections: Array<FaceResult>, threshold: number): FaceBox | undefined;
- getFaceExpression(detections: Array<FaceResult>): string | undefined;
getFaceCount(detections : Array<FaceResult>): number;
- getDetections(image: ImageBitmap | ImageData): Promise<Array<FaceResult>>;
+ getFaceExpression(detections: Array<FaceResult>): string | undefined;
init(): Promise<void>;
- detect({ image, threshold } : DetectInput): Promise<DetectOutput>;
- getDetectionInProgress(): boolean;
}
/**
diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
index 99e5bf2e2c..b2963dec06 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
@@ -32,9 +32,9 @@ type Props = {
* Room and participant jid reference.
*/
entity: {
- room: any,
jid: string,
- participantName: string
+ participantName: string,
+ room: any
},
/**
diff --git a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
index 2eb71dae42..d4c3081020 100644
--- a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
+++ b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx
@@ -31,9 +31,9 @@ type Props = {
_rooms: Array<any>,
/**
- * The room the participant is in.
+ * The Redux dispatch function.
*/
- room: any,
+ dispatch: Function,
/**
* The jid of the selected participant.
@@ -46,9 +46,9 @@ type Props = {
participantName: string,
/**
- * The Redux dispatch function.
+ * The room the participant is in.
*/
- dispatch: Function,
+ room: any,
/**
* Translation function.
diff --git a/react/features/reactions/components/web/ReactionEmoji.tsx b/react/features/reactions/components/web/ReactionEmoji.tsx
index 5ab29ec23e..491515a9c1 100644
--- a/react/features/reactions/components/web/ReactionEmoji.tsx
+++ b/react/features/reactions/components/web/ReactionEmoji.tsx
@@ -12,14 +12,14 @@ import { REACTIONS } from '../../constants';
type Props = {
/**
- * Reaction to be displayed.
+ * Index of the reaction in the queue.
*/
- reaction: string,
+ index: number,
/**
- * Id of the reaction.
+ * Reaction to be displayed.
*/
- uid: string,
+ reaction: string,
/**
* Removes reaction from redux state.
@@ -27,9 +27,9 @@ type Props = {
reactionRemove: Function,
/**
- * Index of the reaction in the queue.
+ * Id of the reaction.
*/
- index: number
+ uid: string
};
type State = {
diff --git a/react/features/reactions/components/web/ReactionsMenuButton.tsx b/react/features/reactions/components/web/ReactionsMenuButton.tsx
index 4f978b832a..1a0e5e1e08 100644
--- a/react/features/reactions/components/web/ReactionsMenuButton.tsx
+++ b/react/features/reactions/components/web/ReactionsMenuButton.tsx
@@ -51,14 +51,14 @@ type Props = {
handleClick: Function,
/**
- * Whether or not the reactions menu is open.
+ * Whether or not it's a mobile browser.
*/
- isOpen: boolean,
+ isMobile: boolean,
/**
- * Whether or not it's a mobile browser.
+ * Whether or not the reactions menu is open.
*/
- isMobile: boolean,
+ isOpen: boolean,
/**
* Notify mode for `toolbarButtonClicked` event -
diff --git a/react/features/reactions/constants.ts b/react/features/reactions/constants.ts
index f0f77c60d1..c83276a62a 100644
--- a/react/features/reactions/constants.ts
+++ b/react/features/reactions/constants.ts
@@ -102,11 +102,11 @@ export const SOUNDS_THRESHOLDS = [ 1, 4, 10 ];
interface IReactions {
[key: string]: {
- message: string;
emoji: string;
+ message: string;
shortcutChar: string;
- soundId: string;
soundFiles: string[];
+ soundId: string;
}
}
diff --git a/react/features/reactions/reducer.ts b/react/features/reactions/reducer.ts
index 323e585227..5a1d8638fa 100644
--- a/react/features/reactions/reducer.ts
+++ b/react/features/reactions/reducer.ts
@@ -12,21 +12,15 @@ import { ReactionEmojiProps } from './constants';
interface IReactionsState {
- /**
- * The indicator that determines whether the reactions menu is visible.
- */
- visible: boolean,
-
/**
* An array that contains the reactions buffer to be sent.
*/
buffer: Array<string>,
/**
- * A number, non-zero value which identifies the timer created by a call
- * to setTimeout().
+ * Whether or not the disable reaction sounds notification was shown.
*/
- timeoutID: number|null,
+ notificationDisplayed: boolean,
/**
* The array of reactions to animate.
@@ -34,9 +28,15 @@ interface IReactionsState {
queue: Array<ReactionEmojiProps>,
/**
- * Whether or not the disable reaction sounds notification was shown.
+ * A number, non-zero value which identifies the timer created by a call
+ * to setTimeout().
+ */
+ timeoutID: number|null,
+
+ /**
+ * The indicator that determines whether the reactions menu is visible.
*/
- notificationDisplayed: boolean
+ visible: boolean
}
export interface ReactionsAction extends Partial<IReactionsState> {
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.native.ts b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
index 0547e8ca99..5f2f55625e 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.native.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
@@ -2,9 +2,9 @@ import { IStore } from '../../../app/types';
interface ILocalRecordingManager {
addAudioTrackToLocalRecording: (track: MediaStreamTrack) => void;
- stopLocalRecording: () => void;
- startLocalRecording: (store: IStore) => void;
isRecordingLocally: () => boolean;
+ startLocalRecording: (store: IStore) => void;
+ stopLocalRecording: () => void;
}
const LocalRecordingManager: ILocalRecordingManager = {
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
index 65a7362710..a1cde6acdb 100644
--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts
+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
@@ -26,23 +26,23 @@ interface SelfRecording {
}
interface ILocalRecordingManager {
- recordingData: Blob[];
- recorder: MediaRecorder|undefined;
- stream: MediaStream|undefined;
+ addAudioTrackToLocalRecording: (track: MediaStreamTrack) => void;
audioContext: AudioContext|undefined;
audioDestination: MediaStreamAudioDestinationNode|undefined;
- roomName: string;
- mediaType: string;
+ getFilename: () => string;
initializeAudioMixer: () => void;
+ isRecordingLocally: () => boolean;
+ mediaType: string;
mixAudioStream: (stream: MediaStream) => void;
- addAudioTrackToLocalRecording: (track: MediaStreamTrack) => void;
- getFilename: () => string;
+ recorder: MediaRecorder|undefined;
+ recordingData: Blob[];
+ roomName: string;
saveRecording: (recordingData: Blob[], filename: string) => void;
- stopLocalRecording: () => void;
+ selfRecording: SelfRecording;
startLocalRecording: (store: IStore, onlySelf: boolean) => void;
- isRecordingLocally: () => boolean;
+ stopLocalRecording: () => void;
+ stream: MediaStream|undefined;
totalSize: number;
- selfRecording: SelfRecording;
}
const getMimeType = (): string => {