diff --git a/bower.json b/bower.json
index 741b619c..2b2ca010 100644
--- a/bower.json
+++ b/bower.json
@@ -33,6 +33,6 @@
"olark": "^1.0.0",
"jquery": "3.2.1",
"fancybox": "^2.1.6",
- "smalltalk": "2.5.0"
+ "smalltalk": "2.5.1"
}
}
diff --git a/modules/smalltalk/.bower.json b/modules/smalltalk/.bower.json
index 85398ac1..f65268a6 100644
--- a/modules/smalltalk/.bower.json
+++ b/modules/smalltalk/.bower.json
@@ -25,15 +25,15 @@
"webpack.config.js"
],
"dependencies": {},
- "version": "2.5.0",
- "_release": "2.5.0",
+ "version": "2.5.1",
+ "_release": "2.5.1",
"_resolution": {
"type": "version",
- "tag": "v2.5.0",
- "commit": "242a22a4ff3a5f9de986bcf98c43d297995f2980"
+ "tag": "v2.5.1",
+ "commit": "a5142a2693762d9ad729edd823506386497b4e41"
},
"_source": "https://github.com/coderaiser/smalltalk.git",
- "_target": "^2.5.0",
+ "_target": "^2.5.1",
"_originalSource": "smalltalk",
"_direct": true
}
\ No newline at end of file
diff --git a/modules/smalltalk/ChangeLog b/modules/smalltalk/ChangeLog
index e710e2c5..081a2b30 100644
--- a/modules/smalltalk/ChangeLog
+++ b/modules/smalltalk/ChangeLog
@@ -1,3 +1,9 @@
+2017.10.19, v2.5.1
+
+fix:
+- (smalltalk) new line at the end of a message
+
+
2017.10.09, v2.5.0
feature:
diff --git a/modules/smalltalk/dist/smalltalk.min.js b/modules/smalltalk/dist/smalltalk.min.js
index 31b98c97..5aff6ff2 100644
--- a/modules/smalltalk/dist/smalltalk.min.js
+++ b/modules/smalltalk/dist/smalltalk.min.js
@@ -1,2 +1,2 @@
-var smalltalk=function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=1)}([function(n,t){n.exports=es6-promise},function(n,t,e){"use strict";function r(){return"password"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type?"password":"text"}function o(n,t,e,r){return'
\n
\n
\n
\n '+t.replace(/\n/g,"
")+"\n "+e+'\n
\n
\n
'+r.map(function(n,t){return""}).join("")+"\n
\n
\n
"}function u(n,t,e,r,u){var c=m(),a=m(),i=document.createElement("div"),f=["cancel","close","ok"],d=new Promise(function(n,t){var e=u&&!u.cancel,r=function(){};c(n),a(e?r:t)}),v=o(n,t,e,r);return i.innerHTML=v,i.className="smalltalk",document.body.appendChild(i),s(i,["ok","input"]).forEach(function(n){return n.focus()}),s(i,["input"]).forEach(function(n){n.setSelectionRange(0,e.length)}),p("click",i,f,function(n){return l(n.target,i,c(),a())}),["click","contextmenu"].forEach(function(n){return i.addEventListener(n,function(){return s(i,["ok","input"]).forEach(function(n){return n.focus()})})}),i.addEventListener("keydown",h(i,c(),a())),d}function c(n,t,e,r){var o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},u=r.keyCode,c=r.target,p=["ok","cancel","input"],d=s(n,p).map(a);switch(u){case o.ENTER:l(c,n,t,e),r.preventDefault();break;case o.ESC:g(),e();break;case o.TAB:r.shiftKey&&f(n,d),f(n,d),r.preventDefault();break;default:["left","right","up","down"].filter(function(n){return u===o[n.toUpperCase()]}).forEach(function(){i(n,d)})}r.stopPropagation()}function a(n){return n.getAttribute("data-name").replace("js-","")}function i(n,t){var e=document.activeElement,r=a(e),o=/ok|cancel/.test(r),u=t.length-1;if("input"!==r&&u&&o){s(n,[function(n){return"cancel"===n?"ok":"cancel"}(r)]).forEach(function(n){n.focus()})}}function f(n,t){var e=document.activeElement,r=a(e),o=t.length-1,u=t.indexOf(r);s(n,[t[b(o,u)]]).forEach(function(n){return n.focus()})}function l(n,t,e,r){if(/close|cancel/.test(n.getAttribute("data-name").replace("js-","")))return r(),void g();e(s(t,["input"]).reduce(function(n,t){return t.value},null)),g()}function s(n,t){var e=function(n){return n};return t.map(function(t){return n.querySelector('[data-name="js-'+t+'"]')}).filter(e)}function p(n,t,e,r){s(t,e).forEach(function(t){return t.addEventListener(n,r)})}function d(n){var t=document.querySelector(n);t.parentElement.removeChild(t)}window.Promise=window.Promise||e(0);var v=e(2),m=e(4),h=v(c),g=function(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3];return u(n,t,'',E,o)},t.confirm=function(n,t,e){return u(n,t,"",E,e)};var b=function(n,t){return t===n?0:t+1}},function(n,t,e){n.exports=e(3)},function(n,t,e){"use strict";function r(n){if("function"!=typeof n)throw Error("fn should be function!")}var o=function(n){return[function(t){return n.apply(void 0,arguments)},function(t,e){return n.apply(void 0,arguments)},function(t,e,r){return n.apply(void 0,arguments)},function(t,e,r,o){return n.apply(void 0,arguments)},function(t,e,r,o,u){return n.apply(void 0,arguments)}]};n.exports=function n(t){for(var e=arguments.length,u=Array(e>1?e-1:0),c=1;c=t.length)return t.apply(void 0,u);var a=function(){return n.apply(void 0,[t].concat(u,Array.prototype.slice.call(arguments)))},i=t.length-u.length-1;return o(a)[i]||a}},function(n,t,e){n.exports=e(5)},function(n,t,e){"use strict";n.exports=function(n){var t={value:n};return function(n){return arguments.length?(t.value=n,n):t.value}}}]);
+var smalltalk=function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=1)}([function(n,t){n.exports=es6-promise},function(n,t,e){"use strict";function r(){return"password"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type?"password":"text"}function o(n,t,e,r){return'\n
\n
\n
'+t.replace(/\n/g,"
")+e+'
\n
\n
'+r.map(function(n,t){return""}).join("")+"\n
\n
\n
"}function u(n,t,e,r,u){var c=m(),a=m(),i=document.createElement("div"),f=["cancel","close","ok"],d=new Promise(function(n,t){var e=u&&!u.cancel,r=function(){};c(n),a(e?r:t)}),v=o(n,t,e,r);return i.innerHTML=v,i.className="smalltalk",document.body.appendChild(i),s(i,["ok","input"]).forEach(function(n){return n.focus()}),s(i,["input"]).forEach(function(n){n.setSelectionRange(0,e.length)}),p("click",i,f,function(n){return l(n.target,i,c(),a())}),["click","contextmenu"].forEach(function(n){return i.addEventListener(n,function(){return s(i,["ok","input"]).forEach(function(n){return n.focus()})})}),i.addEventListener("keydown",h(i,c(),a())),d}function c(n,t,e,r){var o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},u=r.keyCode,c=r.target,p=["ok","cancel","input"],d=s(n,p).map(a);switch(u){case o.ENTER:l(c,n,t,e),r.preventDefault();break;case o.ESC:g(),e();break;case o.TAB:r.shiftKey&&f(n,d),f(n,d),r.preventDefault();break;default:["left","right","up","down"].filter(function(n){return u===o[n.toUpperCase()]}).forEach(function(){i(n,d)})}r.stopPropagation()}function a(n){return n.getAttribute("data-name").replace("js-","")}function i(n,t){var e=document.activeElement,r=a(e),o=/ok|cancel/.test(r),u=t.length-1;if("input"!==r&&u&&o){s(n,[function(n){return"cancel"===n?"ok":"cancel"}(r)]).forEach(function(n){n.focus()})}}function f(n,t){var e=document.activeElement,r=a(e),o=t.length-1,u=t.indexOf(r);s(n,[t[b(o,u)]]).forEach(function(n){return n.focus()})}function l(n,t,e,r){if(/close|cancel/.test(n.getAttribute("data-name").replace("js-","")))return r(),void g();e(s(t,["input"]).reduce(function(n,t){return t.value},null)),g()}function s(n,t){var e=function(n){return n};return t.map(function(t){return n.querySelector('[data-name="js-'+t+'"]')}).filter(e)}function p(n,t,e,r){s(t,e).forEach(function(t){return t.addEventListener(n,r)})}function d(n){var t=document.querySelector(n);t.parentElement.removeChild(t)}window.Promise=window.Promise||e(0);var v=e(2),m=e(4),h=v(c),g=function(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3];return u(n,t,'',E,o)},t.confirm=function(n,t,e){return u(n,t,"",E,e)};var b=function(n,t){return t===n?0:t+1}},function(n,t,e){n.exports=e(3)},function(n,t,e){"use strict";function r(n){if("function"!=typeof n)throw Error("fn should be function!")}var o=function(n){return[function(t){return n.apply(void 0,arguments)},function(t,e){return n.apply(void 0,arguments)},function(t,e,r){return n.apply(void 0,arguments)},function(t,e,r,o){return n.apply(void 0,arguments)},function(t,e,r,o,u){return n.apply(void 0,arguments)}]};n.exports=function n(t){for(var e=arguments.length,u=Array(e>1?e-1:0),c=1;c=t.length)return t.apply(void 0,u);var a=function(){return n.apply(void 0,[t].concat(u,Array.prototype.slice.call(arguments)))},i=t.length-u.length-1;return o(a)[i]||a}},function(n,t,e){n.exports=e(5)},function(n,t,e){"use strict";n.exports=function(n){var t={value:n};return function(n){return arguments.length?(t.value=n,n):t.value}}}]);
//# sourceMappingURL=smalltalk.min.js.map
\ No newline at end of file
diff --git a/modules/smalltalk/dist/smalltalk.poly.min.js b/modules/smalltalk/dist/smalltalk.poly.min.js
index 950a9bdf..0253a1b4 100644
--- a/modules/smalltalk/dist/smalltalk.poly.min.js
+++ b/modules/smalltalk/dist/smalltalk.poly.min.js
@@ -1,2 +1,2 @@
-var smalltalk=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=4)}([function(t,n,e){(function(n,r){!function(n,e){t.exports=e()}(0,function(){"use strict";function t(t){var n=typeof t;return null!==t&&("object"===n||"function"===n)}function o(t){return"function"==typeof t}function i(t){G=t}function u(t){I=t}function c(){return void 0!==W?function(){W(a)}:s()}function s(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t1)for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{}).type?"password":"text"}function o(t,n,e,r){return'\n
\n
\n
\n '+n.replace(/\n/g,"
")+"\n "+e+'\n
\n
\n
'+r.map(function(t,n){return""}).join("")+"\n
\n
\n
"}function i(t,n,e,r,i){var u=d(),c=d(),s=document.createElement("div"),a=["cancel","close","ok"],p=new Promise(function(t,n){var e=i&&!i.cancel,r=function(){};u(t),c(e?r:n)}),v=o(t,n,e,r);return s.innerHTML=v,s.className="smalltalk",document.body.appendChild(s),l(s,["ok","input"]).forEach(function(t){return t.focus()}),l(s,["input"]).forEach(function(t){t.setSelectionRange(0,e.length)}),h("click",s,a,function(t){return f(t.target,s,u(),c())}),["click","contextmenu"].forEach(function(t){return s.addEventListener(t,function(){return l(s,["ok","input"]).forEach(function(t){return t.focus()})})}),s.addEventListener("keydown",m(s,u(),c())),p}function u(t,n,e,r){var o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},i=r.keyCode,u=r.target,h=["ok","cancel","input"],p=l(t,h).map(c);switch(i){case o.ENTER:f(u,t,n,e),r.preventDefault();break;case o.ESC:y(),e();break;case o.TAB:r.shiftKey&&a(t,p),a(t,p),r.preventDefault();break;default:["left","right","up","down"].filter(function(t){return i===o[t.toUpperCase()]}).forEach(function(){s(t,p)})}r.stopPropagation()}function c(t){return t.getAttribute("data-name").replace("js-","")}function s(t,n){var e=document.activeElement,r=c(e),o=/ok|cancel/.test(r),i=n.length-1;if("input"!==r&&i&&o){l(t,[function(t){return"cancel"===t?"ok":"cancel"}(r)]).forEach(function(t){t.focus()})}}function a(t,n){var e=document.activeElement,r=c(e),o=n.length-1,i=n.indexOf(r);l(t,[n[w(o,i)]]).forEach(function(t){return t.focus()})}function f(t,n,e,r){if(/close|cancel/.test(t.getAttribute("data-name").replace("js-","")))return r(),void y();e(l(n,["input"]).reduce(function(t,n){return n.value},null)),y()}function l(t,n){var e=function(t){return t};return n.map(function(n){return t.querySelector('[data-name="js-'+n+'"]')}).filter(e)}function h(t,n,e,r){l(n,e).forEach(function(n){return n.addEventListener(t,r)})}function p(t){var n=document.querySelector(t);n.parentElement.removeChild(n)}window.Promise=window.Promise||e(0);var v=e(5),d=e(7),m=v(u),y=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3];return i(t,n,'',_,o)},n.confirm=function(t,n,e){return i(t,n,"",_,e)};var w=function(t,n){return n===t?0:n+1}},function(t,n,e){t.exports=e(6)},function(t,n,e){"use strict";function r(t){if("function"!=typeof t)throw Error("fn should be function!")}var o=function(t){return[function(n){return t.apply(void 0,arguments)},function(n,e){return t.apply(void 0,arguments)},function(n,e,r){return t.apply(void 0,arguments)},function(n,e,r,o){return t.apply(void 0,arguments)},function(n,e,r,o,i){return t.apply(void 0,arguments)}]};t.exports=function t(n){for(var e=arguments.length,i=Array(e>1?e-1:0),u=1;u=n.length)return n.apply(void 0,i);var c=function(){return t.apply(void 0,[n].concat(i,Array.prototype.slice.call(arguments)))},s=n.length-i.length-1;return o(c)[s]||c}},function(t,n,e){t.exports=e(8)},function(t,n,e){"use strict";t.exports=function(t){var n={value:t};return function(t){return arguments.length?(n.value=t,t):n.value}}}]);
+var smalltalk=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=4)}([function(t,n,e){(function(n,r){!function(n,e){t.exports=e()}(0,function(){"use strict";function t(t){var n=typeof t;return null!==t&&("object"===n||"function"===n)}function o(t){return"function"==typeof t}function i(t){G=t}function u(t){I=t}function c(){return void 0!==W?function(){W(a)}:s()}function s(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t1)for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{}).type?"password":"text"}function o(t,n,e,r){return'\n
\n
\n
'+n.replace(/\n/g,"
")+e+'
\n
\n
'+r.map(function(t,n){return""}).join("")+"\n
\n
\n
"}function i(t,n,e,r,i){var u=d(),c=d(),s=document.createElement("div"),a=["cancel","close","ok"],p=new Promise(function(t,n){var e=i&&!i.cancel,r=function(){};u(t),c(e?r:n)}),v=o(t,n,e,r);return s.innerHTML=v,s.className="smalltalk",document.body.appendChild(s),l(s,["ok","input"]).forEach(function(t){return t.focus()}),l(s,["input"]).forEach(function(t){t.setSelectionRange(0,e.length)}),h("click",s,a,function(t){return f(t.target,s,u(),c())}),["click","contextmenu"].forEach(function(t){return s.addEventListener(t,function(){return l(s,["ok","input"]).forEach(function(t){return t.focus()})})}),s.addEventListener("keydown",m(s,u(),c())),p}function u(t,n,e,r){var o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},i=r.keyCode,u=r.target,h=["ok","cancel","input"],p=l(t,h).map(c);switch(i){case o.ENTER:f(u,t,n,e),r.preventDefault();break;case o.ESC:y(),e();break;case o.TAB:r.shiftKey&&a(t,p),a(t,p),r.preventDefault();break;default:["left","right","up","down"].filter(function(t){return i===o[t.toUpperCase()]}).forEach(function(){s(t,p)})}r.stopPropagation()}function c(t){return t.getAttribute("data-name").replace("js-","")}function s(t,n){var e=document.activeElement,r=c(e),o=/ok|cancel/.test(r),i=n.length-1;if("input"!==r&&i&&o){l(t,[function(t){return"cancel"===t?"ok":"cancel"}(r)]).forEach(function(t){t.focus()})}}function a(t,n){var e=document.activeElement,r=c(e),o=n.length-1,i=n.indexOf(r);l(t,[n[w(o,i)]]).forEach(function(t){return t.focus()})}function f(t,n,e,r){if(/close|cancel/.test(t.getAttribute("data-name").replace("js-","")))return r(),void y();e(l(n,["input"]).reduce(function(t,n){return n.value},null)),y()}function l(t,n){var e=function(t){return t};return n.map(function(n){return t.querySelector('[data-name="js-'+n+'"]')}).filter(e)}function h(t,n,e,r){l(n,e).forEach(function(n){return n.addEventListener(t,r)})}function p(t){var n=document.querySelector(t);n.parentElement.removeChild(n)}window.Promise=window.Promise||e(0);var v=e(5),d=e(7),m=v(u),y=function(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:"",o=arguments[3];return i(t,n,'',_,o)},n.confirm=function(t,n,e){return i(t,n,"",_,e)};var w=function(t,n){return n===t?0:n+1}},function(t,n,e){t.exports=e(6)},function(t,n,e){"use strict";function r(t){if("function"!=typeof t)throw Error("fn should be function!")}var o=function(t){return[function(n){return t.apply(void 0,arguments)},function(n,e){return t.apply(void 0,arguments)},function(n,e,r){return t.apply(void 0,arguments)},function(n,e,r,o){return t.apply(void 0,arguments)},function(n,e,r,o,i){return t.apply(void 0,arguments)}]};t.exports=function t(n){for(var e=arguments.length,i=Array(e>1?e-1:0),u=1;u=n.length)return n.apply(void 0,i);var c=function(){return t.apply(void 0,[n].concat(i,Array.prototype.slice.call(arguments)))},s=n.length-i.length-1;return o(c)[s]||c}},function(t,n,e){t.exports=e(8)},function(t,n,e){"use strict";t.exports=function(t){var n={value:t};return function(t){return arguments.length?(n.value=t,t):n.value}}}]);
//# sourceMappingURL=smalltalk.poly.min.js.map
\ No newline at end of file
diff --git a/modules/smalltalk/lib/smalltalk.js b/modules/smalltalk/lib/smalltalk.js
index 761eeba9..378973b1 100644
--- a/modules/smalltalk/lib/smalltalk.js
+++ b/modules/smalltalk/lib/smalltalk.js
@@ -45,10 +45,7 @@ function getTemplate(title, msg, value, buttons) {
return `
-
- ${ encodedMsg }
- ${ value }
-
+
${ encodedMsg }${ value }
${
buttons.map((name, i) =>
diff --git a/modules/smalltalk/package.json b/modules/smalltalk/package.json
index 1bffc935..ece99308 100644
--- a/modules/smalltalk/package.json
+++ b/modules/smalltalk/package.json
@@ -1,6 +1,6 @@
{
"name": "smalltalk",
- "version": "2.5.0",
+ "version": "2.5.1",
"description": "Promise-based Alert, Confirm and Prompt replacement",
"homepage": "http://github.com/coderaiser/smalltalk",
"repository": {