Update the version of SurveyJS in the survey plugin (to be able to have slider scales)
SurveyJS version 2.1.0 includes quite a critical feature for many of us; slider (analog scales) scales.
The survey page says the current version is 1.9.138, so could it be possible to update that to be able to fully utilize its new features?
(tagging @becky-gilbert as I think you were involved in the updating of that plugin :)
Thanks for tagging me! I've been meaning to update this plugin and this is a helpful nudge to get me to do it 😀 I should be able to work on it this week.
We've got a fairly critical need for the new version as well. Thanks for working on this!
(Actually, the sliders just made "officially" their way into surveyJS yesterday 🚀 )
@becky-gilbert I was wondering if I could help with anything? Am I correct in understanding that updating the dependency would "only" require changing the version here:
https://github.com/jspsych/jsPsych/blob/861cd1e646ccc03b1b3b83d739b2ac16cf607598/packages/plugin-survey/package.json#L52-L55
If so, I can open a PR ☺
Hi @DominiqueMakowski and @Shotgunosine, unfortunately one of the breaking changes in the SurveyJS core v1 -> v2 change is that the knockout UI option that we use is no longer available (see here). I think we can just swap it out for the vanilla JS version, but there might be some other breaking changes in the plugin that will have to be fixed. I'm trying this now and will keep you posted.
Update: updating SurveyJS and switching to the vanilla JS UI package was pretty straight forward. The update did break the tests, which I'm fixing now.
This PR is almost done! https://github.com/jspsych/jsPsych/pull/3554
If anyone wants to help, feel free to look at the remaining to-do items in the PR description.
You can also checkout the update-surveyjs-version branch in this repo and try creating a slider example. This new version of the jsPsych plugin uses their "vanilla JS" option, you'll want to select the JS version whenever you're referencing the SurveyJS examples (click the little JS icon):
Sorry @becky-gilbert I thought adding the example would be straightforward but I forked JsPsych and tried but I'm afraid my lack of js knowledge and how to build stuff using npm prevents me from achieving anything -_- Happy to help test the update and check the documentation once it's loadable via unpkg like the other modules (is there a way to upload WIP or in-beta JsPsych modules on unpkg?)
No problem at all, and thanks for trying! Totally understand the barriers of the npm build process :confused:
is there a way to upload WIP or in-beta JsPsych modules on unpkg?
Not that I know of. I wish there was. Once it gets released on npm/unpkg, I think it becomes an 'official' release.
@jspsych/core do you know of any options for sharing WIP/beta package versions for people who aren't set up to build locally, i.e. via a dist archive or unpkg?
@jspsych/core do you know of any options for sharing WIP/beta package versions for people who aren't set up to build locally, i.e. via a dist archive or unpkg?
The simplest approach I can think of is just to generate the dist locally and upload the index.browser.js file to a shared location.