Socket
Book a DemoInstallSign in
Socket

@pexip-engage-public/plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pexip-engage-public/plugin-react

React wrapper component for the Pexip Engage Plugin

1.0.8
Source
npmnpm
Version published
Weekly downloads
771
84.01%
Maintainers
1
Weekly downloads
 
Created
Source

@pexip-engage-public/plugin-react

Wrapper around the Skedify Plugin, to integrate it more conveniently inside React Applications.

There are 2 exports:

  • <PexipEngagePlugin {...configuration} />: React Component that renders the plugin inside a div. You can pass plugin options to it. className, id & style are passed through to the underlying div element.

  • <PexipEngagePluginProvider value={configuration}>: This is a React Context Provider, that allows you to set certain default values. The interface is the same as the configuration prop.

    This component is not required, but can be useful to populate some shared configuration for each plugin instance, eg:

const defaultConfig = {
  scriptSrc: "https:/{ENTERPRISE_NAME}/plugin.skedify.io/{ENTERPRISE_NAME}/pexip-engage-plugin.js",
  language: "nl-be",
  flow: "SMOETQC",
  customer: { timezone: "Europe/Brussels" },
  meetingTypes: "video",
  office: { ids: "1" }
};

function App() {
  return (
    <PexipEngagePluginProvider value={defaultConfig}>
      {/* All <PexipEngagePlugin /> components will now merge their own passed configuration with the defaultConfig value */}
      <PexipEngagePlugin subject={{ ids: "1" }}>
    </PexipEngagePluginProvider>
  );
}

The PexipEngagePlugin reads the current context value, and merges it with its own passed props.

Required props:

  • scriptSrc: The plugin entry point URL. eg: https://{ENTERPRISE_NAME}.plugin.skedify.io/{ENTERPRISE_NAME}/pexip-engage-plugin.js

FAQs

Package last updated on 12 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.