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

@tradeshift/elements

Package Overview
Dependencies
Maintainers
4
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tradeshift/elements - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

src/utils/behaviors.js

4

package.json
{
"name": "@tradeshift/elements",
"version": "0.6.0",
"version": "0.7.0",
"src": "src/core.js",

@@ -15,3 +15,3 @@ "main": "lib/core.umd.js",

},
"gitHead": "a40f2b733b10bbc573ade7d66b39041459213810"
"gitHead": "d0ea80e217c6b4da934c0ad9f2e510bf4db76adb"
}
import { LitElement, unsafeCSS } from 'lit-element';
import commonCSS from './common.css';
import { constants } from './utils';
export { constants, helpers } from './utils';
export { constants, helpers, CloseOnEscBehavior } from './utils';

@@ -16,3 +16,3 @@ export function customElementDefineHelper(name, component) {

}
// TODO: Remove this when changed rtl to dir in ohter components
// TODO: Remove this when changed rtl to dir in other components
get bodyHasRTL() {

@@ -19,0 +19,0 @@ return document.body.getAttribute('dir') === 'rtl';

@@ -38,1 +38,9 @@ import msgs from './messages';

};
export const keyboardEventKeys = {
ESCAPE: 'Escape'
};
export const keyboardEventKeyCodes = {
ESCAPE: 27
};

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

import { keyboardEventKeys, keyboardEventKeyCodes } from './constants';
export const classNamesToSelector = classNamesObject => {

@@ -24,1 +26,5 @@ const selectors = {};

};
// Keycode check for IE11
export const isEscapeKeyEvent = event =>
event.key === keyboardEventKeys.ESCAPE || event.keyCode === keyboardEventKeyCodes.ESCAPE;
import * as constantsData from './constants';
import * as helperFunctions from './helper-functions';
import { CloseOnEscBehavior as closeBehavior } from './behaviors';
export const constants = constantsData;
export const helpers = helperFunctions;
export const CloseOnEscBehavior = closeBehavior;

Sorry, the diff of this file is too big to display

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