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

@planningcenter/alert

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planningcenter/alert

Planning Center Opinions for SweetAlert2

  • 0.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
11
Weekly downloads
 
Created
Source

@planningcenter/alert

A small wrapper around sweetalert2. This library will eventually use configuration and styles from @planningcenter/sweetalert2 once they are ready.

BETA ⚠️ This package currently houses the initial Alert implementation from People. It should be considered unstable until out of beta. Use at your own risk!

Interface

The new Alert interface takes cues from console and mirrors sweet alerts in passed arguments, but waves away some of the configuration.

i.e. Alert.error({ title: "Uh Oh!", text: "Something went wrong", })

Alert Methods: confirm, confirmCreate, confirmDestroy, error, info, success, and warn.

returns a Promise containing

{
  value: String, // on submit (confirm)
  dismiss: Boolean, // on cancel
}

Validations

The goal is to create validations that help us more closely align with global design patterns. The is some lightweight validation happening but for sake of time, we are only validating that there is text or html and title passed.

Headline (title) and Body (text) must be present.

reference: https://planningcenter.design/prompts

FAQs

Package last updated on 08 Jan 2020

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