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

lord-icon-element

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lord-icon-element - npm Package Compare versions

Comparing version

to
1.2.3

4

build/animations/auto.js

@@ -15,5 +15,9 @@ import { Basic } from './basic.js';

this.resetPlayDelayTimer();
super.disconnectedCallback();
}
complete() {
this.resetPlayDelayTimer();
if (!this.connected) {
return;
}
if (this.delay > 0) {

@@ -20,0 +24,0 @@ this.playDelay = setTimeout(() => {

@@ -14,2 +14,3 @@ import { LottiePlayer } from 'lottie-web';

private myEnterBound;
private myConnected;
constructor(element: HTMLElement, target: HTMLElement, lottie: LottiePlayer);

@@ -96,2 +97,6 @@ /**

get leaveBound(): any;
/**
* Animation is connected.
*/
get connected(): boolean;
}

@@ -11,2 +11,3 @@ /**

this.myIsReady = false;
this.myConnected = false;
this.myEnterBound = this.enter.bind(this);

@@ -33,7 +34,11 @@ this.myLeaveBound = this.leave.bind(this);

*/
connectedCallback() { }
connectedCallback() {
this.myConnected = true;
}
/**
* The animation has been disconnected.
*/
disconnectedCallback() { }
disconnectedCallback() {
this.myConnected = false;
}
/**

@@ -139,3 +144,9 @@ * Callback for animation ready.

}
/**
* Animation is connected.
*/
get connected() {
return this.myConnected;
}
}
//# sourceMappingURL=basic.js.map

@@ -8,2 +8,3 @@ import { Basic } from './basic.js';

connectedCallback() {
super.connectedCallback();
for (const event of CLICK_EVENTS) {

@@ -18,2 +19,3 @@ const options = event === 'touchstart' ? { passive: true } : undefined;

}
super.disconnectedCallback();
}

@@ -20,0 +22,0 @@ enter() {

@@ -7,2 +7,3 @@ import { Basic } from './basic.js';

connectedCallback() {
super.connectedCallback();
this.target.addEventListener('mouseenter', this.enterBound);

@@ -12,2 +13,3 @@ }

this.target.removeEventListener('mouseenter', this.enterBound);
super.disconnectedCallback();
}

@@ -14,0 +16,0 @@ enter() {

4

build/animations/loop.js

@@ -12,2 +12,3 @@ import { Basic } from './basic.js';

connectedCallback() {
super.connectedCallback();
this.target.addEventListener('mouseenter', this.enterBound);

@@ -21,2 +22,3 @@ this.target.addEventListener('mouseleave', this.leaveBound);

this.setDirection(1);
super.disconnectedCallback();
}

@@ -34,3 +36,3 @@ enter() {

this.resetPlayDelayTimer();
if (!this.active) {
if (!this.active || !this.connected) {
return;

@@ -37,0 +39,0 @@ }

@@ -7,2 +7,3 @@ import { Basic } from './basic.js';

connectedCallback() {
super.connectedCallback();
this.target.addEventListener('mouseenter', this.enterBound);

@@ -13,2 +14,3 @@ }

this.setDirection(1);
super.disconnectedCallback();
}

@@ -15,0 +17,0 @@ enter() {

@@ -7,2 +7,3 @@ import { Basic } from './basic.js';

connectedCallback() {
super.connectedCallback();
this.target.addEventListener('mouseenter', this.enterBound);

@@ -15,2 +16,3 @@ this.target.addEventListener('mouseleave', this.leaveBound);

this.setDirection(1);
super.disconnectedCallback();
}

@@ -17,0 +19,0 @@ enter() {

{
"name": "lord-icon-element",
"version": "1.2.2",
"version": "1.2.3",
"private": false,

@@ -5,0 +5,0 @@ "main": "./build/lord-icon-element.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet