diff --git a/.changeset/rare-dolphins-approve.md b/.changeset/rare-dolphins-approve.md new file mode 100644 index 00000000..b8657b85 --- /dev/null +++ b/.changeset/rare-dolphins-approve.md @@ -0,0 +1,5 @@ +--- +"@jspsych-contrib/plugin-corsi-blocks": major +--- + +Initial release of Corsi block plugin. This plugin can show a configurable display of blocks, highlight them in a specified sequence, and record a sequence of clicks by the user. diff --git a/README.md b/README.md index 80bc8aa6..fc6916ea 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Plugin/Extension | Contributor | Description ----------- | ----------- | ----------- [audio-multi-response](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-audio-multi-response/README.md) | [Adam Richie-Halford](https://github.com/richford) | This plugin collects responses to an audio file using both button clicks and key presses. [audio-swipe-response](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-audio-swipe-response/README.md) | [Adam Richie-Halford](https://github.com/richford) | This plugin collects responses to an audio file using swipe gestures and keyboard responses. +[corsi-blocks](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-corsi-blocks/README.md) | [Josh de Leeuw](https://github.com/jodeleeuw) | This plugin displays a configurable Corsi blocks task and records a series of click responses. [html-multi-response](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-html-multi-response/README.md) | [Adam Richie-Halford](https://github.com/richford) | This plugin collects responses to an arbitrary HTML string using both button clicks and key presses. [html-swipe-response](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-html-swipe-response/README.md) | [Adam Richie-Halford](https://github.com/richford) | This plugin collects responses to an arbitrary HTML string using swipe gestures and keyboard responses. [html-vas-response](https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-html-vas-response/README.md) | [Isaac Kinley](https://github.com/kinleyid) | This plugin collects responses to an arbitrary HTML string using a point-and-click visual analogue scale. diff --git a/package-lock.json b/package-lock.json index 407345e2..3504d017 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2629,6 +2629,10 @@ "resolved": "packages/plugin-copying-task", "link": true }, + "node_modules/@jspsych-contrib/plugin-corsi-blocks": { + "resolved": "packages/plugin-corsi-blocks", + "link": true + }, "node_modules/@jspsych-contrib/plugin-html-multi-response": { "resolved": "packages/plugin-html-multi-response", "link": true @@ -10184,9 +10188,10 @@ } }, "node_modules/jspsych": { - "version": "7.3.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/jspsych/-/jspsych-7.3.2.tgz", + "integrity": "sha512-pBLY3sHz13Q2TEIDz3uhDuitGXvH7eqwiHG+5GmoJyYCwnBdkv+tVXvJV0OAKMjb0oDelo7Ct2/dOFjX5sF/OQ==", "dev": true, - "license": "MIT", "dependencies": { "auto-bind": "^4.0.0", "random-words": "^1.1.1", @@ -15162,6 +15167,19 @@ "jspsych": "^7.3.0" } }, + "packages/plugin-corsi-blocks": { + "name": "@jspsych-contrib/plugin-corsi-blocks", + "version": "0.1.0", + "license": "MIT", + "devDependencies": { + "@jspsych/config": "^1.0.0", + "@jspsych/test-utils": "^1.0.0", + "jspsych": "^7.3.2" + }, + "peerDependencies": { + "jspsych": ">=7.3.2" + } + }, "packages/plugin-html-multi-response": { "name": "@jspsych-contrib/plugin-html-multi-response", "version": "1.0.2", @@ -17101,6 +17119,14 @@ "jspsych": "^7.3.0" } }, + "@jspsych-contrib/plugin-corsi-blocks": { + "version": "file:packages/plugin-corsi-blocks", + "requires": { + "@jspsych/config": "^1.0.0", + "@jspsych/test-utils": "^1.0.0", + "jspsych": "^7.3.2" + } + }, "@jspsych-contrib/plugin-html-multi-response": { "version": "file:packages/plugin-html-multi-response", "requires": { @@ -22260,7 +22286,9 @@ } }, "jspsych": { - "version": "7.3.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/jspsych/-/jspsych-7.3.2.tgz", + "integrity": "sha512-pBLY3sHz13Q2TEIDz3uhDuitGXvH7eqwiHG+5GmoJyYCwnBdkv+tVXvJV0OAKMjb0oDelo7Ct2/dOFjX5sF/OQ==", "dev": true, "requires": { "auto-bind": "^4.0.0", diff --git a/packages/plugin-corsi-blocks/README.md b/packages/plugin-corsi-blocks/README.md new file mode 100644 index 00000000..222d7baa --- /dev/null +++ b/packages/plugin-corsi-blocks/README.md @@ -0,0 +1,37 @@ +# corsi-blocks + +## Overview + +This plugin implements the Corsi block tapping task. It has two modes: a display mode and an input mode. In the display mode, the participant is shown a sequence of blocks. In the input mode, the participant is shown a sequence of blocks and must tap the blocks in the same order. Feedback can be provided after each responses. The number and arrangement of the blocks can be customized. + +## Loading + +### In browser + +```js + + + + +
+ +