Skip to content

Commit

Permalink
Bump minor version and build
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatliner committed Feb 25, 2018
1 parent 72e7d63 commit 0df3f63
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 77 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vex",
"version": "4.0.0",
"version": "4.1.0",
"homepage": "http://github.hubspot.com/vex/docs/welcome",
"authors": [
"Adam Schwartz <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vex",
"repo": "HubSpot/vex",
"description": "Beautiful, functional dialogs in vanilla Javascript",
"version": "4.0.0",
"version": "4.1.0",
"homepage": "http://github.hubspot.com/vex",
"license": "MIT",
"keywords": [
Expand Down
85 changes: 16 additions & 69 deletions dist/js/vex.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,27 +241,6 @@ if (objCtr.defineProperty) {
}

},{}],2:[function(require,module,exports){
'use strict';

function deepcopy(value) {
if (!(!!value && typeof value == 'object')) {
return value;
}
if (Object.prototype.toString.call(value) == '[object Date]') {
return new Date(value.getTime());
}
if (Array.isArray(value)) {
return value.map(deepcopy);
}
var result = {};
Object.keys(value).forEach(
function(key) { result[key] = deepcopy(value[key]); });
return result;
}

module.exports = deepcopy;

},{}],3:[function(require,module,exports){

/**
* Expose `parse`.
Expand Down Expand Up @@ -375,7 +354,7 @@ function parse(html, doc) {
return fragment;
}

},{}],4:[function(require,module,exports){
},{}],3:[function(require,module,exports){
/**
* Code refactored from Mozilla Developer Network:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
Expand Down Expand Up @@ -423,7 +402,7 @@ module.exports = {
polyfill: polyfill
};

},{}],5:[function(require,module,exports){
},{}],4:[function(require,module,exports){
// get successful control from form and assemble into object
// http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2

Expand Down Expand Up @@ -685,30 +664,9 @@ function str_serialize(result, key, value) {

module.exports = serialize;

},{}],6:[function(require,module,exports){
},{}],5:[function(require,module,exports){
(function (global){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.vexDialog = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
'use strict';

function deepcopy(value) {
if (!(!!value && typeof value == 'object')) {
return value;
}
if (Object.prototype.toString.call(value) == '[object Date]') {
return new Date(value.getTime());
}
if (Array.isArray(value)) {
return value.map(deepcopy);
}
var result = {};
Object.keys(value).forEach(
function(key) { result[key] = deepcopy(value[key]); });
return result;
}

module.exports = deepcopy;

},{}],2:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.vexDialog = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

/**
* Expose `parse`.
Expand Down Expand Up @@ -822,7 +780,7 @@ function parse(html, doc) {
return fragment;
}

},{}],3:[function(require,module,exports){
},{}],2:[function(require,module,exports){
// get successful control from form and assemble into object
// http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2

Expand Down Expand Up @@ -1084,10 +1042,9 @@ function str_serialize(result, key, value) {

module.exports = serialize;

},{}],4:[function(require,module,exports){
},{}],3:[function(require,module,exports){
var domify = require('domify')
var serialize = require('form-serialize')
var cloneDeep = require('deep-clone-simple')

// Build DOM elements for the structure of the dialog
var buildDialogForm = function buildDialogForm (options) {
Expand Down Expand Up @@ -1148,7 +1105,7 @@ var plugin = function plugin (vex) {

// Open
open: function open (opts) {
var options = Object.assign({}, cloneDeep(this.defaultOptions), opts)
var options = Object.assign({}, this.defaultOptions, opts)

// `message` is unsafe internally, so translate
// safe default: HTML-escape the message before passing it through
Expand All @@ -1164,14 +1121,6 @@ var plugin = function plugin (vex) {
// Open the dialog
var dialogInstance = vex.open(options)

if (options.yesText !== '') {
options.buttons[0].text = options.yesText
}

if (options.noText !== '') {
options.buttons[1].text = options.noText
}

// Quick comment - these options and appending buttons and everything
// would preferably be done _before_ opening the dialog. However, since
// they rely on the context of the vex instance, we have to do them
Expand Down Expand Up @@ -1221,7 +1170,7 @@ var plugin = function plugin (vex) {
message: options
}
}
options = Object.assign({}, cloneDeep(this.defaultOptions), cloneDeep(this.defaultAlertOptions), options)
options = Object.assign({}, this.defaultOptions, this.defaultAlertOptions, options)
return this.open(options)
},

Expand All @@ -1230,7 +1179,7 @@ var plugin = function plugin (vex) {
if (typeof options !== 'object' || typeof options.callback !== 'function') {
throw new Error('dialog.confirm(options) requires options.callback.')
}
options = Object.assign({}, cloneDeep(this.defaultOptions), cloneDeep(this.defaultConfirmOptions), options)
options = Object.assign({}, this.defaultOptions, this.defaultConfirmOptions, options)
return this.open(options)
},

Expand All @@ -1239,7 +1188,7 @@ var plugin = function plugin (vex) {
if (typeof options !== 'object' || typeof options.callback !== 'function') {
throw new Error('dialog.prompt(options) requires options.callback.')
}
var defaults = Object.assign({}, cloneDeep(this.defaultOptions), cloneDeep(this.defaultPromptOptions))
var defaults = Object.assign({}, this.defaultOptions, this.defaultPromptOptions)
var dynamicDefaults = {
unsafeMessage: '<label for="vex">' + vex._escapeHtml(options.label || defaults.label) + '</label>',
input: '<input name="vex" type="text" class="vex-dialog-prompt-input" placeholder="' + vex._escapeHtml(options.placeholder || defaults.placeholder) + '" value="' + vex._escapeHtml(options.value || defaults.value) + '" />'
Expand Down Expand Up @@ -1286,8 +1235,6 @@ var plugin = function plugin (vex) {
afterOpen: function () {},
message: '',
input: '',
yesText: '',
noText: '',
buttons: [
dialog.buttons.YES,
dialog.buttons.NO
Expand Down Expand Up @@ -1322,15 +1269,15 @@ var plugin = function plugin (vex) {

module.exports = plugin

},{"deep-clone-simple":1,"domify":2,"form-serialize":3}]},{},[4])(4)
},{"domify":1,"form-serialize":2}]},{},[3])(3)
});
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"deep-clone-simple":2,"domify":3,"form-serialize":5}],7:[function(require,module,exports){
},{"domify":2,"form-serialize":4}],6:[function(require,module,exports){
var vex = require('./vex')
vex.registerPlugin(require('vex-dialog'))
module.exports = vex

},{"./vex":8,"vex-dialog":6}],8:[function(require,module,exports){
},{"./vex":7,"vex-dialog":5}],7:[function(require,module,exports){
// classList polyfill for old browsers
require('classlist-polyfill')
// Object.assign polyfill
Expand Down Expand Up @@ -1486,7 +1433,7 @@ var vex = {
// Remove the dialog from the DOM
this.rootEl.parentNode.removeChild(this.rootEl)
// Remove the overlay from the DOM
this.bodyEl.removeChild(this.overlayEl);
this.bodyEl.removeChild(this.overlayEl)
// Call after close callback
if (options.afterClose) {
options.afterClose.call(this)
Expand Down Expand Up @@ -1531,7 +1478,7 @@ var vex = {
var options = vexInstance.options = Object.assign({}, vex.defaultOptions, opts)

// Get Body Element
var bodyEl = vexInstance.bodyEl = document.getElementsByTagName('body')[0];
var bodyEl = vexInstance.bodyEl = document.getElementsByTagName('body')[0]

// vex root
var rootEl = vexInstance.rootEl = document.createElement('div')
Expand Down Expand Up @@ -1677,5 +1624,5 @@ vex.registerPlugin = function registerPlugin (pluginFn, name) {

module.exports = vex

},{"classlist-polyfill":1,"domify":3,"es6-object-assign":4}]},{},[7])(7)
},{"classlist-polyfill":1,"domify":2,"es6-object-assign":3}]},{},[6])(6)
});
4 changes: 2 additions & 2 deletions dist/js/vex.combined.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/vex.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ var vex = {
// Remove the dialog from the DOM
this.rootEl.parentNode.removeChild(this.rootEl)
// Remove the overlay from the DOM
this.bodyEl.removeChild(this.overlayEl);
this.bodyEl.removeChild(this.overlayEl)
// Call after close callback
if (options.afterClose) {
options.afterClose.call(this)
Expand Down Expand Up @@ -603,7 +603,7 @@ var vex = {
var options = vexInstance.options = Object.assign({}, vex.defaultOptions, opts)

// Get Body Element
var bodyEl = vexInstance.bodyEl = document.getElementsByTagName('body')[0];
var bodyEl = vexInstance.bodyEl = document.getElementsByTagName('body')[0]

// vex root
var rootEl = vexInstance.rootEl = document.createElement('div')
Expand Down
2 changes: 1 addition & 1 deletion dist/js/vex.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vex-js",
"version": "4.0.1",
"version": "4.1.0",
"description": "Beautiful, functional dialogs in vanilla JavaScript",
"contributors": [
"Adam Schwartz <[email protected]>",
Expand Down

0 comments on commit 0df3f63

Please sign in to comment.