Commit Graph

58 Commits

Author SHA1 Message Date
jade
ad1d854f43 rework tests to use displayElement, remove DOM clearing per test 2025-01-10 01:02:58 -07:00
github-actions[bot]
ccded6a6b8 chore(release): version packages 2025-01-07 18:26:56 +00:00
Josh de Leeuw
2ddc120bed
Merge pull request #3385 from jspsych/add-citation-module
Generate citation strings from citation.cff file as part of build process
2024-12-18 17:36:02 -05:00
Cherrie Chang
a28ca046c1 localize prettier to apply only to lines 2024-12-06 15:08:23 -05:00
Cherrie Chang
b63d8b6041 fix double quotes in plugin src to single quotes 2024-12-06 15:04:34 -05:00
github-actions[bot]
12180bb1ce chore(release): version packages 2024-11-21 12:08:38 +00:00
jade
137317878e add missing data field to audio-button-response 2024-11-21 02:47:43 -05:00
Cherrie Chang
575346846c update plugins index.ts 2024-11-01 17:45:19 -04:00
github-actions[bot]
39215339c5 chore(release): version packages 2024-07-17 23:08:32 +00:00
Josh de Leeuw
e374226e32
Merge pull request #3348 from vzhang03/audio-player
Fixed negative rt bug in audio-button and audio-slider plugin.
2024-07-17 19:04:54 -04:00
Bankminer78
a84ca70ab1 Fixed negative rt bug by making recording startTime with AudioContext 2024-07-17 10:41:53 -04:00
github-actions[bot]
e2f7e91844 chore(release): version packages 2024-07-16 19:24:38 +00:00
Bankminer78
7db7095a63 Changed AudioPlayer to handle WebAudio API source nodes; added tests for enable_button_after for audio_button_response. 2024-07-16 11:29:04 -04:00
Josh de Leeuw
dc3bf37b64 fix merge error, remove console logs 2024-07-15 17:01:27 -04:00
Josh de Leeuw
23b114eb8c Merge branch 'v8' into audio-player 2024-07-15 16:53:54 -04:00
Bankminer78
f5e3aff082 Removed .only addition from test 2024-07-15 14:09:04 -04:00
Bankminer78
e2a9e6b33e Changed AudioPlayer to implement interface; fixed build error; rewrote plugins using AudioPlayer and added tests; changed test-utils' clickTarget to respect disabled forms 2024-07-15 13:47:23 -04:00
Josh de Leeuw
d520b70fbf remove now unnecessary timeout clears and display clears 2024-07-11 18:06:30 -04:00
vzhang03
485f1c406b Fixing links and finished plugin-audio-response-button 2024-06-13 14:20:22 -04:00
Josh de Leeuw
a85999585a Merge pull request #3300 from jspsych/changeset-release/main
Version Packages

(rebased-with-history from commit 7d41078e9d)
2024-06-07 22:49:07 +02:00
Josh de Leeuw
e778028d0b Merge pull request #3298 from thtTNT/main
Add parameter "enable_button_after" to all "-button-response" plugins

(rebased-with-history from commit 87d2a8e0ab)
2024-06-07 22:49:07 +02:00
bjoluc
9042e8553f Merge pull request #3126 from jspsych/changeset-release/main
Version Packages

