Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pyramid-embed/embed-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pyramid-embed/embed-react

The wrapper for [@pyramid-embed/embed-js](https://www.npmjs.com/package/@pyramid-embed/embed-js)

  • 3.0.0
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-37.76%
Maintainers
1
Weekly downloads
 
Created
Source

Pyramid Embed React

The wrapper for @pyramid-embed/embed-js

Installation

yarn add @pyramid-embed/embed-react
npm i @pyramid-embed/embed-react

API documentation

Please check online help for the general documentation.

Usage

import { PyramidEmbedContainer } from '@pyramid-embed/embed-react';
<PyramidEmbedContainer host="http://pyramid:8181" options={embedOptions} />

Properties

  • host: string - URL of the Pyramid instance
  • options: EmbedOptions - embed options
  • loginType?: "none" | "forms" | "windows" | "saml" - authentication type
  • userName?: string - username, used when loginType="forms"
  • password?: string - password, used when loginType="forms"
  • authToken?: string - Pyramid authentication token
  • samlToken?: string - SAML token
  • style?: object - apply styles to the container element
  • className?: string - apply a className to the container element
  • authFailureCallback?: Function - a function that will be called when the embed token has expired

Examples

Basic

const embedOptions = {
    contentId: 'f5366b40-fbc7-4773-8180-7759bb0760df'
}

<PyramidEmbedContainer
    host="http://pyramid:8181"
    options={embedOptions}
    style={{width: 1280, height: 720}}
/>

Windows authentication

const embedOptions = {
    contentId: 'f5366b40-fbc7-4773-8180-7759bb0760df'
}

<PyramidEmbedContainer
    host="http://pyramid:8181"
    options={embedOptions}
    loginType="windows"
    style={{width: 1280, height: 720}}
/>

Filtering

import { PyramidEmbedContainer, Filter } from '@pyramid-embed/embed-react';

const filter = Filter.create().addUniqueName('[customer].[country].[France]');
const embedOptions = {
    contentId: 'f5366b40-fbc7-4773-8180-7759bb0760df',
    filters: filter
}

<PyramidEmbedContainer
    host="http://pyramid:8181"
    options={embedOptions}
    style={{width: 1280, height: 720}}
/>

Further help

For more help on embedding with Pyramid, especially instructions on authentication, scenarios and use of REST APIs together with embedding, please see online help.

FAQs

Package last updated on 13 Jun 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

  • 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