tether-drop
Advanced tools
Comparing version 1.0.7 to 1.1.0
{ | ||
"name": "tether-drop", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/HubSpot/drop", | ||
@@ -28,4 +28,4 @@ "authors": [ | ||
"dependencies": { | ||
"tether": "~0.7.2" | ||
"tether": "^1.0.0" | ||
} | ||
} |
@@ -0,1 +1,14 @@ | ||
## v1.1.0 | ||
- Update `Tether` to version 1 | ||
- Bump all dependencies | ||
## v1.0.8 | ||
- Add minified CSS stylesheets | ||
## v1.0.7 | ||
- Add `Twipsy` theme [#76](https://github.com/HubSpot/drop/pull/76) | ||
## v1.0.6 | ||
- Fix next tick `undefined` Drop [#77](https://github.com/HubSpot/drop/pull/77) | ||
## v1.0.5 | ||
@@ -2,0 +15,0 @@ - Remove `bower install` post-install script |
@@ -1,2 +0,2 @@ | ||
/*! tether-drop 1.0.7 */ | ||
/*! tether-drop 1.1.0 */ | ||
@@ -3,0 +3,0 @@ (function(root, factory) { |
@@ -7,2 +7,3 @@ var del = require('del'); | ||
var header = require('gulp-header'); | ||
var minify = require('gulp-minify-css'); | ||
var prefixer = require('gulp-autoprefixer'); | ||
@@ -62,2 +63,9 @@ var rename = require('gulp-rename'); | ||
.pipe(prefixer()) | ||
// Original | ||
.pipe(gulp.dest(distDir + '/css')) | ||
// Minified | ||
.pipe(minify()) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(gulp.dest(distDir + '/css')); | ||
@@ -64,0 +72,0 @@ }); |
{ | ||
"name": "tether-drop", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "Client-side library for creating dropdowns", | ||
@@ -20,4 +20,4 @@ "authors": [ | ||
"del": "^1.1.1", | ||
"gulp": "^3.8.11", | ||
"gulp-autoprefixer": "^2.3.0", | ||
"gulp": "^3.9.0", | ||
"gulp-autoprefixer": "^2.3.1", | ||
"gulp-babel": "^5.1.0", | ||
@@ -27,2 +27,3 @@ "gulp-bump": "^0.3.0", | ||
"gulp-header": "^1.2.2", | ||
"gulp-minify-css": "^1.1.6", | ||
"gulp-rename": "^1.2.2", | ||
@@ -35,4 +36,4 @@ "gulp-sass": "^2.0.1", | ||
"dependencies": { | ||
"tether": "^0.7.2" | ||
"tether": "^1.0.0" | ||
} | ||
} |
@@ -25,3 +25,3 @@ /* global Tether */ | ||
} | ||
return results | ||
return results; | ||
} | ||
@@ -58,5 +58,5 @@ | ||
center: 'center' | ||
} | ||
}; | ||
let allDrops = {} | ||
let allDrops = {}; | ||
@@ -120,3 +120,3 @@ // Drop can be included in external libraries. Calling createContext gives you a fresh | ||
constructor(opts) { | ||
super() | ||
super(); | ||
this.options = extend({}, drop.defaults, opts); | ||
@@ -174,3 +174,3 @@ this.target = this.options.target; | ||
generateAndSetContent() | ||
generateAndSetContent(); | ||
this.on('open', generateAndSetContent.bind(this)); | ||
@@ -245,3 +245,3 @@ } else if (typeof this.options.content === 'object') { | ||
if (this.options.openOn === 'always') { | ||
setTimeout(this.open.bind(this)) | ||
setTimeout(this.open.bind(this)); | ||
return; | ||
@@ -254,4 +254,4 @@ } | ||
const openHandler = (event) => { | ||
this.toggle() | ||
event.preventDefault() | ||
this.toggle(); | ||
event.preventDefault(); | ||
}; | ||
@@ -274,3 +274,3 @@ | ||
this.close() | ||
this.close(); | ||
}; | ||
@@ -295,6 +295,6 @@ | ||
const out = () => { | ||
onUs = false | ||
onUs = false; | ||
if (typeof outTimeout !== 'undefined') { | ||
clearTimeout(outTimeout) | ||
clearTimeout(outTimeout); | ||
} | ||
@@ -307,4 +307,4 @@ | ||
outTimeout = null; | ||
}, 50) | ||
} | ||
}, 50); | ||
}; | ||
@@ -326,5 +326,5 @@ this._on(this.target, 'mouseover', over); | ||
if (this.isOpened()) { | ||
this.close() | ||
this.close(); | ||
} else { | ||
this.open() | ||
this.open(); | ||
} | ||
@@ -343,3 +343,3 @@ } | ||
if (typeof this.tether !== 'undefined') { | ||
this.tether.enable() | ||
this.tether.enable(); | ||
} | ||
@@ -354,3 +354,3 @@ | ||
} | ||
}) | ||
}); | ||
@@ -379,3 +379,3 @@ if (typeof this.tether !== 'undefined') { | ||
this.drop.removeEventListener(transitionEndEvent, handler); | ||
} | ||
}; | ||
@@ -442,3 +442,3 @@ this.drop.addEventListener(transitionEndEvent, handler); | ||
Drop.updateBodyClasses(); | ||
}) | ||
}); | ||
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
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
735603
3321
55
10582
14
+ Addedtether@1.4.7(transitive)
- Removedtether@0.7.2(transitive)
Updatedtether@^1.0.0