Socket
Socket
Sign inDemoInstall

@ale-rainbow/rainbow-notification

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ale-rainbow/rainbow-notification - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

dist/rainbowNotification.d.ts

@@ -7,3 +7,3 @@ export declare class RainbowNotificationAction {

choice: any[];
choiceTitlelabel: string;
choiceTitleLabel: string;
choiceCloseLabel: string;

@@ -10,0 +10,0 @@ choiceHandler: any;

@@ -5,3 +5,3 @@ "use strict";

constructor() {
this.choiceTitlelabel = null;
this.choiceTitleLabel = null;
this.handler = null;

@@ -68,3 +68,3 @@ this.focus = false;

if (action.choice) {
const choiceTitle = action.choiceTitlelabel ? `${action.choiceTitlelabel}` : '';
const choiceTitle = action.choiceTitleLabel ? `<div id='choiceTitle' class='extCallNotif__choice-title'>${action.choiceTitleLabel}</div>` : '';
let choices = action.choice.reduce((buff, choice) => {

@@ -95,8 +95,10 @@ return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`;

document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem) => {
if (choiceElem.id.includes('callNotif_choice_close')) {
choiceElem[methodName]('click', action.toogleChoice(this));
if (choiceElem.id !== 'choiceTitle') {
if (choiceElem.id.includes('callNotif_choice_close')) {
choiceElem[methodName]('click', action.toogleChoice(this));
}
else {
choiceElem[methodName]('click', action.choiceAction(choiceElem.id));
}
}
else {
choiceElem[methodName]('click', action.choiceAction(choiceElem.id));
}
});

@@ -103,0 +105,0 @@ }

{
"name": "@ale-rainbow/rainbow-notification",
"version": "v1.0.8",
"version": "v1.0.9",
"description": "Alcatel-Lucent Enterprise Rainbow Notification",

@@ -5,0 +5,0 @@ "main": "./dist/rainbowNotification.js",

@@ -8,3 +8,3 @@ export class RainbowNotificationAction {

public choice: any[];
public choiceTitlelabel: string = null;
public choiceTitleLabel: string = null;
public choiceCloseLabel: string;

@@ -76,3 +76,3 @@ public choiceHandler: any;

if (action.choice) {
const choiceTitle = action.choiceTitlelabel ? `${action.choiceTitlelabel}` : '';
const choiceTitle = action.choiceTitleLabel ? `<div id='choiceTitle' class='extCallNotif__choice-title'>${action.choiceTitleLabel}</div>` : '';
let choices = action.choice.reduce((buff: string, choice: any) => {

@@ -102,4 +102,6 @@ return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`;

document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem: any) => {
if (choiceElem.id.includes('callNotif_choice_close')) { choiceElem[methodName]('click', action.toogleChoice(this)); }
else { choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); }
if (choiceElem.id !== 'choiceTitle') {
if (choiceElem.id.includes('callNotif_choice_close')) { choiceElem[methodName]('click', action.toogleChoice(this)); }
else { choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); }
}
});

@@ -106,0 +108,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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