New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ikas/popup-renderer

Package Overview
Dependencies
Maintainers
0
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ikas/popup-renderer - npm Package Compare versions

Comparing version 1.0.176 to 1.0.177

2

build/popup-renderer/components/button-element-renderer/index.js

@@ -1,1 +0,1 @@

import{__assign as e}from'./../../../ext/tslib/tslib.es6.mjs.js';import t from"react";import{observer as o}from"mobx-react";import{ButtonActionTypeEnum as n}from"../../models/modal/step/elements/button/index.js";import{getHorizontalAlignment as r,injectFontScript as i}from"../../helpers/index.js";var l=o((function(o){var l=o.element,a=o.isStandaloneButtonComponent,c=o.onClose,d=t.useRef(null),s=l,u={display:"flex",alignItems:"center",justifyContent:r(s.horizontalAlignment),padding:"".concat(s.outerVerticalPadding,"px ").concat(s.outerHorizontalPadding,"px"),backgroundColor:s.bgColor},m={color:s.color,backgroundColor:s.buttonBgColor,fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:i(s.fontFamily),textAlign:"center",border:"".concat(s.borderWidth,"px ").concat(s.borderStyle," ").concat(s.borderColor),borderRadius:s.borderRadius,padding:"".concat(s.verticalPadding,"px ").concat(s.horizontalPadding,"px")},f={width:"".concat(s.width,"%"),minWidth:"fit-content",cursor:"pointer"},p=t.useCallback((function(){if(d.current){var e=s.link||void 0;if(d.current.href=e||"",!a&&e)d.current.click();else switch(s.actionType){case n.NAVIGATE_TO_LINK_AND_CLOSE:null==c||c(!0),d.current.click();break;case n.NAVIGATE_TO_LINK:d.current.click();break;case n.CLOSE:null==c||c(!0)}}}),[d,d.current]);return t.createElement("div",{style:u},t.createElement("a",{onClick:p,style:f,target:s.openLinkInNewWindow?"_blank":"_self",ref:d},t.createElement("div",{dangerouslySetInnerHTML:{__html:s.text},style:e({},m)})))}));export{l as default};
import{__assign as e}from'./../../../ext/tslib/tslib.es6.mjs.js';import t from"react";import{observer as o}from"mobx-react";import{ButtonActionTypeEnum as n}from"../../models/modal/step/elements/button/index.js";import{getHorizontalAlignment as r,injectFontScript as l}from"../../helpers/index.js";var c=o((function(o){var c=o.element,i=o.isStandaloneButtonComponent,a=o.onClose,d=t.useRef(null),s=c,u={display:"flex",alignItems:"center",justifyContent:r(s.horizontalAlignment),padding:"".concat(s.outerVerticalPadding,"px ").concat(s.outerHorizontalPadding,"px"),backgroundColor:s.bgColor},m={color:s.color,backgroundColor:s.buttonBgColor,fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:l(s.fontFamily),textAlign:"center",border:"".concat(s.borderWidth,"px ").concat(s.borderStyle," ").concat(s.borderColor),borderRadius:s.borderRadius,padding:"".concat(s.verticalPadding,"px ").concat(s.horizontalPadding,"px")},f={width:"".concat(s.width,"%"),minWidth:"fit-content",cursor:"pointer"},g=t.useCallback((function(){if(d.current){var e=s.link||void 0;if(d.current.href=e||"",!i&&e)d.current.click();else{var t=s.actionType;switch(console.log("buttonActionType",t),console.log("aTag",d),console.log("current",d.current),t){case n.NAVIGATE_TO_LINK_AND_CLOSE:null==a||a(!0),d.current.click();break;case n.NAVIGATE_TO_LINK:d.current.click();break;case n.CLOSE:null==a||a(!0)}}}}),[d,d.current]);return t.createElement("div",{style:u},t.createElement("a",{onClick:g,style:f,target:s.openLinkInNewWindow?"_blank":"_self",ref:d},t.createElement("div",{dangerouslySetInnerHTML:{__html:s.text},style:e({},m)})))}));export{c as default};
{
"name": "@ikas/popup-renderer",
"version": "1.0.176",
"version": "1.0.177",
"description": "",

@@ -5,0 +5,0 @@ "author": "ucy",

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