@material/mwc-ripple
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -36,2 +36,5 @@ import { __decorate } from "tslib"; | ||
} | ||
else if (parent instanceof ShadowRoot && parent.host instanceof HTMLElement) { | ||
this.interactionNode = parent.host; | ||
} | ||
} | ||
@@ -38,0 +41,0 @@ super.connectedCallback(); |
@@ -1,9 +0,9 @@ | ||
import { RippleBase } from './mwc-ripple-base.js'; | ||
import {RippleBase} from './mwc-ripple-base.js'; | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'mwc-ripple': Ripple; | ||
} | ||
interface HTMLElementTagNameMap { | ||
'mwc-ripple': Ripple; | ||
} | ||
} | ||
export declare class Ripple extends RippleBase { | ||
static styles: import("lit-element").CSSResult; | ||
static styles: import('lit-element').CSSResult; | ||
} |
{ | ||
"name": "@material/mwc-ripple", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "", | ||
@@ -18,5 +18,5 @@ "main": "mwc-ripple.js", | ||
"dependencies": { | ||
"@material/dom": "=4.0.0-canary.e851d4f40.0", | ||
"@material/mwc-base": "^0.10.0", | ||
"@material/ripple": "=4.0.0-canary.e851d4f40.0", | ||
"@material/dom": "=5.0.0-canary.5729943ba.0", | ||
"@material/mwc-base": "^0.11.0", | ||
"@material/ripple": "=5.0.0-canary.5729943ba.0", | ||
"lit-element": "^2.2.1", | ||
@@ -29,3 +29,3 @@ "lit-html": "^1.1.2", | ||
}, | ||
"gitHead": "631e70e3a39330ccade8210d1a72edc0f22ddc0a" | ||
"gitHead": "147d9789d99bf7a5ed28f6b066b8db58f5b9ab0a" | ||
} |
@@ -61,3 +61,3 @@ /** | ||
isSurfaceActive: () => matches(interactionNode, ':active'), | ||
isSurfaceDisabled: () => Boolean(options.disabled), | ||
isSurfaceDisabled: () => Boolean(interactionNode.hasAttribute('disabled')), | ||
addClass: (className) => surfaceNode.classList.add(className), | ||
@@ -64,0 +64,0 @@ removeClass: (className) => surfaceNode.classList.remove(className), |
@@ -37,5 +37,8 @@ /** | ||
if (this.interactionNode === this) { | ||
const parent = this.parentNode as HTMLElement; | ||
const parent = this.parentNode as HTMLElement | ShadowRoot | null; | ||
if (parent instanceof HTMLElement) { | ||
this.interactionNode = parent; | ||
} else if ( | ||
parent instanceof ShadowRoot && parent.host instanceof HTMLElement) { | ||
this.interactionNode = parent.host; | ||
} | ||
@@ -42,0 +45,0 @@ } |
@@ -87,3 +87,3 @@ /** | ||
isSurfaceActive: () => matches(interactionNode, ':active'), | ||
isSurfaceDisabled: () => Boolean(options.disabled), | ||
isSurfaceDisabled: () => Boolean(interactionNode.hasAttribute('disabled')), | ||
addClass: (className: string) => surfaceNode.classList.add(className), | ||
@@ -90,0 +90,0 @@ removeClass: (className: string) => surfaceNode.classList.remove(className), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
76373
3
610
1
+ Added@material/mwc-base@0.11.1(transitive)
- Removed@material/mwc-base@0.10.0(transitive)
Updated@material/mwc-base@^0.11.0