Socket
Socket
Sign inDemoInstall

@jitsi/react-sdk

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitsi/react-sdk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

lib/components/JaaSMeeting.d.ts

@@ -1,2 +0,2 @@

/// <reference types="react" />
import { ReactElement } from 'react';
import { IJaaSMeetingProps } from '../types';

@@ -7,4 +7,4 @@ /**

*
* @param {IJitsiMeetingProps} props the component's props
* @returns {React.Component} the `JaaSMeeting` Component
* @param {IJaaSMeetingProps} props the component's props
* @returns {ReactElement} the `JaaSMeeting` Component
* @example

@@ -20,3 +20,3 @@ ```js

*/
declare const JaaSMeeting: ({ appId, roomName, ...rest }: IJaaSMeetingProps) => JSX.Element;
declare const JaaSMeeting: ({ appId, roomName, useStaging, ...rest }: IJaaSMeetingProps) => ReactElement;
export default JaaSMeeting;

@@ -13,4 +13,3 @@ var __rest = (this && this.__rest) || function (s, e) {

import { jsx as _jsx } from "react/jsx-runtime";
import { JAAS_DOMAIN } from '../constants';
import { getRoomName } from '../utils';
import { getJaaSDomain, getRoomName } from '../utils';
import { JitsiMeeting } from '.';

@@ -21,4 +20,4 @@ /**

*
* @param {IJitsiMeetingProps} props the component's props
* @returns {React.Component} the `JaaSMeeting` Component
* @param {IJaaSMeetingProps} props the component's props
* @returns {ReactElement} the `JaaSMeeting` Component
* @example

@@ -35,5 +34,5 @@ ```js

const JaaSMeeting = (_a) => {
var { appId, roomName } = _a, rest = __rest(_a, ["appId", "roomName"]);
return (_jsx(JitsiMeeting, Object.assign({ domain: JAAS_DOMAIN, roomName: getRoomName(roomName, appId) }, rest), void 0));
var { appId, roomName, useStaging } = _a, rest = __rest(_a, ["appId", "roomName", "useStaging"]);
return (_jsx(JitsiMeeting, Object.assign({ domain: getJaaSDomain(useStaging), roomName: getRoomName(roomName, appId) }, rest), void 0));
};
export default JaaSMeeting;

@@ -1,2 +0,2 @@

/// <reference types="react" />
import { ReactElement } from 'react';
import { IJitsiMeetingProps } from '../types';

@@ -8,3 +8,3 @@ /**

* @param {IJitsiMeetingProps} props the component's props
* @returns {React.Component} the `JitsiMeeting` Component
* @returns {ReactElement} the `JitsiMeeting` Component
* @example

@@ -20,3 +20,3 @@ ```js

*/
declare const JitsiMeeting: ({ domain, roomName, configOverwrite, interfaceConfigOverwrite, jwt, invitees, devices, userInfo, spinner: Spinner, onApiReady, onReadyToClose, getIFrameRef }: IJitsiMeetingProps) => JSX.Element;
declare const JitsiMeeting: ({ domain, roomName, configOverwrite, interfaceConfigOverwrite, jwt, invitees, devices, userInfo, spinner: Spinner, onApiReady, onReadyToClose, getIFrameRef }: IJitsiMeetingProps) => ReactElement;
export default JitsiMeeting;

@@ -11,3 +11,3 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";

* @param {IJitsiMeetingProps} props the component's props
* @returns {React.Component} the `JitsiMeeting` Component
* @returns {ReactElement} the `JitsiMeeting` Component
* @example

@@ -14,0 +14,0 @@ ```js

export declare const DEFAULT_DOMAIN = "meet.jit.si";
export declare const JAAS_DOMAIN = "8x8.vc";
export declare const JAAS_STAGING_DOMAIN = "stage.8x8.vc";
export declare const JAAS_PROD_DOMAIN = "8x8.vc";
export const DEFAULT_DOMAIN = 'meet.jit.si';
export const JAAS_DOMAIN = '8x8.vc';
export const JAAS_STAGING_DOMAIN = 'stage.8x8.vc';
export const JAAS_PROD_DOMAIN = '8x8.vc';

@@ -10,2 +10,6 @@ import IMeetingProps from './IMeetingProps';

appId: string;
/**
* Whether to use the stage environment or not.
*/
useStaging?: boolean;
}

@@ -10,2 +10,9 @@ /**

/**
* Returns the JaaS domain
*
* @param {boolean|undefined} useStaging
* @returns {string} the JaaS domain
*/
export declare const getJaaSDomain: (useStaging?: boolean | undefined) => string;
/**
* Generates an unique id

@@ -12,0 +19,0 @@ * @param {string} prefix

@@ -0,1 +1,2 @@

import { JAAS_PROD_DOMAIN, JAAS_STAGING_DOMAIN } from '../constants';
/**

@@ -14,2 +15,14 @@ * Returns the complete room name

};
/**
* Returns the JaaS domain
*
* @param {boolean|undefined} useStaging
* @returns {string} the JaaS domain
*/
export const getJaaSDomain = (useStaging) => {
if (useStaging) {
return JAAS_STAGING_DOMAIN;
}
return JAAS_PROD_DOMAIN;
};
let instancesCounter = 0;

@@ -16,0 +29,0 @@ /**

{
"name": "@jitsi/react-sdk",
"version": "1.0.0",
"version": "1.0.1",
"description": "React SDK for the Jitsi Meet IFrame",

@@ -27,4 +27,4 @@ "main": "lib/index.js",

"peerDependencies": {
"react": "16 || 17",
"react-dom": "16 || 17"
"react": "16 || 17 || 18",
"react-dom": "16 || 17 || 18"
},

@@ -31,0 +31,0 @@ "devDependencies": {

@@ -30,2 +30,12 @@ # Jitsi Meet React SDK

```
...or with the `stage.8x8.vc` domain:
```js
<JaaSMeeting
appId = { YOUR_APP_ID }
roomName = { YOUR_ROOM_NAME }
useStaging = { true }
/>
```
##### Properties specific to the `JaasMeeting` component

@@ -35,2 +45,5 @@ ###### `appId`

###### `useStaging`
Optional. Tells whether to use the staging environment or not.
##### Common properties

@@ -37,0 +50,0 @@ ###### `roomName`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc