diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index cecb5fb0..0874fcef 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -17,6 +17,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ + ref: ${{ github.ref }} - run: npm ci - run: npm install - run: npm run build diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b42037e..d57ae783 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,47 @@ # CHANGELOG +## v4.43.0 + +__Tangerine Radio Blocks__ + +The `tangy-radio-blocks` element is a single-select input that shows a set of `tangy-radio-block` options. Each option has a label, image, and border that identifies the option. The set of `tangy-radio-block` options appears in either a vertical or horizontal list based on the `columns` attribute. + +This update adds a `sound` attribute to `tangy-radio-block` that takes a path to an audio file. When the image in the option is clicked, the audio will play. + +```html + + + + + + +``` + +__Tangerine Prompt__ + +The new `tangy-prompt-box` input type helps form designers create content sets that interacts with the user through a set of auto-playing sound files. The prompt in the [tangy-radio-blocks-lists demo](./demo/tangy-radio-blocks-lists.html) reads some instructions and then prompts the user by playing the audio associated with the options in a `tangy-radio-blocks` input. This provides a tool for the user to build a self administered assessment. + +The `tangy-prompt-box` input adds two attributes `playOnOpen` which takes a list of option values. When set, the options in the attribute list will play when the input is shown. Also, the attribute `prompt-for` can be set on one or more options with the value of the name of a `tangy-radio-blocks` input. When clicked, the prompt will play it's own `sound`, then loop through the `sound` attributes in the `tangy-radio-blocks`. It will also change the border color to provide both an audio and visual cue. + +Review the example code below. When the `tangy-form-item` opens the prompt box with play the audio for "instructions" and "help". Then, because of the `prompt-for` attribute is set to `moving_windows_comp_02`, it will play sound files in all of the options in the `tangy-radio-blocks` input. If the `help` option in the `tangy-prompt-box` is clicked, it will play it's own sound and then sounds in the prompt box. + +```html + + + + + + + + + + + + + + +``` + ## v4.42.0 - Add selected tangy-location labels to the input value for reporting outputs diff --git a/demo/assets/images/instructions.png b/demo/assets/images/instructions.png new file mode 100644 index 00000000..6d78c776 Binary files /dev/null and b/demo/assets/images/instructions.png differ diff --git a/demo/assets/sounds/letters_moving_windows_comp_02_What_does_Kofi_like_to_do.mp3 b/demo/assets/sounds/letters_moving_windows_comp_02_What_does_Kofi_like_to_do.mp3 new file mode 100644 index 00000000..6cc47bc6 Binary files /dev/null and b/demo/assets/sounds/letters_moving_windows_comp_02_What_does_Kofi_like_to_do.mp3 differ diff --git a/demo/assets/sounds/letters_moving_windows_comp_help.mp3 b/demo/assets/sounds/letters_moving_windows_comp_help.mp3 new file mode 100644 index 00000000..bbc3e47d Binary files /dev/null and b/demo/assets/sounds/letters_moving_windows_comp_help.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_Get_up_early.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_Get_up_early.mp3 new file mode 100644 index 00000000..49395707 Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_Get_up_early.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_Ran.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_Ran.mp3 new file mode 100644 index 00000000..a0483a37 Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_Ran.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_Run.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_Run.mp3 new file mode 100644 index 00000000..275d2909 Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_Run.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_Tie_her_shoes.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_Tie_her_shoes.mp3 new file mode 100644 index 00000000..c2568b2a Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_Tie_her_shoes.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_Visit_the_city.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_Visit_the_city.mp3 new file mode 100644 index 00000000..16449561 Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_Visit_the_city.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_all.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_all.mp3 new file mode 100644 index 00000000..f8623c4d Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_all.mp3 differ diff --git a/demo/assets/sounds/letters_silent_rcomp_01_what_did_Esse_do_for_the_first_time.mp3 b/demo/assets/sounds/letters_silent_rcomp_01_what_did_Esse_do_for_the_first_time.mp3 new file mode 100644 index 00000000..e2283c82 Binary files /dev/null and b/demo/assets/sounds/letters_silent_rcomp_01_what_did_Esse_do_for_the_first_time.mp3 differ diff --git a/demo/eftouch.html b/demo/eftouch.html index 8359ece9..0c73b32e 100644 --- a/demo/eftouch.html +++ b/demo/eftouch.html @@ -88,7 +88,7 @@ - + - + - + - + - + - + - +