1.26.2 • Published 13 days ago

@webex/widgets v1.26.2

Weekly downloads
36
License
MIT
Repository
github
Last release
13 days ago

Webex Widgets are a set of self-contained React components that follow the Webex products experience, aimed at developers that want to embed Webex into their applications.

Table of Contents

Install

npx install-peerdeps @webex/widgets

This will install the Widgets package, peer dependencies and dependencies.

Usage

Styles

In order to properly style Webex Widgets, you will need to import our CSS separately. Import @webex/widgets/dist/css/webex-widgets.css into your main entry file.

There are two ways to do this:

JavaScript

In your App.js[x], add the following import:

import '@webex/widgets/dist/css/webex-widgets.css';

...

HTML

In the <head> tag of your index.html, add the following tag:

<head>
  ...

  <link rel="stylesheet" type="text/css" href="node_modules/@webex/widgets/dist/css/webex-widgets.css" />
</head>

For this to work, make sure that your node_modules folder is served. Alternately, you may copy the CSS file to your public folder and update the link reference accordingly.

Widgets

Please make sure to install the Webex Widget package and related dependencies.

npx install-peerdeps @webex/widgets

To use a Webex Widget, simply import the desired widget and render it into your React application.

import {WebexMeetingsWidget} from '@webex/widgets';

import '@webex/widgets/dist/css/webex-widgets.css';

export default function App() {
  return (
    <WebexMeetingsWidget
      style={{width: "1000px", height: "500px"}} // Substitute with any arbitrary size or use `className`
      accessToken="<ACCESS_TOKEN>"
      meetingDestination="<MEETING_DESTINATION>"
    />
  );
}

Available widgets from this package are:

FedRAMP Environment

To enable usage simply use the fedramp prop when adding the widget to your React appplication.

import {WebexMeetingsWidget} from '@webex/widgets';

import '@webex/widgets/dist/css/webex-widgets.css';

export default function App() {
  return (
    <WebexMeetingsWidget
      accessToken="<ACCESS_TOKEN>"
      meetingDestination="<MEETING_DESTINATION>"
      fedramp={true}
    />
  );

For more information on FedRAMP visit https://developer.webex.com/docs/fedramp-overview

Features that do not work in FedRAMP

  • Creating Guest tokens aka JWT tokens (not a widget limitation but environment limitation)

Contributing

We'd love for you to contribute to our source code and to make the Webex Widgets even better than they are today! Here are some guidelines that we'd like you to follow.

Issues

Please open an issue and we will get to it in an orderly manner. Please leave as much as information as possible for a better understanding.

Contributing Code

We are using Airbnb-style lint rules and prettier to lint the code. Make sure your code your code follows our lint rules before submitting!

For more information on contributions, please visit our contributing guide.

Commit linter

We are using commitlint to lint the commit messages. Please make sure to choose the appropriate commit type, scope and subject.

License

MIT License

Support

For more developer resources, tutorials and support, visit the Webex developer portal, https://developer.webex.com.

1.26.2

13 days ago

1.25.4

10 months ago

1.25.5

8 months ago

1.25.3

11 months ago

1.26.0

7 months ago

1.26.1

6 months ago

1.25.0

2 years ago

1.25.1

2 years ago

1.25.2

2 years ago

1.18.1

3 years ago

1.18.0

3 years ago

1.18.3

3 years ago

1.18.2

3 years ago

1.21.0

2 years ago

1.23.0

2 years ago

1.19.0

3 years ago

1.17.2

3 years ago

1.17.1

3 years ago

1.17.0

3 years ago

1.19.1

3 years ago

1.20.1

3 years ago

1.22.0

2 years ago

1.20.2

3 years ago

1.20.0

3 years ago

1.22.3

2 years ago

1.20.5

2 years ago

1.20.6

2 years ago

1.22.1

2 years ago

1.20.3

2 years ago

1.24.0

2 years ago

1.22.2

2 years ago

1.20.4

2 years ago

1.20.9

2 years ago

1.20.7

2 years ago

1.20.8

2 years ago

1.15.0

3 years ago

1.14.1

3 years ago

1.16.1

3 years ago

1.14.3

3 years ago

1.16.0

3 years ago

1.14.2

3 years ago

1.14.0

3 years ago

1.13.4

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.13.3

3 years ago

1.13.0

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago