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

terra-alert

Package Overview
Dependencies
Maintainers
8
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-alert - npm Package Compare versions

Comparing version 4.82.0 to 4.83.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 4.83.0 - (October 16, 2023)
* Updated
* Updated prop documentation for optional custom titles.
## 4.82.0 - (October 3, 2023)

@@ -7,0 +12,0 @@

9

lib/Alert.js

@@ -22,4 +22,4 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -91,3 +91,5 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/**
* The title for the notification banner which will be bolded.
* The optional custom title for the notification banner which will be bolded.
* Overrides the provided default title for all notification types (excludes `custom`).
* Title should be provided for `custom` notification banners.
*/

@@ -98,2 +100,3 @@ title: _propTypes.default.string,

* `info`, `success`, or `custom`.
* A default title is provided for all notification types except `custom`.
*/

@@ -100,0 +103,0 @@ type: _propTypes.default.oneOf([AlertTypes.ALERT, AlertTypes.ERROR, AlertTypes.WARNING, AlertTypes.UNSATISFIED, AlertTypes.UNVERIFIED, AlertTypes.ADVISORY, AlertTypes.INFO, AlertTypes.SUCCESS, AlertTypes.CUSTOM])

{
"name": "terra-alert",
"main": "lib/Alert.js",
"version": "4.82.0",
"version": "4.83.0",
"description": "The Terra Alert component is a notification banner that can be rendered in your application when there is information that you want to bring to the user's attention. The Alert component supports a number of built-in notification types that render with pre-defined colors and icons that help the user understand the severity and meaning of the notification. A custom notification type is also supported that allows your application to customize an alert that may not fit into the pre-defined types.",

@@ -33,3 +33,3 @@ "repository": {

"terra-button": "^3.68.2",
"terra-icon": "^3.57.1",
"terra-icon": "^3.58.0",
"terra-responsive-element": "^5.37.0",

@@ -53,3 +53,3 @@ "terra-theme-context": "^1.0.0",

},
"gitHead": "15402a168fe208a6a6ad899563df19e687c034af"
"gitHead": "ceabc03e855b802114d93f40b95594068b7c0503"
}

@@ -77,3 +77,5 @@ import React, { useEffect, useRef, useState } from 'react';

/**
* The title for the notification banner which will be bolded.
* The optional custom title for the notification banner which will be bolded.
* Overrides the provided default title for all notification types (excludes `custom`).
* Title should be provided for `custom` notification banners.
*/

@@ -84,2 +86,3 @@ title: PropTypes.string,

* `info`, `success`, or `custom`.
* A default title is provided for all notification types except `custom`.
*/

@@ -86,0 +89,0 @@ type: PropTypes.oneOf([

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