Socket
Socket
Sign inDemoInstall

@coveops/c4-sf-local-development-kit

Package Overview
Dependencies
54
Maintainers
20
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coveops/c4-sf-local-development-kit

An adapter library to ease local development with Salesforce components.


Version published
Weekly downloads
3
increased by200%
Maintainers
20
Install size
190 MB
Created
Weekly downloads
 

Readme

Source

Coveo For Salesforce Local Development Kit

An adapter library to ease local development with Salesforce components.

This library is not a complete drop-in for the C4SF package and is meant to offer basic functionality for local development purposes.

Disclaimer: This component was built by the community at large and is not an official Coveo JSUI Component. Use this component at your own risk.

Getting Started

Disclaimer: You do not want to bundle this code with your Salesforce package to avoid bugs and code conflicts so only script and link snippets will be provided in this Readme.

  1. Add the script from unpkg
<script src="https://unpkg.com/@coveops/c4-sf-local-development-kit@latest/dist/index.min.js"></script>

Disclaimer: Unpkg should be used for testing but not for production.

  1. Add the styles to use the ResultActionMenu for Salesforce Insight Panels.
 <link rel="stylesheet" href="https://unpkg.com/@coveops/c4-sf-local-development-kit@latest/dist/css/index.css" />
  1. Include the component in your template as follows:

Use the SalesforceResultLink, ConsoleResultLink or SalesforceQuickview as you would in the Salesforce environment and get the non-salesforce equivalent component returned from JSUI.

Salesforce ComponentAdapted Local Component
SalesforceResultLinkResultLink
ConsoleResultLinkResultLink
SalesforceQuickviewQuickview

Contribute

  1. Clone the project
  2. Copy .env.dist to .env and update the COVEO_ORG_ID and COVEO_TOKEN fields in the .env file to use your Coveo credentials and SERVER_PORT to configure the port of the sandbox - it will use 8080 by default.
  3. Build the code base: npm run build
  4. Serve the sandbox for live development npm run serve

FAQs

Last updated on 28 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc