Public repo of the original developers internal version
Go to file
2018-05-26 14:53:54 -04:00
src initial setup of widget 2018-05-26 14:53:54 -04:00
.eslintrc initial setup of widget 2018-05-26 14:53:54 -04:00
.gitignore initial setup of widget 2018-05-26 14:53:54 -04:00
package-lock.json initial setup of widget 2018-05-26 14:53:54 -04:00
package.json initial setup of widget 2018-05-26 14:53:54 -04:00
README.md initial setup of widget 2018-05-26 14:53:54 -04:00
webpack.config.js initial setup of widget 2018-05-26 14:53:54 -04:00

Embeddable React Widget

Easy creation of an embeddable widget.

Goal

The create-react-app of embeddable widgets.

Features

  • Full ES6/ES2015 support (with Babel)
  • Package fonts, css, json, javascripts together into one simple repository (with Webpack)
  • No css tyling conflicts between the host page and the widget (with https://github.com/premasagar/cleanslate)
  • Obfuscating of the widget code

What is an emeddable widget?

  • Usable using a simple <script> tag
  • Configurable with code

Why not in an iframe?

  • Interaction between the frame and the hosting page is tricky and not recommended
  • You can only display content within the iframe
  • iframe and content resizing is impossible
  • iframe sandboxing can result in missing functionalities

Roadmap

  • index.html works (webpack, babel, react)
  • webpack changed to output a library
  • react widget

Links

Best