Skip to content

Commit

Permalink
docs run + update verison based on package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeddelta committed Nov 3, 2024
1 parent 4aee11b commit 8f55785
Show file tree
Hide file tree
Showing 54 changed files with 6,882 additions and 1,054 deletions.
1 change: 0 additions & 1 deletion .changeset/thick-llamas-greet.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@jspsych-contrib/plugin-html-multi-response": major
"@jspsych-contrib/plugin-html-swipe-response": major
"@jspsych-contrib/plugin-nextcloud-filedrop": major
"@jspsych-contrib/plugin-self-paced-reading": major
"@jspsych-contrib/plugin-html-vas-response": major
"@jspsych-contrib/plugin-vsl-grid-scene": major
"@jspsych-contrib/plugin-survey-number": major
Expand Down
7,716 changes: 6,747 additions & 969 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/plugin-audio-multi-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin-audio-multi-response/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
import { AudioPlayer, AudioPlayerInterface } from "jspsych/src/modules/plugin-api/AudioPlayer";

import { version } from "../package.json";

const info = <const>{
name: "audio-multi-response",
version: "2.0.0",
version: version,
parameters: {
/** The HTML string to be displayed. */
stimulus: {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-audio-swipe-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-audio-swipe-response/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import interact from "interactjs";
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
import { AudioPlayerInterface } from "jspsych/src/modules/plugin-api/AudioPlayer";

import { version } from "../package.json";

const info = <const>{
name: "audio-swipe-response",
version: "2.0.0",
version: version,
parameters: {
/** The HTML string to be displayed. */
stimulus: {
Expand Down Expand Up @@ -106,6 +108,7 @@ type Info = typeof info;

/**
* **audio-swipe-response**
*
* jsPsych plugin for playing an audio file and getting a swipe response
* @author Adam Richie-Halford
* @see {@link https://www.jspsych.org/plugins/jspsych-audio-swipe-response/ audio-swipe-response plugin documentation on jspsych.org}
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-copying-task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-copying-task",
"devDependencies": {
"@jspsych/config": "^2.0.0",
"jspsych": "^7.3.0"
"@jspsych/config": "^3.0.1",
"jspsych": "^8.0.0"
}
}
10 changes: 3 additions & 7 deletions packages/plugin-copying-task/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/**
* jspsych-copying-task
* version 2.0.0
*
* Andre Sahakian (modified from Chris Jungerius (modified from Josh de Leeuw))
* **jspsych-copying-task**
*
* a jsPsych plugin for displaying a basic copying task.
*
* @author Andre Sahakian (modified from Chris Jungerius (modified from Josh de Leeuw))
* documentation: docs.jspsych.org
**/

*/
var jsPsychCopyingTask = (function (jspsych) {
"use strict";

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-corsi-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-corsi-blocks/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

// import { version } from "../package.json";
import { version } from "../package.json";

const info = <const>{
name: "corsi-blocks",
version: "2.0.0",
version: version,
parameters: {
/**
* An array of block indexes that specify the order of the sequence to be displayed. For example,
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-gamepad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
},
"homepage": "https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-gamepad",
"peerDependencies": {
"jspsych": ">=7.0.0"
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^2.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^7.0.0"
"jspsych": "^8.0.0"
}
}
5 changes: 3 additions & 2 deletions packages/plugin-gamepad/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";
import { GamepadModel, GamepadModels } from "./gamepad-model";

const info = <const>{
name: "gamepad",
version: "2.0.0",
version: version,
parameters: {
/** The size of the canvas element. */
canvas_size: {
Expand Down Expand Up @@ -99,7 +100,7 @@ type Info = typeof info;
/**
* **jspsych-gamepad**
*
* A jsPsych plugin for using gamepad in behavioral experiments.
* A jsPsych plugin for using a gamepad in behavioral experiments.
*
* @author Shaobin Jiang
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-html-choice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
}
Expand Down
7 changes: 5 additions & 2 deletions packages/plugin-html-choice/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";

const info = <const>{
name: "html-choice",
version: "2.0.0",
version: version,
parameters: {
/** The HTML string to be displayed */
html_array: {
Expand Down Expand Up @@ -67,7 +69,8 @@ const info = <const>{
type Info = typeof info;

/**
* html-choice
* **html-choice**
*
* jsPsych plugin for displaying a stimulus and getting a choice
* @author Younes Strittmatter
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-html-keyboard-response-raf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
},
"homepage": "https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-html-keyboard-response-raf",
"peerDependencies": {
"jspsych": ">=7.0.0"
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^2.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^7.0.0"
"jspsych": "^8.0.0"
}
}
6 changes: 4 additions & 2 deletions packages/plugin-html-keyboard-response-raf/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";

const info = <const>{
name: "html-keyboard-response-raf",
version: "2.0.0",
version: version,
parameters: {
/**
* The HTML string to be displayed.
Expand Down Expand Up @@ -53,7 +55,7 @@ const info = <const>{
default: true,
},
/**
* FPS for requestAnimationFrame
* Frames per second for requestAnimationFrame.
*/
fps: {
type: ParameterType.INT,
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-html-keyboard-slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
},
"homepage": "https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-html-keyboard-slider",
"peerDependencies": {
"jspsych": ">=7.0.0"
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^2.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^7.0.0"
"jspsych": "^8.0.0"
}
}
12 changes: 7 additions & 5 deletions packages/plugin-html-keyboard-slider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Need to trim params down in future

import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
//Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.ts(2732)//
//import { version } from '../package.json';

import { version } from "../package.json";

const info = <const>{
name: "html-keyboard-slider",
version: "1.0.0",
version: version,
parameters: {
// HTML Attributes
/**
Expand All @@ -32,7 +32,9 @@ const info = <const>{
default: 1,
},
/**
* For a more coninuous slider, set HTML Range input's step attribute to 'any', see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#examples. Step values above still apply to 'increase_keys' and 'decrease_keys'.
* For a more continuous slider, set HTML Range input's step attribute to 'any',
* see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#examples.
* Step values above still apply to `increase_keys` and `decrease_keys`.
*/
step_any: {
type: ParameterType.BOOL,
Expand Down Expand Up @@ -150,7 +152,7 @@ const info = <const>{
default: null,
},
/**
* Whether to display dividing lines between labels
* Whether or not to display dividing lines between labels
*/
label_dividers: {
type: ParameterType.BOOL,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-html-multi-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
}
Expand Down
7 changes: 5 additions & 2 deletions packages/plugin-html-multi-response/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";

const info = <const>{
name: "html-multi-response",
version: "2.0.0",
version: version,
parameters: {
/** The HTML string to be displayed */
stimulus: {
Expand Down Expand Up @@ -111,7 +113,8 @@ const info = <const>{
type Info = typeof info;

/**
* html-multi-response
* **html-multi-response**
*
* jsPsych plugin for displaying an HTML stimulus and getting a swipe or keyboard response
* @author Adam Richie-Halford
* @see {@link https://www.jspsych.org/plugins/jspsych-html-multi-response/ html-multi-response plugin documentation on jspsych.org}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-html-swipe-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/plugin-html-swipe-response/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import interact from "interactjs";
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";

const info = <const>{
name: "html-swipe-response",
version: "2.0.0",
version: version,
parameters: {
/** The HTML string to be displayed. */
stimulus: {
Expand Down Expand Up @@ -146,6 +148,7 @@ type Info = typeof info;

/**
* **html-swipe-response**
*
* jsPsych plugin for displaying a stimulus and getting a swipe response
* @author Adam Richie-Halford
* @see {@link https://www.jspsych.org/plugins/jspsych-html-swipe-response/ html-swipe-response plugin documentation on jspsych.org}
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-html-vas-response/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ var jsPsychHtmlVasResponse = (function (jspsych) {
},
};

/**
* **html-vas-response**
*
* jsPsych plugin for a visual analogue scale (VAS) response.
* @author Isaac Kinley
*/
class jsPsychHtmlVasResponsePlugin {
constructor(jsPsych) {
this.jsPsych = jsPsych;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-html-vas-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-html-vas-response",
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"jspsych": "^8.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-image-array-keyboard-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/plugin-image-array-keyboard-response/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";

import { version } from "../package.json";

const info = <const>{
name: "image-array-keyboard-response",
version: "2.0.0",
version: version,
parameters: {
/** The images to be displayed */
stimulus: {
Expand Down Expand Up @@ -85,7 +87,7 @@ type Info = typeof info;
* jsPsych plugin for displaying an image array and getting a keyboard response
*
* @author Younes Strittmatter
* @see {@link https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-image-array-keyboard-response/README.md image-array-keyboard-response plugin documentation on github.com}
* @see {@link https://github.com/jspsych/jspsych-contrib/blob/main/packages/plugin-image-array-keyboard-response image-array-keyboard-response plugin documentation on github.com}
*/
class ImageArrayKeyboardResponsePlugin implements JsPsychPlugin<Info> {
static info = info;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-multi-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jspsych": ">=8.0.0"
},
"devDependencies": {
"@jspsych/config": "^3.0.0",
"@jspsych/config": "^3.0.1",
"@jspsych/test-utils": "^1.0.0",
"jspsych": "^8.0.0"
}
Expand Down
Loading

0 comments on commit 8f55785

Please sign in to comment.