Skip to content

Commit f5cf10b

Browse files
author
Bernie Zang
committed
feat(widget): Add event support for new init methods
1 parent c980ea3 commit f5cf10b

File tree

8 files changed

+215
-90
lines changed

8 files changed

+215
-90
lines changed

README.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
# Cisco Spark for React _(react-ciscospark)_
22

3+
* THIS REPO CONTAINS EXPERIMENTAL CODE *
4+
35
> The Cisco Spark for React library allows developers to easily incorporate Spark functionality into an application.
46
57
## Table of Contents
68
- [Background](#background)
79
- [Widgets](#widgets)
8-
- [Install](#install)
9-
- [CDN](#cdn)
10-
- [Build from Source](#build-from-source)
11-
- [Usage](#usage)
12-
- [Quick Start](#quick-start)
13-
- [HTML](#html)
14-
- [JSX](#jsx)
10+
- [Install](#install)
11+
- [Build from Source](#build-from-source)
1512
- [Components](#components)
1613
- [Install](#install)
1714
- [Browser Support](#browser-support)
@@ -24,27 +21,23 @@ The basic components are just presentational React <https://github.com/facebook/
2421

2522
## Widgets
2623

27-
### Install
28-
29-
#### CDN
30-
#### Build From Source
24+
While many of our components are purely presentational, some have extended functionality that provide a piece of the full Cisco Spark experience. These fully self contained elements are called `Widgets` and are available here:
3125

32-
### Usage
26+
* [Message and Meet Widget](./packages/node_modules/@ciscospark/widget-message-meet)
3327

34-
## Components
28+
## Install
3529

36-
### Install
37-
38-
39-
### Development
30+
### Build From Source
4031

41-
#### Setup Environment Variables
32+
1. Clone this repo using a git client (e.g. `git clone https://github.com/ciscospark/react-ciscospark.git`)
33+
1. Run `npm install` from the root of the repo. You will want to run this every time you pull down any new updates.
34+
1. From the root of the repo, run the following to build the widget:
4235

43-
Setup your `.env` file with the following values:
36+
```sh
37+
npm run build
38+
```
39+
1. The built bundles are located at `packages/node_modules/@ciscospark/PACKAGE_NAME/dist`.
4440

45-
```
46-
CISCOSPARK_ACCESS_TOKEN=
47-
```
4841

4942
## Limitations
5043
### Development

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@ciscospark/plugin-phone": "^0.7.54",
4747
"@ciscospark/spark-core": "^0.7.54",
4848
"@ciscospark/storage-adapter-local-storage": "^0.7.54",
49+
"ampersand-events": "^2.0.2",
4950
"browser-saveas": "^1.0.1",
5051
"classnames": "^2.2.5",
5152
"custom-event-polyfill": "^0.3.0",

packages/node_modules/@ciscospark/widget-base/package.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/node_modules/@ciscospark/widget-base/src/index.js

Lines changed: 120 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/node_modules/@ciscospark/widget-message-meet/README.md

Lines changed: 43 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)