diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 6ccfc54b4..000000000 --- a/.babelrc +++ /dev/null @@ -1,40 +0,0 @@ -{ - "env": { - "test": { - "plugins": ["istanbul"] - } - }, - "ignore": ["node_modules/**/*"], - "plugins": [ - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-transform-flow-strip-types", - [ - "@babel/plugin-proposal-decorators", - { - "legacy": true - } - ], - "@babel/plugin-proposal-class-properties", - [ - "@babel/plugin-transform-react-jsx", - { - "pragma": "h", - "pragmaFrag": "Fragment" - } - ] - ], - "presets": [ - [ - "@babel/preset-env", - { - "loose": true, - "bugfixes": true, - "targets": { - "browsers": ["chrome >= 47", "firefox >= 51", "ie >= 11", "safari >= 8", "ios >= 8", "android >= 4"] - } - } - ], - "@babel/preset-flow" - ] -} diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 608539a69..000000000 --- a/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -/flow-typed/**/*.js -/coverage -/dist diff --git a/.eslintrc.json b/.eslintrc.json index ba5abda9b..c46268e84 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,49 +1,69 @@ { - "parser": "babel-eslint", - "extends": ["eslint:recommended", "plugin:flowtype/recommended", "plugin:react/recommended"], - "parserOptions": { - "sourceType": "module" - }, - "settings": { - "react": { - "pragma": "h", - "version": "16.0" - } - }, - "plugins": ["prettier", "import", "flowtype", "mocha-no-only", "react"], - "env": { - "browser": true, - "es6": true, - "mocha": true, - "amd": true, - "commonjs": true - }, - "globals": { - "should": true, - "sinon": true, - "process": true, - "__dirname": true, - "__VERSION__": true, - "__NAME__": true, - "__CSS_MODULE_PREFIX__": true - }, + "root": true, + "parser": "@typescript-eslint/parser", + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], + "plugins": ["@typescript-eslint"], "rules": { - "prettier/prettier": "error", - "mocha-no-only/mocha-no-only": "off", - "flowtype/define-flow-type": 2, - "react/prop-types": 0, - "require-jsdoc": [ + "indent": ["error", 2], + "react/prefer-stateless-function": "off", + "max-len": ["warn", {"code": 500}], + "eol-last": "off", + "prettier/prettier": "off", + "@typescript-eslint/explicit-function-return-type": "warn", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/explicit-member-accessibility": [ "error", { - "require": { - "FunctionDeclaration": true, - "MethodDefinition": true, - "ClassDeclaration": true, - "ArrowFunctionExpression": true + "accessibility": "explicit", + "overrides": { + "accessors": "explicit", + "constructors": "no-public", + "methods": "explicit", + "properties": "explicit", + "parameterProperties": "explicit" } } ], - "valid-jsdoc": ["error"], - "react/no-deprecated": "off" + "@typescript-eslint/ban-types": [ + "error", + { + "extendDefaults": true, + "types": { + "Function": false // Overrides the rule for "Function" type only + } + } + ], + "block-scoped-var": "error", + "eqeqeq": "error", + "no-var": "error", + "no-console": "error", + "prefer-const": "error", + "prefer-arrow-callback": "error", + "no-trailing-spaces": "error", + "quotes": ["warn", "single", {"avoidEscape": true}], + "no-restricted-properties": [ + "error", + { + "object": "describe", + "property": "only" + }, + { + "object": "it", + "property": "only" + } + ] + }, + "overrides": [], + "settings": { + "jest": { + "version": 26 + } + }, + "env": { + "browser": true, + "commonjs": true, + "es6": true } } diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index 542ded0f8..000000000 --- a/.flowconfig +++ /dev/null @@ -1,18 +0,0 @@ -[ignore] -.*/node_modules -[include] -[libs] -node_modules/@playkit-js/kaltura-player-js/flow-typed/ -[options] -esproposal.decorators=ignore -esproposal.optional_chaining=enable -module.name_mapper.extension='scss' -> 'empty/object' -module.name_mapper='^utils\/\(.*\)$' -> '/src/utils/\1' -module.name_mapper='^utils$' -> '/src/utils' -module.name_mapper='^reducers\/\(.*\)$' -> '/src/reducers/\1' -module.name_mapper='^reducers$' -> '/src/reducers' -module.name_mapper='^components\/\(.*\)$' -> '/src/components/\1' -module.name_mapper='^components$' -> '/src/components' -module.name_mapper='^event\/\(.*\)$' -> '/src/event/\1' -module.name_mapper='^event$' -> '/src/event' -module.system.node.resolve_dirname='/src/' diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ec0b99dc9..31fe9095d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,10 +3,10 @@ Please add a detailed description of the change, whether it's an enhancement or a bugfix. If the PR is related to an open issue please link to it. -### CheckLists +**Issue:** + +**Fix:** + +#### Resolves FEC-[Please add the ticket reference here] + -- [ ] changes have been done against master branch, and PR does not conflict -- [ ] new unit / functional tests have been added (whenever applicable) -- [ ] test are passing in local environment -- [ ] Travis tests are passing (or test results are not worse than on master branch :)) -- [ ] Docs have been updated diff --git a/.github/workflows/run_canary.yaml b/.github/workflows/run_canary.yaml index 4e0cc8767..b027e083d 100644 --- a/.github/workflows/run_canary.yaml +++ b/.github/workflows/run_canary.yaml @@ -13,5 +13,6 @@ jobs: uses: kaltura/playkit-js-common/.github/workflows/canary_dependency.yaml@master secrets: inherit with: - schema-type: "playerV3Versions" - tests-yarn-run-to-execute: 'build eslint flow test' + node-version: '20.x' + schema-type: 'playerV3Versions' + tests-yarn-run-to-execute: 'build lint type-check test' diff --git a/.github/workflows/run_canary_full_flow.yaml b/.github/workflows/run_canary_full_flow.yaml deleted file mode 100644 index bc2aefc0d..000000000 --- a/.github/workflows/run_canary_full_flow.yaml +++ /dev/null @@ -1,28 +0,0 @@ -## Canary CI/CD -name: Canary Full Flow -run-name: Canary Full Flow - -on: - push: - branches: - - master - -jobs: - canary-full-flow: - if: ${{ github.actor != 'PlaykitJs-Bot' }} - uses: kaltura/ovp-pipelines-pub/.github/workflows/player_cicd.yaml@master - secrets: - PLAYER_CENTRAL_ACCOUNT_ID: ${{ secrets.PLAYER_CENTRAL_ACCOUNT_ID }} - PLAYER_SERVICES_ACCOUNT_ID: ${{ secrets.PLAYER_SERVICES_ACCOUNT_ID }} - PLAYER_S3_BUCKET_DEPLOYMENT: ${{ secrets.PLAYER_S3_BUCKET_DEPLOYMENT }} - PLAYER_S3_BUCKET_APPS: ${{ secrets.PLAYER_S3_BUCKET_APPS }} - PLAYER_NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }} - PLAYER_LAMBDA_NAME: ${{ secrets.PLAYER_LAMBDA_NAME }} - PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }} - PLAYER_GITHUB_BOT_TOKEN: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }} - with: - type: "dependency" - stage: "canary" - schema-type: "playerV3Versions" - tests-yarn-run-to-execute: 'build eslint flow test' - diff --git a/.github/workflows/run_prod.yaml b/.github/workflows/run_prod.yaml index 116811c3e..7b1eb8dcf 100644 --- a/.github/workflows/run_prod.yaml +++ b/.github/workflows/run_prod.yaml @@ -18,7 +18,8 @@ jobs: PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }} PLAYER_GITHUB_BOT_TOKEN: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }} with: - type: "dependency" - env: "prod" - schema-type: "playerV3Versions" - tests-yarn-run-to-execute: 'build eslint flow test' + node-version: '20.x' + type: 'dependency' + env: 'prod' + schema-type: 'playerV3Versions' + tests-yarn-run-to-execute: 'build lint type-check test' diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index a11358eed..3ca88146f 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -5,17 +5,38 @@ run-name: Player And Plugin Tests on: pull_request: branches: - - "*" + - '*' jobs: - running-tests: + build: uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@master with: - yarn-run-to-execute: 'build eslint flow test' + node-version: '20.x' + yarn-run-to-execute: 'build:prod' + test: + uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@master + with: + node-version: '20.x' + yarn-run-to-execute: 'test' + type-check: + uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@master + with: + node-version: '20.x' + yarn-run-to-execute: 'type-check' + build-types: + uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@master + with: + node-version: '20.x' + yarn-run-to-execute: 'build:types' + lint: + uses: kaltura/ovp-pipelines-pub/.github/workflows/player_tests.yaml@master + with: + node-version: '20.x' + yarn-run-to-execute: 'lint' notification: if: always() uses: kaltura/ovp-pipelines-pub/.github/workflows/notification.yaml@master - needs: running-tests + needs: [build, test, type-check, lint] secrets: PLAYER_MSTEAMS_WEBHOOK: ${{ secrets.PLAYER_MSTEAMS_WEBHOOK }} with: diff --git a/.gitignore b/.gitignore index 8f1bf62ac..d2f568fd9 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,7 @@ jspm_packages .idea dist/ +lib/ +api-extractor/report/ +api-extractor/report-temp/ +api-extractor/playkit-js-ui.api.json diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 12f7d279a..000000000 --- a/.npmignore +++ /dev/null @@ -1,49 +0,0 @@ -# MacOS -.DS_Store - # Logs -logs -*.log -npm-debug.log* - # Runtime data -pids -*.pid -*.seed - # Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - # Coverage directory used by tools like istanbul -coverage - # nyc test coverage -.nyc_output - # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - # node-waf configuration -.lock-wscript - # Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - # Dependency directories -node_modules -jspm_packages - # Optional npm cache directory -.npm - # Optional REPL history -.node_repl_history - .idea - .git -.gitattributes -.gitignore -.github -.prettierignore -.prettierrc -.travis.yml - docs/ -scripts/ -src/ -test/ -.babelrc -.editorconfig -.eslintignore -.eslintrc.json -.flowconfig -.nmprc -webpack.config.js -karma.conf.js diff --git a/.prettierignore b/.prettierignore index f7f893f8f..08c862833 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,7 +1,14 @@ -/dist -/src/index.html +dist/ +lib/ +docs/ +api-extractor/ +.github/ +flow-typed/ +samples/ +coverage/ CHANGELOG.md yarn.lock yarn-error.log LICENSE -coverage +README.md + diff --git a/api-extractor.json b/api-extractor.json new file mode 100644 index 000000000..0378c56ab --- /dev/null +++ b/api-extractor.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "/lib/src/index.d.ts", + "bundledPackages": [], + "compiler": {}, + "apiReport": { + "enabled": true, + "reportFolder": "/api-extractor/report", + "reportTempFolder": "/api-extractor/report-temp" + }, + "docModel": { + "enabled": true, + "apiJsonFilePath": "/api-extractor/.api.json" + }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "/dist/.d.ts" + }, + "tsdocMetadata": {}, + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "default": { + "logLevel": "none" + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + } + } +} diff --git a/api-extractor/playkit-js-ui.api.json b/api-extractor/playkit-js-ui.api.json new file mode 100644 index 000000000..b0bef9da0 --- /dev/null +++ b/api-extractor/playkit-js-ui.api.json @@ -0,0 +1,27728 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@playkit-js/playkit-js-ui!", + "docComment": "", + "name": "@playkit-js/playkit-js-ui", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@playkit-js/playkit-js-ui!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "TypeAlias", + "canonicalReference": "@playkit-js/playkit-js-ui!ColorType:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ColorType = " + }, + { + "kind": "Content", + "text": "{\n primary: string;\n secondary: string;\n success: string;\n danger: string;\n warning: string;\n live: string;\n playerBackground: string;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "src/types/user-theme.ts", + "releaseTag": "Public", + "name": "ColorType", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Namespace", + "canonicalReference": "@playkit-js/playkit-js-ui!Components:namespace", + "docComment": "", + "excerptTokens": [], + "fileUrlPath": "src/index.ts", + "releaseTag": "None", + "name": "Components", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdLearnMore:class", + "docComment": "/**\n * AdLearnMore component\n *\n * @class AdLearnMore\n *\n * @example\n *\n * @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class AdLearnMore extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "AdLearnMoreProps", + "canonicalReference": "@playkit-js/playkit-js-ui!~AdLearnMoreProps:type" + }, + { + "kind": "Content", + "text": ", {}>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/ad-learn-more/ad-learn-more.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "AdLearnMore", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdLearnMore#render:member(1)", + "docComment": "/**\n * render component\n *\n * @param props - component props\n *\n * @returns {React$Element} - component element @memberof AdLearnMore\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(props: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdNotice:class", + "docComment": "/**\n * AdNotice component\n *\n * @class AdNotice\n *\n * @example\n *\n * @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class AdNotice extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "<{}, {}>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/ad-notice/ad-notice.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "AdNotice", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdNotice#render:member(1)", + "docComment": "/**\n * render component\n *\n * @returns {React$Element} - component element @memberof AdNotice\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdSkip:class", + "docComment": "/**\n * AdSkip component\n *\n * @class AdSkip\n *\n * @example\n *\n * @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class AdSkip extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "AdSkipProps", + "canonicalReference": "@playkit-js/playkit-js-ui!~AdSkipProps:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "WithPlayerProps", + "canonicalReference": "@playkit-js/playkit-js-ui!~WithPlayerProps:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "WithLoggerProps", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.WithLoggerProps:type" + }, + { + "kind": "Content", + "text": ", any>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/ad-skip/ad-skip.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "AdSkip", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdSkip#render:member(1)", + "docComment": "/**\n * render component\n *\n * @returns {React$Element} - component @memberof AdSkip\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 9 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdvancedAudioDescToggle:class", + "docComment": "/**\n * AdvancedAudioDescToggle component\n *\n * @class AdvancedAudioDescToggle\n *\n * @example\n *\n * @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class AdvancedAudioDescToggle extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/advanced-audio-desc-toggle/advanced-audio-desc-toggle.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "AdvancedAudioDescToggle", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdvancedAudioDescToggle#onAdvancedAudioClick:member", + "docComment": "/**\n * Toggle the Advanced Audio Description option and update it in the store state\n *\n * @param isChecked - Whether the feature is enabled or not\n *\n * @returns {void} @memberof AdvancedAudioDescToggle\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onAdvancedAudioClick: " + }, + { + "kind": "Content", + "text": "(isChecked: boolean) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onAdvancedAudioClick", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AdvancedAudioDescToggle#render:member(1)", + "docComment": "/**\n * render function\n *\n * @param props - component props\n *\n * @returns {React$Element} - component @memberof AdvancedAudioDescToggle\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(props: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AudioMenu:class", + "docComment": "/**\n * AudioMenu component\n *\n * @class AudioMenu\n *\n * @example\n *\n * @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class AudioMenu extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "AudioMenuProps", + "canonicalReference": "@playkit-js/playkit-js-ui!~AudioMenuProps:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "WithPlayerProps", + "canonicalReference": "@playkit-js/playkit-js-ui!~WithPlayerProps:type" + }, + { + "kind": "Content", + "text": " & " + }, + { + "kind": "Reference", + "text": "WithEventDispatcherProps", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.WithEventDispatcherProps:type" + }, + { + "kind": "Content", + "text": ", any>" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/audio-menu/audio-menu.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "AudioMenu", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AudioMenu#onAudioChange:member(1)", + "docComment": "/**\n * call to player selectTrack method and change audio track\n *\n * @param audioTrack - audio track\n *\n * @returns {void} @memberof Settings\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "onAudioChange(audioTrack: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "audioTrack", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "onAudioChange" + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.AudioMenu#render:member(1)", + "docComment": "/**\n * render function\n *\n * @param props - component props\n *\n * @returns {React$Element} - component @memberof AudioMenu\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(props: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 9 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BadgeType:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "BadgeType: " + }, + { + "kind": "Content", + "text": "{\n qualityHd: string;\n qualityHdActive: string;\n quality4k: string;\n quality4kActive: string;\n quality8k: string;\n quality8kActive: string;\n}" + } + ], + "fileUrlPath": "src/components/icon/icon.tsx", + "isReadonly": true, + "releaseTag": "Public", + "name": "BadgeType", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent:class", + "docComment": "/**\n * Base component to be extended by other player UI components\n *\n * @class BaseComponent @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class BaseComponent extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/base.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "BaseComponent", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent:constructor(1)", + "docComment": "/**\n * Creates an instance of BaseComponent.\n *\n * @param obj - obj @memberof BaseComponent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(obj?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "obj", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#componentWillUnmount:member(1)", + "docComment": "/**\n * Before component is mounted remove all event manager listeners.\n *\n * @returns {void}\n *\n * @memberof BaseComponent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "componentWillUnmount(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "componentWillUnmount" + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#config:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "protected config: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "config", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": true, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent.defaultProps:member", + "docComment": "/**\n * Components default props. @type {Object} @static\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static defaultProps: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "defaultProps", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": true, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#eventManager:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "protected eventManager: " + }, + { + "kind": "Reference", + "text": "EventManager", + "canonicalReference": "@playkit-js/playkit-js!EventManager:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "eventManager", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": true, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#logger:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "protected logger: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "logger", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": true, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "protected name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": true, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#notifyChange:member(1)", + "docComment": "/**\n * Notify the store that a changeable component has been change.\n *\n * @param payload - Optional payload.\n *\n * @returns {void}\n *\n * @memberof BaseComponent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "notifyChange(payload?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "payload", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "notifyChange" + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#notifyClick:member(1)", + "docComment": "/**\n * Notify the store that a clickable component has been clicked.\n *\n * @param payload - Optional payload.\n *\n * @returns {void}\n *\n * @memberof BaseComponent\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "notifyClick(payload?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "payload", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "notifyClick" + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#player:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "protected player: " + }, + { + "kind": "Reference", + "text": "KalturaPlayer", + "canonicalReference": "@playkit-js/playkit-js-ui!~KalturaPlayer:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "player", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": true, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BaseComponent#render:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(props?: " + }, + { + "kind": "Reference", + "text": "RenderableProps", + "canonicalReference": "preact!RenderableProps:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Reference", + "text": "Readonly", + "canonicalReference": "!Readonly:type" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", context?: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentChild", + "canonicalReference": "preact!ComponentChild:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": true + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 6 + }, + "isOptional": true + }, + { + "parameterName": "context", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "render" + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar:class", + "docComment": "/**\n * BottomBar component\n *\n * @class BottomBar\n *\n * @example\n *\n * ... @extends {Component}\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declare class BottomBar extends " + }, + { + "kind": "Reference", + "text": "Component", + "canonicalReference": "preact!Component:class" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "src/components/bottom-bar/bottom-bar.tsx", + "releaseTag": "Public", + "isAbstract": false, + "name": "BottomBar", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `BottomBar` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(props: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#bottomBarContainerRef:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "bottomBarContainerRef: " + }, + { + "kind": "Reference", + "text": "RefObject", + "canonicalReference": "preact!RefObject:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "HTMLDivElement", + "canonicalReference": "!HTMLDivElement:interface" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "bottomBarContainerRef", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#componentDidMount:member(1)", + "docComment": "/**\n * when component did update\n *\n * @returns {void} @memberof BottomBar\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "componentDidMount(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "componentDidMount" + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#componentWillUnmount:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "componentWillUnmount(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "componentWillUnmount" + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#currentBarWidth:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "currentBarWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "currentBarWidth", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#filterControls:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "filterControls(currentBarWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", currentMinBreakPointWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", currentControlWidth: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", lowerPriorityControls: " + }, + { + "kind": "Content", + "text": "string[][]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "currentBarWidth", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "currentMinBreakPointWidth", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "currentControlWidth", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "lowerPriorityControls", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "filterControls" + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#onBarWidthChange:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onBarWidthChange(entry: " + }, + { + "kind": "Reference", + "text": "ResizeObserverEntry", + "canonicalReference": "!ResizeObserverEntry:interface" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "entry", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "onBarWidthChange" + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#onToggleControl:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "onToggleControl: " + }, + { + "kind": "Content", + "text": "(controlName: string, isActive: boolean) => void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "onToggleControl", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#presetControls:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "presetControls: " + }, + { + "kind": "Content", + "text": "{\n [controlName: string]: boolean;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "presetControls", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#render:member(1)", + "docComment": "/**\n * render component\n *\n * @param props - component props\n *\n * @returns {?React$Element} - component element @memberof BottomBar\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "render(props: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "h.JSX.Element", + "canonicalReference": "preact!JSXInternal.Element:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "props", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "render" + }, + { + "kind": "Property", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.BottomBar#resizeObserver:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "resizeObserver: " + }, + { + "kind": "Reference", + "text": "ResizeObserver", + "canonicalReference": "!ResizeObserver:interface" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "resizeObserver", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Variable", + "canonicalReference": "@playkit-js/playkit-js-ui!Components.Button:var", + "docComment": "/**\n * Button component\n *\n * @const Button\n *\n * @example\n *\n *