dynamic-marquee
Advanced tools
Comparing version 2.1.5 to 2.2.0
@@ -9,8 +9,8 @@ export as namespace DynamicMarquee; | ||
export type Item = HTMLElement | string | number; | ||
export class Marquee { | ||
constructor($container: HTMLElement, options?: Options); | ||
onItemRequired( | ||
callback: (data: { | ||
immediatelyFollowsPrevious: boolean; | ||
}) => HTMLElement | void | ||
callback: (data: { immediatelyFollowsPrevious: boolean }) => Item | void | ||
): void; | ||
@@ -24,6 +24,6 @@ onItemRemoved(callback: ($el: HTMLElement) => void): void; | ||
isWaitingForItem(): boolean; | ||
appendItem($el: HTMLElement | string | number): void; | ||
appendItem($el: Item): void; | ||
} | ||
export type LoopBuilder = () => HTMLElement | string | number; | ||
export type LoopBuilder = () => Item; | ||
export type LoopReturn = { update: (newBuilders: LoopBuilder[]) => void }; | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "dynamic-marquee", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"description": "A small library for creating marquees.", | ||
@@ -12,3 +12,4 @@ "main": "./dist/dynamic-marquee.js", | ||
"lint": "prettier --check .", | ||
"preversion": "npm run build" | ||
"preversion": "npm run build", | ||
"prepare": "husky install" | ||
}, | ||
@@ -18,7 +19,2 @@ "files": [ | ||
], | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run prettier" | ||
} | ||
}, | ||
"repository": { | ||
@@ -44,5 +40,5 @@ "type": "git", | ||
"@babel/preset-env": "^7.8.7", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | ||
"husky": "^4.2.3", | ||
"@rollup/plugin-commonjs": "^21.1.0", | ||
"@rollup/plugin-node-resolve": "^13.2.1", | ||
"husky": "^7.0.0", | ||
"longest-common-substring": "0.0.1", | ||
@@ -49,0 +45,0 @@ "prettier": "^2.0.2", |
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
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
45026
837