Releases: jspsych/jsPsych
@jspsych/[email protected]
Patch Changes
-
#3615
2ee865dbe93d8d81d41d1287e3eed6dd106ec970Thanks @Jolg42! - fix images encoding in dist zip -
#3624
5241a2335b8fc9038f9c23c8152bec548ef43cb7Thanks @becky-gilbert! - FixupdatePluginVersionstask so that plugin versions are automatically updated on the plugin documentation pages.
@jspsych/[email protected]
Patch Changes
- #3556
d13767cac84cb7e6931a12db22e7edeb8ba1132fThanks @jadeddelta! -widthandheightdefault parameters are set tonullas opposed to an empty string to properly reflect their types
@jspsych/[email protected]
Patch Changes
- #3556
d13767cac84cb7e6931a12db22e7edeb8ba1132fThanks @jadeddelta! -widthandheightdefault parameters are set tonullas opposed to an empty string to properly reflect their types
@jspsych/[email protected]
Patch Changes
- #3556
d13767cac84cb7e6931a12db22e7edeb8ba1132fThanks @jadeddelta! -widthandheightdefault parameters are set tonullas opposed to an empty string to properly reflect their types
@jspsych/[email protected]
Major Changes
-
#3619
a89271999c5b3a15b76540109207d00a91d89a4cThanks @jodeleeuw! - This release improves the appearance ofsurveytrials on mobile devices. It removes the custom CSS classes that were used in previously because they conflicted with SurveyJS's built-in mobile/responsive styling. As a result, this plugin version no longer uses the following CSS classes (all specific to thesurveyplugin): "jspsych-body", "jspsych-body-container", "jspsych-question-content", "jspsych-question-root", "jspsych-page", "jspsych-footer","jspsych-nav-complete", "jspsych-row-multiple". If your code references these classes, you should switch to the corresponding SurveyJS classes when upgrading to this plugin version.This adds a new
min_widthplugin parameter that can be used to minimum width of the survey container. This is applied as a CSSmin-widthproperty to the survey container element.This release also updates the SurveyJS version from 2.2.0 to 2.3.12. See the SurveyJS release notes and list of breaking changes for complete information. This update includes some bug fixes and improvements to SurveyJS that, while mostly minor, could change the appearance and functionality of existing jsPsych
surveytrials in unexpected ways. It also includes major (breaking) changes to the SurveyJS form library API that could affect users who use the API. Please test your experiments carefully when updating this plugin, and consult the SurveyJS release notes and other documentation for specifics.- Some new SurveyJS features:
- Comment fields for individual choice options. For single- and multi-select questions (Checkboxes, Radio Button Group, and Dropdown), you can configure a comment field to appear when that choice is selected to allow the participant to provide additional information.
- Checkbox matrix (table) question. This allows participants to select multiple options per matrix/table row, rather than only being able to respond with a single option (radio button).
- New API event for intercepting or canceling expression evaluation.
- Slider and Range Slider question types can now be used as cell editors in Multi-Select and Dynamic Matrices (tables).
- Exclusive columns in checkbox matrix questions. You can set any of the response columns in a multi-select matrix/table question to be an exclusive column. When an exclusive column is selected, all other checkboxes in the same row are automatically deselected. This is useful for options like "None", "Refuse to answer", or "Don't know".
- Better control over scale labels and tooltip visibility in Slider and Range Slider questions:
- When using custom labels, you can now show both the label and its corresponding value.
- Slider and Range Slider tooltips can be set to be always visible instead of just on hover or focus.
- Nested content within choice options. You can now embed conditional questions/panels inside Checkboxes and Radio Button Group options for follow-up questions.
- Some new SurveyJS features:
@jspsych/[email protected]
Minor Changes
- #3563
c902be3887c681e72b95824148a8d9c75efbcfc4Thanks @farhat60! - CSS selector that queries the button to disable it was trying to get a class. Now it looks for the correct id and disables the button.
@jspsych/[email protected]
Patch Changes
- #3570
8d6c03ec3da9b17b9d6582641b0d488e5198ff2dThanks @jadeddelta! - update rollup for security fix
[email protected]
Patch Changes
- #3495
1f535826a296556252d5c0c8da5cb6aaa8fec656Thanks @jadeddelta! - add a defaultmimeTypeof"video/webm" toinitializeCameraRecorder()`
@jspsych/[email protected]
Major Changes
-
#3554
c5ccbd35786c9d9f92d3f3806d6d3900e7b6f8abThanks @becky-gilbert! - This release updates the SurveyJS version from 1.9.138 to 2.2.0. See the SurveyJS release notes and list of breaking changes for complete information. This update includes some bug fixes and improvements to SurveyJS that, while mostly minor, could change the appearance and functionality of existing jsPsychsurveytrials in unexpected ways. It also includes major (breaking) changes to the SurveyJS form library API that could affect users. Please test your experiments carefully when updating this plugin, and consult the SurveyJS release notes and other documentation for specifics.- New SurveyJS features:
- New slider and range slider question types.
- Support for recursive question numbering.
- In dynamic panels, the new
templateQuestionTitleWidthproperty allows you to align question titles and input fields. - In dropdown and tag box questions, you can now allow user-defined choice options.
- New loop and merge feature allows you to repeat a group of questions and combine the responses into one data object. It can be used to present a fixed set of questions, or dynamically repeat questions in response to the participant's responses.
- New
round()andtrunc()functions that can be used for calculations in expressions. - The
dateDiff()function now includes hours and minutes. - In checkbox questions, you can create a custom exclusive option that clears all other selected choices in the same question when selected.
- Breaking changes that affect plugin users:
- Survey element titles no longer use HTML heading tags (
<h1>-<h6>). You may need to make changes if you use these tags as selectors for custom code/CSS. - Question numbering is disabled by default. If you use question numbering, you may need to add
showQuestionNumbers: trueto your top-level survey JSON, orsurvey.showQuestionNumbers = true;to your survey function. - The default logo sizes in the survey header have changed from 200 px H x 300 px W, to 40 px H x "auto" W (preserving original aspect ratio).
- When multiple choice and checkbox items are presented in multiple columns, they are now laid out column-by-column instead of row-by-row.
- In image picker questions, the images were previously capped in size but now fill the available space. You can set an upper limit on the image height/width with the
maxImageWidthandmaxImageHeightparameters. - There have been a number of form library API members (properties, methods, events) that have been deprecated or removed.
- Survey element titles no longer use HTML heading tags (
- Developer-facing changes:
- SurveyJS UI package changed from survey-knockout-ui (removed in survey-core v2) to survey-js-ui (i.e. the Vanilla JS option).
- SurveyJS v1 -> v2 code migration changes.
- Hides a rollup build warning due to the use of top-level 'this' by SurveyJS.
- Adds a
resizeObservermock to fix broken tests caused by SurveyJS's dependence onresizeObserver. - Creates a new survey container div on the display element to render into, to fix a rendering bug introduced by the SurveyJS update.
- Other plugin changes:
- Adds a minified version of the plugin's CSS file,
survey.min.css, and loads it in the plugin example files. - In the docs and example files, (1) updates the
button_htmlparameter value from a string to a function (for*-button-responsev2 migration), (2) removesshowQuestionNumbers: false, as that is now the default. - Adds a new "slider_scale.html" example to the plugin's examples folder. Thanks @Max-Lovell!
- Adds a minified version of the plugin's CSS file,
- New SurveyJS features:
@jspsych/[email protected]
Minor Changes
- #3561
a25c47256c61a5fea67acf4a1fdf29024fe1ab21Thanks @becky-gilbert! - Add the minified version of the survey plugin CSS file,survey.min.css, to the dist archive.