(rebased-with-history from commit e94e6a79f0)
2024-06-07 22:49:07 +02:00
github-actions[bot]
e44dca7cf3 chore(release): version packages 2024-05-20 16:45:37 +00:00
Haotian Tu
a4088529cf Add parameter "enable_button_after" to all "-button-response" plugins (#3289) 2024-05-20 23:07:14 +08:00
github-actions[bot]
f765795d75 chore(release): version packages 2023-11-10 21:01:41 +00:00
Josh de Leeuw
d7f3040d51 fix copy/paste error of div name 2023-10-18 15:45:06 -04:00
Josh de Leeuw
808e835306 use clearer error message when rows and columns both null 2023-10-18 15:05:15 -04:00
Josh de Leeuw
11e0103678 button_rows -> grid_rows; button_cols -> grid_columns 2023-10-18 15:02:41 -04:00
Josh de Leeuw
ed99076c3c implements modifications in all button response plugins 2023-10-18 15:00:00 -04:00
bjoluc
bcf2642b89 Fix simulate_visual in audio-button-response plugin 2023-09-05 11:00:15 +02:00
bjoluc
5f3b0f37f8 Fix button container id in audio-button-response plugin 2023-09-05 10:43:59 +02:00
bjoluc
75e961983d Simplify audio-button-response plugin DOM structure and make button_html a function parameter 2023-09-05 10:25:06 +02:00
Josh de Leeuw
4bf8f6f75c update citations across all readme 2023-05-11 09:44:23 -04:00
github-actions[bot]
c2cc94db81 chore(release): version packages 2022-09-20 16:56:51 +00:00
jadeddelta
12956b3cc1 added readme.md for every package + changeset 2022-09-20 12:18:15 -04:00
github-actions[bot]
f1fa90eb2c chore(release): version packages 2022-05-19 13:10:19 +00:00
Josh de Leeuw
a6d5851a6b
Merge pull request #2363 from jspsych/update-peer-depend
Update the peer dependencies in package.json
2021-11-30 17:17:54 -05:00
Josh de Leeuw
ac9cbe3796 update peer dependencies for 7.1.0 2021-11-30 13:06:37 -05:00
github-actions[bot]
8f2eee87d0 chore(release): version packages 2021-11-29 20:50:45 +00:00
Josh de Leeuw
522aa2cdbf
Adding a simulation mode (#2287)
Implements simulation mode in the core library, supporting API features, and plugin support in most plugins.
2021-11-23 15:12:30 -05:00
bjoluc
85a69d28bc Consistently use arrow functions in plugins
to avoid masking of `this`
2021-10-07 22:53:20 +02:00
github-actions[bot]
6840b932ad chore(release): version packages 2021-10-01 22:45:10 +00:00
bjoluc
2c392116ff Update homepage field in package.json files 2021-10-01 20:15:43 +02:00
bjoluc
8b279d1dbf Add directory to repository field in package.json files 2021-10-01 19:32:43 +02:00
bjoluc
37b85f953c
Setup changesets (#2066)
* Setup changesets and the changesets GH action
* Lower package versions so changesets can bump them
* Add changesets for all changes on the `modularization` branch

Co-authored-by: Josh de Leeuw <josh.deleeuw@gmail.com>
Co-authored-by: Becky Gilbert <beckyannegilbert@gmail.com>
2021-09-30 21:39:25 +02:00
bjoluc
ff2827d8c9 Move test utility functions into @jspsych/test-utils 2021-09-28 20:04:19 +02:00
bjoluc
7073cfb245 Add explicit baseUrl option to tsconfigs 2021-09-14 21:31:44 +02:00
Josh de Leeuw
f37f64ac61
Rounds all duration measurements to the nearest INT (#2129)
Rounds all duration measurements to the nearest INT
2021-09-10 09:55:35 -04:00
Josh de Leeuw
2802430999
Generalize the on_load event so that plugins with async loads can trigger event (#2130)
Create optional `on_load: () => void` callback from `trial()` method and implement early-stage promise handling on timeline.
2021-09-09 14:40:06 -04:00
Becky Gilbert
db754538b7
Convert plugins to classes and update examples (#2078)
* modularize plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins and example files, make info static in plugin classes

* add preload flag to plugin info, fix a few parameterType values

* change preload flags in plugin info from audio/image/video strings to boolean

* convert more plugins and example files

* convert more plugins/examples, sync with webgazer branch plugins/examples (not working on this branch)

* remove preload flag from info, change to ParameterType, change to "ALL_KEYS"/"NO_KEYS", change KEY type to KEYS for array params

* remove descriptions from plugin info, fix some ALL_KEYS/NO_KEYS errors

* remove descriptions and add pretty names to plugin info

* remove/edit comments re ALL_KEYS/NO_KEYS and TS errors

* fix some preload plugin errors and convert example file (plugin still not working due to getAutoPreloadList)

* convert RDK plugin and example file

* convert preload plugin and example, add JsPsych getTimelineDescription method for auto-preloading (still not working for audio due to getAudioBuffer

* fix jsPsych getTimelineDescription method so that it does recursive search

* add image and video preloading to plugin examples

* Merge branch 'modularization' into modularization-plugins

* add tests for reconstruction

* fix timeline array getter method: add private timelineDescription var, set to timeline array in run(), rename getTimelineDescription to getTimeline

* changes in response to PR review: fix JsDoc comments, fix array: true in param info, change HTML string param types, add JsDoc author/file/see docs for all plugin classes, switch to @ts-expect-error. Thanks @bjoluc!

* fix JsDoc comments for plugin classes and preload trials parameter

* change preload type to boolean in ParameterInfo interface, and add `preload: false` to virtual-chinrest item_path image parameter

* All my tests except for preload plugin (will do that tomorrow)

* minor fixes to reconstruction tests

* Update preload plugin tests

* Finish test conversion

* switch to arrow functions to fix this keyword errors in plugins, add audio preloading into plugin example files, fix typos

* convert non-plugin example files (WIP, not tested)

* Fix allow_held_keys -> allow_held_key parameter in virtual-chinrest plugin

* Fix `keyboardListener` type in serial-reaction-time plugin

* type fixes for RDK, simplifying `correctOrNot()` function

* fixed ["ALL_KEYS"] => "ALL_KEYS" for iat plugins and tests

* Build jspsych packages before everything else

Dependent builds were previously failing due to missing type definitions

* Remove console.log from html-keyboard-response tests

I think I accidentially committed it.

* fix the delayed start to animation bug (#1885)

* round all RTs to nearest int (#2108)

* fixes and tests #1900 - IAT parameter problems

* finish converting/testing example files, add init settings, add audio preloading, fix errors

* fix progress-bar timeline to demo an example where auto-updating the progress bar works well

* Revert "round all RTs to nearest int (#2108)"

This reverts commit f53145d2e3.

* change how delayed timeline variables are implemented

* use static for generate_stimulus method so that it can be called on the vsl-grid-scene class

* fix external-html plugin and example (switch to arrow function for proper this context, fix incorrect parameter name)

* remove outdated TO DO comments

Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Josh de Leeuw <josh.deleeuw@gmail.com>
2021-09-08 09:44:53 -04:00