-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery and CoffeeScript, add plugin system #160
Conversation
^The version numbers in the commit history are off because this fork was being published on npm and followed semantic versioning. Most of the changes were made in the vex2 repo, and as such don't show up in the commit history of this fork. |
@geekjuice All systems go for launch 😄 Per @timmfin's suggestion, I think publishing the beta with |
Let's do this! 💥 |
Published as |
Wow, it looks awesome. Thanks! Some loose ends that I'm thinking about now:
|
|
Attempting to run the demos on http://github.hubspot.com/vex/api/basic/ and http://github.hubspot.com/vex/api/themes/ is giving me a |
Ah... seems like I forgot to update a few script tags. Give me one second 😬 |
Updated the links and also fixed up the theme examples. Thanks for catching those 👍 |
No problem! Thanks for the quick fix 👍 |
👍 |
Nice work folks! 🚀 🎉 And I don't have too strong of an opinion, but I'd recommend that we leave vex-dialog under @bbatliner's username for now. If that becomes an issue or confusing, we can adjust. |
Is the beta on npmjs.org? There are so many hits for https://www.npmjs.com/search?q=vex+ There is: vex, vex-js, vex2, and vex-nojquery, among others. Could some of these be hidden or updated with deprecation notices or links to the main "vex 3" project after the release is final? I realize that the maintainer pool doesn't control /all/ the vex results, but some of these can possibly be changed. An exciting milestone! |
I believe those are all different projects. This project is vex-js on npm 👍 |
vex is something else. Unfortunate that this project couldn't use that name on npm. vex-js, as @geekjuice said, is this project. vex2 and vex-nojquery (along with vex2-dialog) were published by me (earlier versions of my PR). I've deprecated them all using Once vex 3 has been out for some time, I think it would be safe to unpublish my old versions. |
Guys I may have found a bug. Method afterOpen used to receive the main content object as the first arg, and vex options in the 2nd arg. In the beta afterOpen is not receiving any args. I guess I was expecting something like this... diff --git a/src/vex.js b/src/vex.js
index 47a2b0f..521568e 100644
--- a/src/vex.js
+++ b/src/vex.js
@@ -223,7 +223,7 @@ var vex = {
// Call after open callback
if (options.afterOpen) {
- options.afterOpen.call(vexInstance)
+ options.afterOpen.call(vexInstance,contentEl,options)
}
// Apply styling to the body |
Thanks for trying out the beta! The This means you can do the following to access vex.dialog.alert({
message: 'Hello, world!',
afterOpen: function () {
console.log(this); // the vex instance object
console.log(this.contentEl); // contentEl is a property of the instance
console.log(this.options); // so are the options you passed in!
}
}); |
OK got it. I had noticed I could do that before I submitted my note, but it seemed a bit too presumptuous about the internals. |
Brendan I'm using the 3.0 beta from npmjs.org and it seems that beforeClose is not being called with "this" being set, can you confirm? |
@ericlenio I think I found the bug you're talking about: https://github.com/bbatliner/vex-dialog/blob/335146007748426330c0b6fc2d9c9ca9e42b2e03/src/vex.dialog.js#L88. The |
@bbatliner Just wanted to check in to see how you feel about taking the current iteration out of beta. Seems like the only blocker was the file structure for cdnjs, but that was resolved a while back. If things look good in your opinion, I'll rebuild the docs and 🚀 . Thanks for being patient in this process since I wasn't as active I wanted to have been recently 😞 |
Yup, sorry I've been real busy getting back to school. I did some work tonight and we should be good to go 🚀 👍 💥 Having the beta out really helped :) Lots of good feedback from users already. |
Ah, hold that thought! The quick fix I said I'd commit "today" I never did. Shouldn't be too hard to fix! mb |
Alrighty, we are go for launch! 🎆 |
👍 I'll create a PR to bump the version out of beta and have that published later today. Thanks again for all of this! |
@adamschwartz here is a PR to merge my
vex2
library back intovex
as a major version release.I had to copy my changes from
vex2
back into my fork ofvex
, in order to make the PR, and lost the commit history - if you're interested in seeing the gritty details of how these changes came to life, you can check out vex2.For a list of breaking changes, see
UPGRADING.md
in the root of the project.In summary:
vex.dialog
got split off and rewritten as a plugin, which I maintain here and use in the docs.My biggest question is if my documentation changes are compatible with the HubSpot vex docs at http://github.hubspot.com/vex. Look at the changes I made and let me know!
Thanks!