Video SDK Type and Version
I’m using Video SDK UI Toolkit for Web (react), version 1.10.8-2
Description
I’m unable to use the ‘build with components’ functionality, using the UI Toolkit in my React application, using TypeScript.
Error
In the documentation there is a section that shows how to use the components:
/docs/video-sdk/web/ui-toolkit/#build-with-the-ui-toolkit
(see build with components tab) but those functions do not exists or are not being correctly exported, so I cannot use them in my application.
here’s my code (copied from the documentation)
import uitoolkit from '@zoom/videosdk-ui-toolkit';
...
const uitoolkitContainer = document.getElementById('uitoolkitContainer')
uitoolkit.showUitoolkitComponents(uitoolkitContainer, config)
and this is the .d.ts file from your npm package (node_modules@zoom\videosdk-ui-toolkit\index.d.ts):
declare namespace _default {
function openPreview(container: HTMLElement): void;
function closePreview(container: HTMLElement): void;
function joinSession(container: HTMLElement, config: Object): void;
function closeSession(container: HTMLElement): void;
function onSessionJoined(callback: EventListenerOrEventListenerObject): void;
function offSessionJoined(callback: EventListenerOrEventListenerObject): void;
function onSessionClosed(callback: EventListenerOrEventListenerObject): void;
function offSessionClosed(callback: EventListenerOrEventListenerObject): void;
}
export default _default;
Are you missing an update in the v1.10.8-2? or am I doing something wrong?
Thanks,
Fernando