@pie-element/inline-dropdown 11.0.5-esm.1 → 11.0.5-next.20261012010413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/author.js +2 -0
- package/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/author/defaults.d.ts +187 -0
- package/dist/author/defaults.js +130 -0
- package/dist/author/index.d.ts +25 -0
- package/dist/author/index.js +91 -0
- package/dist/author/inline-dropdown-toolbar.d.ts +44 -0
- package/dist/author/inline-dropdown-toolbar.js +269 -0
- package/dist/author/main.d.ts +65 -0
- package/dist/author/main.js +363 -0
- package/dist/author/markupUtils.d.ts +4 -0
- package/dist/author/markupUtils.js +23 -0
- package/dist/author/response-area.d.ts +12 -0
- package/dist/author/response-area.js +32 -0
- package/dist/author/utils.d.ts +2 -0
- package/dist/author/utils.js +10 -0
- package/dist/browser/Close-V6zXg6OM.js +12945 -0
- package/dist/browser/Close-V6zXg6OM.js.map +1 -0
- package/dist/browser/PUA-tLuTiQ7---_oZ5q_A.js +4370 -0
- package/dist/browser/PUA-tLuTiQ7---_oZ5q_A.js.map +1 -0
- package/dist/browser/accents-BTUYmhn9-BvG-5D5U.js +1508 -0
- package/dist/browser/accents-BTUYmhn9-BvG-5D5U.js.map +1 -0
- package/dist/browser/accents-b-i-CngHZsLL-D9VyhQb6.js +2847 -0
- package/dist/browser/accents-b-i-CngHZsLL-D9VyhQb6.js.map +1 -0
- package/dist/browser/arabic-BzEHMVZD-Dynlj189.js +785 -0
- package/dist/browser/arabic-BzEHMVZD-Dynlj189.js.map +1 -0
- package/dist/browser/arrows-VjxlU-jv-DSm4SIYN.js +2655 -0
- package/dist/browser/arrows-VjxlU-jv-DSm4SIYN.js.map +1 -0
- package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/author/index.js +36618 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/braille-BeWC_Ruq-T-5kTNil.js +1287 -0
- package/dist/browser/braille-BeWC_Ruq-T-5kTNil.js.map +1 -0
- package/dist/browser/braille-d-Dk6J96GO--ZdfI9kr.js +1287 -0
- package/dist/browser/braille-d-Dk6J96GO--ZdfI9kr.js.map +1 -0
- package/dist/browser/calligraphic-Cew9cU3x-qfCrrm3u.js +323 -0
- package/dist/browser/calligraphic-Cew9cU3x-qfCrrm3u.js.map +1 -0
- package/dist/browser/cherokee-Cny3FYho-CbTYre7_.js +2029 -0
- package/dist/browser/cherokee-Cny3FYho-CbTYre7_.js.map +1 -0
- package/dist/browser/chtml-CbqemTOM-x0_YISTK.js +20329 -0
- package/dist/browser/chtml-CbqemTOM-x0_YISTK.js.map +1 -0
- package/dist/browser/controller/index.js +198 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/cyrillic-CfCDulXU-EvNL2rHi.js +5617 -0
- package/dist/browser/cyrillic-CfCDulXU-EvNL2rHi.js.map +1 -0
- package/dist/browser/cyrillic-ss-lU7bNGG9-jdxJx-EF.js +5606 -0
- package/dist/browser/cyrillic-ss-lU7bNGG9-jdxJx-EF.js.map +1 -0
- package/dist/browser/delivery/index.js +1307 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/devanagari-CDIz2h-r-FGcUsKu2.js +692 -0
- package/dist/browser/devanagari-CDIz2h-r-FGcUsKu2.js.map +1 -0
- package/dist/browser/dist-FMIRkZir.js +753 -0
- package/dist/browser/dist-FMIRkZir.js.map +1 -0
- package/dist/browser/double-struck-BpJEQk8y-CLqFtvAN.js +438 -0
- package/dist/browser/double-struck-BpJEQk8y-CLqFtvAN.js.map +1 -0
- package/dist/browser/editor-runtime/Close-C0bNS2Kx.js +12945 -0
- package/dist/browser/editor-runtime/Close-C0bNS2Kx.js.map +1 -0
- package/dist/browser/editor-runtime/PUA-tLuTiQ7---_oZ5q_A.js +4370 -0
- package/dist/browser/editor-runtime/PUA-tLuTiQ7---_oZ5q_A.js.map +1 -0
- package/dist/browser/editor-runtime/accents-BTUYmhn9-BvG-5D5U.js +1508 -0
- package/dist/browser/editor-runtime/accents-BTUYmhn9-BvG-5D5U.js.map +1 -0
- package/dist/browser/editor-runtime/accents-b-i-CngHZsLL-D9VyhQb6.js +2847 -0
- package/dist/browser/editor-runtime/accents-b-i-CngHZsLL-D9VyhQb6.js.map +1 -0
- package/dist/browser/editor-runtime/arabic-BzEHMVZD-Dynlj189.js +785 -0
- package/dist/browser/editor-runtime/arabic-BzEHMVZD-Dynlj189.js.map +1 -0
- package/dist/browser/editor-runtime/arrows-VjxlU-jv-DSm4SIYN.js +2655 -0
- package/dist/browser/editor-runtime/arrows-VjxlU-jv-DSm4SIYN.js.map +1 -0
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +20030 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/braille-BeWC_Ruq-T-5kTNil.js +1287 -0
- package/dist/browser/editor-runtime/braille-BeWC_Ruq-T-5kTNil.js.map +1 -0
- package/dist/browser/editor-runtime/braille-d-Dk6J96GO--ZdfI9kr.js +1287 -0
- package/dist/browser/editor-runtime/braille-d-Dk6J96GO--ZdfI9kr.js.map +1 -0
- package/dist/browser/editor-runtime/calligraphic-Cew9cU3x-qfCrrm3u.js +323 -0
- package/dist/browser/editor-runtime/calligraphic-Cew9cU3x-qfCrrm3u.js.map +1 -0
- package/dist/browser/editor-runtime/cherokee-Cny3FYho-CbTYre7_.js +2029 -0
- package/dist/browser/editor-runtime/cherokee-Cny3FYho-CbTYre7_.js.map +1 -0
- package/dist/browser/editor-runtime/chtml-CbqemTOM-x0_YISTK.js +20329 -0
- package/dist/browser/editor-runtime/chtml-CbqemTOM-x0_YISTK.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +198 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/cyrillic-CfCDulXU-EvNL2rHi.js +5617 -0
- package/dist/browser/editor-runtime/cyrillic-CfCDulXU-EvNL2rHi.js.map +1 -0
- package/dist/browser/editor-runtime/cyrillic-ss-lU7bNGG9-jdxJx-EF.js +5606 -0
- package/dist/browser/editor-runtime/cyrillic-ss-lU7bNGG9-jdxJx-EF.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +1307 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/browser/editor-runtime/devanagari-CDIz2h-r-FGcUsKu2.js +692 -0
- package/dist/browser/editor-runtime/devanagari-CDIz2h-r-FGcUsKu2.js.map +1 -0
- package/dist/browser/editor-runtime/dist-FMIRkZir.js +753 -0
- package/dist/browser/editor-runtime/dist-FMIRkZir.js.map +1 -0
- package/dist/browser/editor-runtime/double-struck-BpJEQk8y-CLqFtvAN.js +438 -0
- package/dist/browser/editor-runtime/double-struck-BpJEQk8y-CLqFtvAN.js.map +1 -0
- package/dist/browser/editor-runtime/fraktur-rLEq9DEH-BU0iR4xw.js +694 -0
- package/dist/browser/editor-runtime/fraktur-rLEq9DEH-BU0iR4xw.js.map +1 -0
- package/dist/browser/editor-runtime/greek-BlraJTyL-DAfjxxNh.js +9335 -0
- package/dist/browser/editor-runtime/greek-BlraJTyL-DAfjxxNh.js.map +1 -0
- package/dist/browser/editor-runtime/greek-ss-D-EN2PK0-CcyaecGS.js +6767 -0
- package/dist/browser/editor-runtime/greek-ss-D-EN2PK0-CcyaecGS.js.map +1 -0
- package/dist/browser/editor-runtime/hebrew-GiQZeybp-DqJrAkkB.js +3218 -0
- package/dist/browser/editor-runtime/hebrew-GiQZeybp-DqJrAkkB.js.map +1 -0
- package/dist/browser/editor-runtime/latin-b-BhEnC7R2-CQAVv0CI.js +3134 -0
- package/dist/browser/editor-runtime/latin-b-BhEnC7R2-CQAVv0CI.js.map +1 -0
- package/dist/browser/editor-runtime/latin-bi-DqiIKv3U-DM22wSUP.js +3637 -0
- package/dist/browser/editor-runtime/latin-bi-DqiIKv3U-DM22wSUP.js.map +1 -0
- package/dist/browser/editor-runtime/latin-i-B1xtwaE1-uBpJAGjo.js +3634 -0
- package/dist/browser/editor-runtime/latin-i-B1xtwaE1-uBpJAGjo.js.map +1 -0
- package/dist/browser/editor-runtime/latin-xfWFlLkD-CKElfDKc.js +3266 -0
- package/dist/browser/editor-runtime/latin-xfWFlLkD-CKElfDKc.js.map +1 -0
- package/dist/browser/editor-runtime/marrows-DD1NgMQi-BIBP-NrK.js +761 -0
- package/dist/browser/editor-runtime/marrows-DD1NgMQi-BIBP-NrK.js.map +1 -0
- package/dist/browser/editor-runtime/math-DpWn1mbG-B7Krt7Jk.js +2034 -0
- package/dist/browser/editor-runtime/math-DpWn1mbG-B7Krt7Jk.js.map +1 -0
- package/dist/browser/editor-runtime/mathjax-CptWnMbQ-BymmkoDr.js +36692 -0
- package/dist/browser/editor-runtime/mathjax-CptWnMbQ-BymmkoDr.js.map +1 -0
- package/dist/browser/editor-runtime/monospace-D116QD2a-C40p3Rv8.js +1112 -0
- package/dist/browser/editor-runtime/monospace-D116QD2a-C40p3Rv8.js.map +1 -0
- package/dist/browser/editor-runtime/monospace-ex-DcXpouKS-DkaktwPJ.js +6014 -0
- package/dist/browser/editor-runtime/monospace-ex-DcXpouKS-DkaktwPJ.js.map +1 -0
- package/dist/browser/editor-runtime/monospace-l-Ct5wkMDs-CuE7t5pv.js +3114 -0
- package/dist/browser/editor-runtime/monospace-l-Ct5wkMDs-CuE7t5pv.js.map +1 -0
- package/dist/browser/editor-runtime/mshapes-DCp86WSX-DX0WfJid.js +524 -0
- package/dist/browser/editor-runtime/mshapes-DCp86WSX-DX0WfJid.js.map +1 -0
- package/dist/browser/editor-runtime/phonetics-BwOCw2Y9-lJWnARqt.js +2496 -0
- package/dist/browser/editor-runtime/phonetics-BwOCw2Y9-lJWnARqt.js.map +1 -0
- package/dist/browser/editor-runtime/phonetics-ss-CRtMn02f-Cr32SJLL.js +2984 -0
- package/dist/browser/editor-runtime/phonetics-ss-CRtMn02f-Cr32SJLL.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-BYPZKlE9-DftjSdim.js +5246 -0
- package/dist/browser/editor-runtime/sans-serif-BYPZKlE9-DftjSdim.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-b-B0kRKiC--BsRQiyQP.js +3176 -0
- package/dist/browser/editor-runtime/sans-serif-b-B0kRKiC--BsRQiyQP.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-bi-DXWul6mu-D4NuD72A.js +3688 -0
- package/dist/browser/editor-runtime/sans-serif-bi-DXWul6mu-D4NuD72A.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-ex-Boux1kMP-BrL4RNcD.js +10033 -0
- package/dist/browser/editor-runtime/sans-serif-ex-Boux1kMP-BrL4RNcD.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-i-676RFaSO-BCRikTTw.js +3635 -0
- package/dist/browser/editor-runtime/sans-serif-i-676RFaSO-BCRikTTw.js.map +1 -0
- package/dist/browser/editor-runtime/sans-serif-r-DrN9xdZt-CN8omxfu.js +3159 -0
- package/dist/browser/editor-runtime/sans-serif-r-DrN9xdZt-CN8omxfu.js.map +1 -0
- package/dist/browser/editor-runtime/script-0ohehnXc-4G2PiBkk.js +649 -0
- package/dist/browser/editor-runtime/script-0ohehnXc-4G2PiBkk.js.map +1 -0
- package/dist/browser/editor-runtime/shapes-BG47NodJ-D3eH0HjT.js +1932 -0
- package/dist/browser/editor-runtime/shapes-BG47NodJ-D3eH0HjT.js.map +1 -0
- package/dist/browser/editor-runtime/speech-worker-CTpOB9m5-pwCKeQ9c.js +160 -0
- package/dist/browser/editor-runtime/speech-worker-CTpOB9m5-pwCKeQ9c.js.map +1 -0
- package/dist/browser/editor-runtime/symbols-BqnUxf_t-DJHA_nO7.js +1833 -0
- package/dist/browser/editor-runtime/symbols-BqnUxf_t-DJHA_nO7.js.map +1 -0
- package/dist/browser/editor-runtime/symbols-b-i-eg9k5hmF-Bn-dxZT_.js +1153 -0
- package/dist/browser/editor-runtime/symbols-b-i-eg9k5hmF-Bn-dxZT_.js.map +1 -0
- package/dist/browser/editor-runtime/variants-2LRNhOUP-BlL4NIVJ.js +231 -0
- package/dist/browser/editor-runtime/variants-2LRNhOUP-BlL4NIVJ.js.map +1 -0
- package/dist/browser/fraktur-rLEq9DEH-BU0iR4xw.js +694 -0
- package/dist/browser/fraktur-rLEq9DEH-BU0iR4xw.js.map +1 -0
- package/dist/browser/greek-BlraJTyL-DAfjxxNh.js +9335 -0
- package/dist/browser/greek-BlraJTyL-DAfjxxNh.js.map +1 -0
- package/dist/browser/greek-ss-D-EN2PK0-CcyaecGS.js +6767 -0
- package/dist/browser/greek-ss-D-EN2PK0-CcyaecGS.js.map +1 -0
- package/dist/browser/hebrew-GiQZeybp-DqJrAkkB.js +3218 -0
- package/dist/browser/hebrew-GiQZeybp-DqJrAkkB.js.map +1 -0
- package/dist/browser/latin-b-BhEnC7R2-CQAVv0CI.js +3134 -0
- package/dist/browser/latin-b-BhEnC7R2-CQAVv0CI.js.map +1 -0
- package/dist/browser/latin-bi-DqiIKv3U-DM22wSUP.js +3637 -0
- package/dist/browser/latin-bi-DqiIKv3U-DM22wSUP.js.map +1 -0
- package/dist/browser/latin-i-B1xtwaE1-uBpJAGjo.js +3634 -0
- package/dist/browser/latin-i-B1xtwaE1-uBpJAGjo.js.map +1 -0
- package/dist/browser/latin-xfWFlLkD-CKElfDKc.js +3266 -0
- package/dist/browser/latin-xfWFlLkD-CKElfDKc.js.map +1 -0
- package/dist/browser/marrows-DD1NgMQi-BIBP-NrK.js +761 -0
- package/dist/browser/marrows-DD1NgMQi-BIBP-NrK.js.map +1 -0
- package/dist/browser/math-DpWn1mbG-B7Krt7Jk.js +2034 -0
- package/dist/browser/math-DpWn1mbG-B7Krt7Jk.js.map +1 -0
- package/dist/browser/mathjax-CptWnMbQ-ncPHVakS.js +36692 -0
- package/dist/browser/mathjax-CptWnMbQ-ncPHVakS.js.map +1 -0
- package/dist/browser/monospace-D116QD2a-C40p3Rv8.js +1112 -0
- package/dist/browser/monospace-D116QD2a-C40p3Rv8.js.map +1 -0
- package/dist/browser/monospace-ex-DcXpouKS-DkaktwPJ.js +6014 -0
- package/dist/browser/monospace-ex-DcXpouKS-DkaktwPJ.js.map +1 -0
- package/dist/browser/monospace-l-Ct5wkMDs-CuE7t5pv.js +3114 -0
- package/dist/browser/monospace-l-Ct5wkMDs-CuE7t5pv.js.map +1 -0
- package/dist/browser/mshapes-DCp86WSX-DX0WfJid.js +524 -0
- package/dist/browser/mshapes-DCp86WSX-DX0WfJid.js.map +1 -0
- package/dist/browser/phonetics-BwOCw2Y9-lJWnARqt.js +2496 -0
- package/dist/browser/phonetics-BwOCw2Y9-lJWnARqt.js.map +1 -0
- package/dist/browser/phonetics-ss-CRtMn02f-Cr32SJLL.js +2984 -0
- package/dist/browser/phonetics-ss-CRtMn02f-Cr32SJLL.js.map +1 -0
- package/dist/browser/sans-serif-BYPZKlE9-DftjSdim.js +5246 -0
- package/dist/browser/sans-serif-BYPZKlE9-DftjSdim.js.map +1 -0
- package/dist/browser/sans-serif-b-B0kRKiC--BsRQiyQP.js +3176 -0
- package/dist/browser/sans-serif-b-B0kRKiC--BsRQiyQP.js.map +1 -0
- package/dist/browser/sans-serif-bi-DXWul6mu-D4NuD72A.js +3688 -0
- package/dist/browser/sans-serif-bi-DXWul6mu-D4NuD72A.js.map +1 -0
- package/dist/browser/sans-serif-ex-Boux1kMP-BrL4RNcD.js +10033 -0
- package/dist/browser/sans-serif-ex-Boux1kMP-BrL4RNcD.js.map +1 -0
- package/dist/browser/sans-serif-i-676RFaSO-BCRikTTw.js +3635 -0
- package/dist/browser/sans-serif-i-676RFaSO-BCRikTTw.js.map +1 -0
- package/dist/browser/sans-serif-r-DrN9xdZt-CN8omxfu.js +3159 -0
- package/dist/browser/sans-serif-r-DrN9xdZt-CN8omxfu.js.map +1 -0
- package/dist/browser/script-0ohehnXc-4G2PiBkk.js +649 -0
- package/dist/browser/script-0ohehnXc-4G2PiBkk.js.map +1 -0
- package/dist/browser/shapes-BG47NodJ-D3eH0HjT.js +1932 -0
- package/dist/browser/shapes-BG47NodJ-D3eH0HjT.js.map +1 -0
- package/dist/browser/speech-worker-CTpOB9m5-BIgcSm3A.js +160 -0
- package/dist/browser/speech-worker-CTpOB9m5-BIgcSm3A.js.map +1 -0
- package/dist/browser/symbols-BqnUxf_t-DJHA_nO7.js +1833 -0
- package/dist/browser/symbols-BqnUxf_t-DJHA_nO7.js.map +1 -0
- package/dist/browser/symbols-b-i-eg9k5hmF-Bn-dxZT_.js +1153 -0
- package/dist/browser/symbols-b-i-eg9k5hmF-Bn-dxZT_.js.map +1 -0
- package/dist/browser/variants-2LRNhOUP-BlL4NIVJ.js +231 -0
- package/dist/browser/variants-2LRNhOUP-BlL4NIVJ.js.map +1 -0
- package/dist/controller/defaults.d.ts +19 -0
- package/dist/controller/defaults.js +21 -0
- package/dist/controller/index.d.ts +95 -0
- package/dist/controller/index.js +126 -0
- package/dist/controller/utils.d.ts +2 -0
- package/dist/controller/utils.js +13 -0
- package/dist/delivery/__tests__/inline-dropdown-language.test.d.ts +1 -0
- package/dist/delivery/index.d.ts +14 -0
- package/dist/delivery/index.js +64 -0
- package/dist/delivery/inline-dropdown.d.ts +30 -0
- package/dist/delivery/inline-dropdown.js +111 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.iife.d.ts +6 -0
- package/dist/index.iife.js +185 -0
- package/dist/index.js +2 -0
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/dist/schemas/configuration.schema.json +414 -0
- package/dist/schemas/model.schema.json +453 -0
- package/dist/schemas/session.schema.json +43 -0
- package/dist/types.d.ts +164 -0
- package/package.json +96 -32
- package/CHANGELOG.json +0 -1082
- package/CHANGELOG.md +0 -3440
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -647
- package/configure/CHANGELOG.md +0 -3066
- package/configure/lib/defaults.js +0 -190
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -209
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/inline-dropdown-toolbar.js +0 -573
- package/configure/lib/inline-dropdown-toolbar.js.map +0 -1
- package/configure/lib/main.js +0 -753
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/markupUtils.js +0 -70
- package/configure/lib/markupUtils.js.map +0 -1
- package/configure/lib/response-area.js +0 -99
- package/configure/lib/response-area.js.map +0 -1
- package/configure/lib/utils.js +0 -33
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -22
- package/controller/CHANGELOG.json +0 -467
- package/controller/CHANGELOG.md +0 -2114
- package/controller/lib/defaults.js +0 -26
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -360
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/utils.js +0 -40
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -16
- package/docs/config-schema.json +0 -2854
- package/docs/config-schema.json.md +0 -2106
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -76
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -11
- package/docs/pie-schema.json +0 -1152
- package/docs/pie-schema.json.md +0 -814
- package/esm/configure.js +0 -1973
- package/esm/configure.js.map +0 -1
- package/esm/controller.js +0 -304
- package/esm/controller.js.map +0 -1
- package/esm/element.js +0 -278
- package/esm/element.js.map +0 -1
- package/lib/index.js +0 -130
- package/lib/index.js.map +0 -1
- package/lib/inline-dropdown.js +0 -248
- package/lib/inline-dropdown.js.map +0 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/inline-dropdown@11.0.5-next.20261012010413/dist/schemas/model.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config."
|
|
9
|
+
},
|
|
10
|
+
"element": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The html Element tag name: the key in the item config's `elements` map, e.g. \"multiple-choice\""
|
|
13
|
+
},
|
|
14
|
+
"accessibilityCatalogs": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "#/definitions/AccessibilityCatalog"
|
|
18
|
+
},
|
|
19
|
+
"description": "QTI-aligned accessibility catalogs whose cards dock to content nodes by `data-catalog-idref`"
|
|
20
|
+
},
|
|
21
|
+
"choices": {
|
|
22
|
+
"$ref": "#/definitions/Choices",
|
|
23
|
+
"description": "Object with all the available choices for each response area"
|
|
24
|
+
},
|
|
25
|
+
"alternateResponse": {
|
|
26
|
+
"$ref": "#/definitions/AlternateResponse",
|
|
27
|
+
"description": "Object that contains values that are right as well, besides the main one"
|
|
28
|
+
},
|
|
29
|
+
"alternateResponses": {
|
|
30
|
+
"$ref": "#/definitions/AlternateResponse",
|
|
31
|
+
"description": "Not read by this element: `alternateResponse` holds the alternate values"
|
|
32
|
+
},
|
|
33
|
+
"markup": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The markup for the pie-ui element: response areas are `{{index}}` placeholders"
|
|
36
|
+
},
|
|
37
|
+
"slateMarkup": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "The authoring editor's markup, with response areas as elements; the author derives `markup` from it"
|
|
40
|
+
},
|
|
41
|
+
"prompt": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The item stem for the question"
|
|
44
|
+
},
|
|
45
|
+
"promptEnabled": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Determines if prompt should show"
|
|
48
|
+
},
|
|
49
|
+
"lockChoiceOrder": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Indicates if the choices are presented in a fixed order"
|
|
52
|
+
},
|
|
53
|
+
"partialScoring": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Indicates if partialScoring is enabled"
|
|
56
|
+
},
|
|
57
|
+
"rationale": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Indicates correct answer rationale"
|
|
60
|
+
},
|
|
61
|
+
"scoringType": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"auto",
|
|
65
|
+
"rubric"
|
|
66
|
+
],
|
|
67
|
+
"description": "Not read by this element"
|
|
68
|
+
},
|
|
69
|
+
"studentInstructions": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Not read by this element"
|
|
72
|
+
},
|
|
73
|
+
"teacherInstructions": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Indicates teacher instructions"
|
|
76
|
+
},
|
|
77
|
+
"rationaleEnabled": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"description": "Indicates if Rationale are enabled"
|
|
80
|
+
},
|
|
81
|
+
"spellCheckEnabled": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"description": "Indicates if spellcheck is enabled for the author. Default value is true"
|
|
84
|
+
},
|
|
85
|
+
"choiceRationaleEnabled": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Indicates if Choice Level Rationales are enabled"
|
|
88
|
+
},
|
|
89
|
+
"studentInstructionsEnabled": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Not read by this element; default models include it"
|
|
92
|
+
},
|
|
93
|
+
"teacherInstructionsEnabled": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"description": "Indicates if Teacher Instructions are enabled"
|
|
96
|
+
},
|
|
97
|
+
"displayType": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Indicates display type for the container of the pie-ui element",
|
|
100
|
+
"default": "block"
|
|
101
|
+
},
|
|
102
|
+
"toolbarEditorPosition": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"bottom",
|
|
106
|
+
"top"
|
|
107
|
+
],
|
|
108
|
+
"description": "Indicates the editor's toolbar position which can be 'bottom' or 'top'",
|
|
109
|
+
"default": "bottom"
|
|
110
|
+
},
|
|
111
|
+
"rubricEnabled": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"description": "Indicates if Rubric is enabled"
|
|
114
|
+
},
|
|
115
|
+
"language": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "Indicates the language of the component Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX"
|
|
118
|
+
},
|
|
119
|
+
"extraCSSRules": {
|
|
120
|
+
"$ref": "#/definitions/ExtraCSSRules",
|
|
121
|
+
"description": "Host-supplied CSS scoped to the element"
|
|
122
|
+
},
|
|
123
|
+
"shuffle": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "Not read by this element: `lockChoiceOrder` controls the shuffle. Default models include it."
|
|
126
|
+
},
|
|
127
|
+
"disabled": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"description": "Not read: the controller sets `disabled` from the environment. Default models include it."
|
|
130
|
+
},
|
|
131
|
+
"mode": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": [
|
|
134
|
+
"gather",
|
|
135
|
+
"view",
|
|
136
|
+
"evaluate"
|
|
137
|
+
],
|
|
138
|
+
"description": "Not read: the controller sets `mode` from the environment. Default models include it."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"choices",
|
|
143
|
+
"element",
|
|
144
|
+
"id",
|
|
145
|
+
"markup"
|
|
146
|
+
],
|
|
147
|
+
"description": "Model for the `@pie-element/inline-dropdown`",
|
|
148
|
+
"definitions": {
|
|
149
|
+
"AccessibilityCatalog": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"identifier": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"cards": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"$ref": "#/definitions/CatalogCard"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"identifier",
|
|
164
|
+
"cards"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"CatalogCard": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"catalog": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"language": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"content": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"payload": {
|
|
180
|
+
"$ref": "#/definitions/CatalogCardPayload"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"required": [
|
|
184
|
+
"catalog"
|
|
185
|
+
],
|
|
186
|
+
"description": "QTI-aligned accessibility catalog entry: one alternate representation of a content node, docked to it by `data-catalog-idref`.\n\nMaps onto QTI 3's `qti-card`. `catalog` is QTI's `@support` and is the only discriminant — there is deliberately no second `kind` field. `language` is the card entry's `xml:lang`. QTI's single content slot is represented by exactly one of two fields, never both, with nothing mirrored between them:\n\n- `content` — the string form, for alternates a string can express: SSML for `spoken`, plain text for `simplified-language`.\n- `payload` — the structured form, for what a string cannot express. Today only a signing video.\n\nOne generic payload slot rather than a field per accommodation (`signLanguage`, `braille`, …), which is the shape pie-players canonicalises and the shape this repo now follows. A field per accommodation makes every new structured alternate a breaking widening of this type in every consumer that reads cards, and it gives the same fact two names across repos — which produced a real bug: a card carrying `signLanguage` rendered its video in the player and was simultaneously reported as carrying no payload by the player's \"what alternates exist\" path, because only one of the two read paths knew about the alias.\n\n`catalog` is a bare `string` because the vocabulary is open-ended and unknown tokens must be ignored rather than rejected. TypeScript therefore cannot express \"a `sign-language` card must carry a payload\", so a `{ catalog: 'sign-language', content: '<url>' }` object still satisfies this type. That legacy bare-URL form is not supported: runtime validation on the consuming side must reject it rather than render the URL as visible text. Narrow with `isSignLanguageCard`."
|
|
187
|
+
},
|
|
188
|
+
"CatalogCardPayload": {
|
|
189
|
+
"anyOf": [
|
|
190
|
+
{
|
|
191
|
+
"$ref": "#/definitions/SignLanguageCardPayload"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"$ref": "#/definitions/SpokenAudioCardPayload"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"description": "The structured forms a card's `payload` may take.\n\nWhich one applies is decided by the card's `catalog`, so this union carries no discriminant of its own — a second discriminant could contradict the first. Consumers select a card by catalog type and then validate the payload structurally, which they must do regardless: catalog data is authored, wire-facing and untrusted."
|
|
198
|
+
},
|
|
199
|
+
"SignLanguageCardPayload": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"signLang": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"description": "Language tag for the signed translation — BCP 47, which admits ISO 639-3 subtags for languages with no 639-1/2 code. \"ase\" is ASL, matching QTI 3 `xml:lang`.\n\nThis is the language of the *adaptation*, not the item's base content language (AfA/PNP's `languageOfAdaptation`). The distinction is load bearing: a Spanish item's signed alternate is LSM, not ASL, so `signLang` must never be inferred from the item or assessment content language.\n\nOptional, and redundant on almost every card. The card's `language` states the same code and is the only field pie-players resolves a card on — resolution runs before anything knows the card is a signing card, so it can only key on the generic field — and the player falls back to it when this is absent. Author it only where the two differ: a card tagged with the item's content language (`language: 'en-US'`, `signLang: 'ase'`) so resolution reaches it by the default-language rung. The pie-api-aws importer emits `language` alone."
|
|
205
|
+
},
|
|
206
|
+
"media": {
|
|
207
|
+
"$ref": "#/definitions/MediaAssetRef"
|
|
208
|
+
},
|
|
209
|
+
"fragment": {
|
|
210
|
+
"$ref": "#/definitions/MediaFragmentRange"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"required": [
|
|
214
|
+
"media"
|
|
215
|
+
],
|
|
216
|
+
"description": "Payload for a `sign-language` catalog card: a signed translation of the content node the card is docked to."
|
|
217
|
+
},
|
|
218
|
+
"MediaAssetRef": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"version": {
|
|
222
|
+
"type": "number",
|
|
223
|
+
"const": 1
|
|
224
|
+
},
|
|
225
|
+
"id": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"kind": {
|
|
229
|
+
"$ref": "#/definitions/MediaKind"
|
|
230
|
+
},
|
|
231
|
+
"sources": {
|
|
232
|
+
"type": "array",
|
|
233
|
+
"items": {
|
|
234
|
+
"$ref": "#/definitions/MediaSource"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"poster": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"thumbnail": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"durationSeconds": {
|
|
244
|
+
"type": "number"
|
|
245
|
+
},
|
|
246
|
+
"tracks": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"items": {
|
|
249
|
+
"$ref": "#/definitions/TextTrackRef"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"transcript": {
|
|
253
|
+
"$ref": "#/definitions/TranscriptRef"
|
|
254
|
+
},
|
|
255
|
+
"label": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"description": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"lang": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"description": "Language of the asset itself, as authored metadata. Sign-language cards leave it unset: the card's `language` already states the adaptation language, and a second copy is a second thing to keep in agreement."
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"required": [
|
|
267
|
+
"version",
|
|
268
|
+
"id",
|
|
269
|
+
"kind",
|
|
270
|
+
"sources"
|
|
271
|
+
],
|
|
272
|
+
"description": "Reference to a media asset and its playable encodings.\n\nStructurally mirrors the `MediaAssetRef` in the pie-players `media-asset-contract` PRD. The two definitions are deliberately kept as separate declarations rather than a shared package dependency: this repo owns the item-model side of the contract, pie-players owns the player side, and both read the same authored JSON, so structural typing is sufficient for interop. Fixture parity — not a package edge — is what pins them together.\n\nSign-language catalog cards were the first consumer and use only the core source fields. The optional presentation, track, and transcript metadata is declared for broader consumers such as video stimuli; it remains meaningless for a signing clip, where captions would duplicate the text already on screen."
|
|
273
|
+
},
|
|
274
|
+
"MediaKind": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"enum": [
|
|
277
|
+
"image",
|
|
278
|
+
"audio",
|
|
279
|
+
"video",
|
|
280
|
+
"other"
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"MediaSource": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"properties": {
|
|
286
|
+
"src": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"type": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"description": "MIME type, e.g. \"video/mp4\"."
|
|
292
|
+
},
|
|
293
|
+
"width": {
|
|
294
|
+
"type": "number"
|
|
295
|
+
},
|
|
296
|
+
"height": {
|
|
297
|
+
"type": "number"
|
|
298
|
+
},
|
|
299
|
+
"bitrate": {
|
|
300
|
+
"type": "number"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"src"
|
|
305
|
+
],
|
|
306
|
+
"description": "One playable encoding of a media asset."
|
|
307
|
+
},
|
|
308
|
+
"TextTrackRef": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"src": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
"kind": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"enum": [
|
|
317
|
+
"captions",
|
|
318
|
+
"subtitles",
|
|
319
|
+
"descriptions",
|
|
320
|
+
"chapters",
|
|
321
|
+
"metadata"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"lang": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"label": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"default": {
|
|
331
|
+
"type": "boolean"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"src",
|
|
336
|
+
"kind",
|
|
337
|
+
"lang",
|
|
338
|
+
"label"
|
|
339
|
+
],
|
|
340
|
+
"description": "One authored text track associated with an audio or video asset."
|
|
341
|
+
},
|
|
342
|
+
"TranscriptRef": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"src": {
|
|
346
|
+
"type": "string"
|
|
347
|
+
},
|
|
348
|
+
"html": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
"plainText": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
"lang": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"description": "Inline or externally hosted transcript content for a media asset."
|
|
359
|
+
},
|
|
360
|
+
"MediaFragmentRange": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"startSeconds": {
|
|
364
|
+
"type": "number"
|
|
365
|
+
},
|
|
366
|
+
"endSeconds": {
|
|
367
|
+
"type": "number"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"required": [
|
|
371
|
+
"startSeconds"
|
|
372
|
+
],
|
|
373
|
+
"description": "A time slice within a media asset, so one recording can serve several content nodes. Mirrors QTI 3's Media Fragments URI usage."
|
|
374
|
+
},
|
|
375
|
+
"SpokenAudioCardPayload": {
|
|
376
|
+
"type": "object",
|
|
377
|
+
"properties": {
|
|
378
|
+
"media": {
|
|
379
|
+
"$ref": "#/definitions/MediaAssetRef"
|
|
380
|
+
},
|
|
381
|
+
"fragment": {
|
|
382
|
+
"$ref": "#/definitions/MediaFragmentRange"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"required": [
|
|
386
|
+
"media"
|
|
387
|
+
],
|
|
388
|
+
"description": "Payload for a `spoken` catalog card that is a recording rather than a script.\n\nQTI 3 treats recorded audio and synthesized speech as the same support: both are `spoken`, so this is not a new accommodation, it is the other form the existing one can take. A node commonly carries both this and a `content` card in the same language — the script is both what the audio was generated from and the fallback for when the audio cannot play; pie-players resolves between them with `CatalogLookupOptions.form`.\n\nNo `kind` discriminant, for the same reason `SignLanguageCardPayload` has none: the card's `catalog` already says what this is."
|
|
389
|
+
},
|
|
390
|
+
"Choices": {
|
|
391
|
+
"type": "object",
|
|
392
|
+
"additionalProperties": {
|
|
393
|
+
"type": "array",
|
|
394
|
+
"items": {
|
|
395
|
+
"$ref": "#/definitions/Choice"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"description": "Object with all the available choices for each response area, keyed by the area's index in `markup` (0 to n - 1)"
|
|
399
|
+
},
|
|
400
|
+
"Choice": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"properties": {
|
|
403
|
+
"value": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "The value for the choice"
|
|
406
|
+
},
|
|
407
|
+
"label": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"description": "The label of the choice"
|
|
410
|
+
},
|
|
411
|
+
"correct": {
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"description": "Indicates if choice is correct"
|
|
414
|
+
},
|
|
415
|
+
"rationale": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"description": "Rationale for the choice"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"value",
|
|
422
|
+
"label"
|
|
423
|
+
],
|
|
424
|
+
"description": "An option of a response area's dropdown"
|
|
425
|
+
},
|
|
426
|
+
"AlternateResponse": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"additionalProperties": {
|
|
429
|
+
"type": "array",
|
|
430
|
+
"items": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"description": "Further correct choice values for each response area, keyed by the area's index in `markup`"
|
|
435
|
+
},
|
|
436
|
+
"ExtraCSSRules": {
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"names": {
|
|
440
|
+
"type": "array",
|
|
441
|
+
"items": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"rules": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"description": "Host-supplied CSS scoped to the element: `rules` is a stylesheet whose class names are listed in `names`."
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"additionalProperties": false
|
|
453
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/inline-dropdown@11.0.5-next.20261012010413/dist/schemas/session.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Identifier of the session"
|
|
9
|
+
},
|
|
10
|
+
"element": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The element the session belongs to"
|
|
13
|
+
},
|
|
14
|
+
"value": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"description": "The value of the choice selected in each response area, keyed by the area's index"
|
|
20
|
+
},
|
|
21
|
+
"shuffledValues": {
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"description": "Choice values of each response area in the order they were shuffled for this learner, keyed by the area's index, when choice order is not locked. An array is the format of older sessions; the controller replaces it."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"definitions": {}
|
|
43
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { ConfigureLanguageOptions, ConfigureMathMLProp, ConfigureMaxImageDimensionsProp, ConfigureProp, ConfigurePropWithEnabled, ContentDimensions, EditableHtmlConfigureProp, EditableHtmlPluginConfigure, EditableHtmlPluginConfigureRequired, ExtraCSSRules, PieModel } from '@pie-element/shared-types';
|
|
2
|
+
/** An option of a response area's dropdown */
|
|
3
|
+
export interface Choice {
|
|
4
|
+
/** The value for the choice */
|
|
5
|
+
value: string;
|
|
6
|
+
/** The label of the choice */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Indicates if choice is correct */
|
|
9
|
+
correct?: boolean;
|
|
10
|
+
/** Rationale for the choice */
|
|
11
|
+
rationale?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Object with all the available choices for each response area, keyed by the area's index in `markup`
|
|
15
|
+
* (0 to n - 1)
|
|
16
|
+
*/
|
|
17
|
+
export type Choices = Record<string, Choice[]>;
|
|
18
|
+
/** Further correct choice values for each response area, keyed by the area's index in `markup` */
|
|
19
|
+
export type AlternateResponse = Record<string, string[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Model for the `@pie-element/inline-dropdown`
|
|
22
|
+
*/
|
|
23
|
+
export interface InlineDropdownModel extends PieModel {
|
|
24
|
+
/** Object with all the available choices for each response area */
|
|
25
|
+
choices: Choices;
|
|
26
|
+
/** Object that contains values that are right as well, besides the main one */
|
|
27
|
+
alternateResponse?: AlternateResponse;
|
|
28
|
+
/** Not read by this element: `alternateResponse` holds the alternate values */
|
|
29
|
+
alternateResponses?: AlternateResponse;
|
|
30
|
+
/** The markup for the pie-ui element: response areas are `{{index}}` placeholders */
|
|
31
|
+
markup: string;
|
|
32
|
+
/** The authoring editor's markup, with response areas as elements; the author derives `markup` from it */
|
|
33
|
+
slateMarkup?: string;
|
|
34
|
+
/** The item stem for the question */
|
|
35
|
+
prompt?: string;
|
|
36
|
+
/** Determines if prompt should show */
|
|
37
|
+
promptEnabled?: boolean;
|
|
38
|
+
/** Indicates if the choices are presented in a fixed order */
|
|
39
|
+
lockChoiceOrder?: boolean;
|
|
40
|
+
/** Indicates if partialScoring is enabled */
|
|
41
|
+
partialScoring?: boolean;
|
|
42
|
+
/** Indicates correct answer rationale */
|
|
43
|
+
rationale?: string;
|
|
44
|
+
/** Not read by this element */
|
|
45
|
+
scoringType?: 'auto' | 'rubric';
|
|
46
|
+
/** Not read by this element */
|
|
47
|
+
studentInstructions?: string;
|
|
48
|
+
/** Indicates teacher instructions */
|
|
49
|
+
teacherInstructions?: string;
|
|
50
|
+
/** Indicates if Rationale are enabled */
|
|
51
|
+
rationaleEnabled?: boolean;
|
|
52
|
+
/** Indicates if spellcheck is enabled for the author. Default value is true */
|
|
53
|
+
spellCheckEnabled?: boolean;
|
|
54
|
+
/** Indicates if Choice Level Rationales are enabled */
|
|
55
|
+
choiceRationaleEnabled?: boolean;
|
|
56
|
+
/** Not read by this element; default models include it */
|
|
57
|
+
studentInstructionsEnabled?: boolean;
|
|
58
|
+
/** Indicates if Teacher Instructions are enabled */
|
|
59
|
+
teacherInstructionsEnabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Indicates display type for the container of the pie-ui element
|
|
62
|
+
* @default "block"
|
|
63
|
+
*/
|
|
64
|
+
displayType?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates the editor's toolbar position which can be 'bottom' or 'top'
|
|
67
|
+
* @default "bottom"
|
|
68
|
+
*/
|
|
69
|
+
toolbarEditorPosition?: 'bottom' | 'top';
|
|
70
|
+
/** Indicates if Rubric is enabled */
|
|
71
|
+
rubricEnabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Indicates the language of the component
|
|
74
|
+
* Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX
|
|
75
|
+
*/
|
|
76
|
+
language?: string;
|
|
77
|
+
/** Host-supplied CSS scoped to the element */
|
|
78
|
+
extraCSSRules?: ExtraCSSRules;
|
|
79
|
+
/** Not read by this element: `lockChoiceOrder` controls the shuffle. Default models include it. */
|
|
80
|
+
shuffle?: boolean;
|
|
81
|
+
/** Not read: the controller sets `disabled` from the environment. Default models include it. */
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
/** Not read: the controller sets `mode` from the environment. Default models include it. */
|
|
84
|
+
mode?: 'gather' | 'view' | 'evaluate';
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Config Object for `@pie-element/inline-dropdown`
|
|
88
|
+
*/
|
|
89
|
+
export interface InlineDropdownConfiguration {
|
|
90
|
+
/**
|
|
91
|
+
* Base editable html input configuration regarding plugins that are enabled/disabled
|
|
92
|
+
* E.g. audio, video, image
|
|
93
|
+
*/
|
|
94
|
+
baseInputConfiguration?: EditableHtmlConfigureProp;
|
|
95
|
+
/** Not read by this element */
|
|
96
|
+
choices?: ConfigureProp;
|
|
97
|
+
/** Item Stem configuration */
|
|
98
|
+
prompt?: EditableHtmlPluginConfigureRequired;
|
|
99
|
+
/** Lock Choice Order configuration */
|
|
100
|
+
lockChoiceOrder?: ConfigureProp;
|
|
101
|
+
/** Partial Scoring configuration */
|
|
102
|
+
partialScoring?: ConfigureProp;
|
|
103
|
+
/** Rationale configuration */
|
|
104
|
+
rationale?: EditableHtmlPluginConfigureRequired;
|
|
105
|
+
/** Configuration for the author's spellcheck; `enabled` is not read */
|
|
106
|
+
spellCheck?: ConfigurePropWithEnabled;
|
|
107
|
+
/** Choice Level Rationales configuration */
|
|
108
|
+
choiceRationale?: ConfigureProp;
|
|
109
|
+
/** Indicates if the settings panel is not available */
|
|
110
|
+
settingsPanelDisabled?: boolean;
|
|
111
|
+
/** Not read by this element */
|
|
112
|
+
scoringType?: ConfigureProp;
|
|
113
|
+
/** Not read by this element */
|
|
114
|
+
studentInstructions?: ConfigureProp;
|
|
115
|
+
/** Teacher Instructions configuration */
|
|
116
|
+
teacherInstructions?: EditableHtmlPluginConfigureRequired;
|
|
117
|
+
/** Template configuration */
|
|
118
|
+
template?: EditableHtmlPluginConfigure;
|
|
119
|
+
/** Not read by this element; the author's defaults carry it */
|
|
120
|
+
toolbarEditorPosition?: ConfigureProp;
|
|
121
|
+
/** Maximum number of response areas */
|
|
122
|
+
maxResponseAreas?: number;
|
|
123
|
+
/** Maximum number of choices per response area */
|
|
124
|
+
maxResponseAreaChoices?: number;
|
|
125
|
+
/** Maximum image width for input fields */
|
|
126
|
+
maxImageWidth?: ConfigureMaxImageDimensionsProp;
|
|
127
|
+
/** Maximum image height for input fields */
|
|
128
|
+
maxImageHeight?: ConfigureMaxImageDimensionsProp;
|
|
129
|
+
/** Rubric configuration - only relevant in environments that use pie-player-components */
|
|
130
|
+
withRubric?: ConfigureProp;
|
|
131
|
+
/** Configuration for editable-html */
|
|
132
|
+
mathMlOptions?: ConfigureMathMLProp;
|
|
133
|
+
/** Language configuration */
|
|
134
|
+
language?: ConfigurePropWithEnabled;
|
|
135
|
+
/**
|
|
136
|
+
* Language choices configuration
|
|
137
|
+
* Only available if language is enabled
|
|
138
|
+
*/
|
|
139
|
+
languageChoices?: ConfigureLanguageOptions;
|
|
140
|
+
/** Configuration for editable-html inside inline-dropdown toolbar, under `inputConfiguration` */
|
|
141
|
+
responseAreaInputConfiguration?: EditableHtmlPluginConfigure;
|
|
142
|
+
/** Dimensions of the authoring container */
|
|
143
|
+
contentDimensions?: ContentDimensions;
|
|
144
|
+
/** Not read by this element: the model's `promptEnabled` shows the prompt */
|
|
145
|
+
showPrompt?: boolean;
|
|
146
|
+
/** Not read by this element: `prompt.label` labels the prompt */
|
|
147
|
+
promptLabel?: string;
|
|
148
|
+
/** Not read by this element: `partialScoring.settings` shows the partial scoring control */
|
|
149
|
+
settingsPartialScoring?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export interface InlineDropdownSession {
|
|
152
|
+
/** Identifier of the session */
|
|
153
|
+
id?: string;
|
|
154
|
+
/** The element the session belongs to */
|
|
155
|
+
element?: string;
|
|
156
|
+
/** The value of the choice selected in each response area, keyed by the area's index */
|
|
157
|
+
value?: Record<string, string>;
|
|
158
|
+
/**
|
|
159
|
+
* Choice values of each response area in the order they were shuffled for this learner, keyed by the
|
|
160
|
+
* area's index, when choice order is not locked. An array is the format of older sessions; the
|
|
161
|
+
* controller replaces it.
|
|
162
|
+
*/
|
|
163
|
+
shuffledValues?: Record<string, string[]> | string[];
|
|
164
|
+
}
|