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

@ewc-lib/ewc-dialog-feedback

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ewc-lib/ewc-dialog-feedback

![Screenshot](./screenshot.png)

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by1000%
Maintainers
0
Weekly downloads
 
Created
Source

Screenshot

Screenshot

  • This component is supposed to be shown after page load until a given date.
  • The user can stop this component from being shown by
    • either clicking on "Go to survey"
    • or ticking the checkbox and clicking "No thanks"
  • The information if it should be shown or not is stored in a cookie
  • Note that this component comes with predefined title and body text.

API

The API of ewc-dialog applies to this element as well, because this element derives from ewc-dialog.

Additionally, there are the following attribs:

  • cookieName - name of the cookie
  • cookiePath - path of the cookie
  • expiryutc - the dialog is shown only before this time (see example below for a UTC time string)
  • url - opened in another tab when clicking "Go to survey" button

Note that the attribs are applied only initially - changing them at runtime has no effect.

Usage with WebPack

package.json

"dependencies": {
  "@ewc-lib/ewc-dialog-feedback": "^0.1.0"
},

main.js

import "@ewc-lib/ewc-css/ewc.css"
import "@ewc-lib/ewc-dialog-feedback"

index.html

<ewc-dialog-feedback 
  cookieName="mySurvery" 
  cookiePath="/" 
  expiryutc="2525-01-01T12:53:00Z" 
  url="https://ec.europa.eu">
</ewc-dialog-feedback>

FAQs

Package last updated on 05 Sep 2024

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