@lessonkit/react 1.4.0 → 1.5.0
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/README.md +17 -9
- package/block-catalog.v3.json +445 -32
- package/dist/{AssessmentLessonGuard-D2Plzybb.d.cts → AssessmentLessonGuard-BzNPbjaV.d.cts} +1 -1
- package/dist/{AssessmentLessonGuard-D2Plzybb.d.ts → AssessmentLessonGuard-BzNPbjaV.d.ts} +1 -1
- package/dist/blocks-entry.cjs +1850 -328
- package/dist/blocks-entry.d.cts +61 -1
- package/dist/blocks-entry.d.ts +61 -1
- package/dist/blocks-entry.js +12 -2
- package/dist/{chunk-4LQ4TTEE.js → chunk-5P23C2W3.js} +1830 -313
- package/dist/{chunk-TDM3ARE7.js → chunk-7TJQJFYR.js} +483 -276
- package/dist/{chunk-UUTXECVW.js → chunk-ELGQ4XI3.js} +49 -30
- package/dist/index.cjs +2620 -774
- package/dist/index.d.cts +92 -5
- package/dist/index.d.ts +92 -5
- package/dist/index.js +125 -5
- package/dist/testing.cjs +86 -50
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/package.json +15 -18
package/block-catalog.v3.json
CHANGED
|
@@ -93,7 +93,9 @@
|
|
|
93
93
|
"SlideDeck",
|
|
94
94
|
"TimedCue",
|
|
95
95
|
"InteractiveVideo",
|
|
96
|
-
"AssessmentSequence"
|
|
96
|
+
"AssessmentSequence",
|
|
97
|
+
"BranchingScenario",
|
|
98
|
+
"BranchNode"
|
|
97
99
|
],
|
|
98
100
|
"a11y": {
|
|
99
101
|
"element": "article",
|
|
@@ -143,7 +145,9 @@
|
|
|
143
145
|
"SlideDeck",
|
|
144
146
|
"TimedCue",
|
|
145
147
|
"InteractiveVideo",
|
|
146
|
-
"AssessmentSequence"
|
|
148
|
+
"AssessmentSequence",
|
|
149
|
+
"BranchingScenario",
|
|
150
|
+
"BranchNode"
|
|
147
151
|
],
|
|
148
152
|
"a11y": {
|
|
149
153
|
"element": "section",
|
|
@@ -217,7 +221,9 @@
|
|
|
217
221
|
"SlideDeck",
|
|
218
222
|
"TimedCue",
|
|
219
223
|
"InteractiveVideo",
|
|
220
|
-
"AssessmentSequence"
|
|
224
|
+
"AssessmentSequence",
|
|
225
|
+
"BranchingScenario",
|
|
226
|
+
"BranchNode"
|
|
221
227
|
],
|
|
222
228
|
"a11y": {
|
|
223
229
|
"element": "section",
|
|
@@ -288,7 +294,9 @@
|
|
|
288
294
|
"SlideDeck",
|
|
289
295
|
"TimedCue",
|
|
290
296
|
"InteractiveVideo",
|
|
291
|
-
"AssessmentSequence"
|
|
297
|
+
"AssessmentSequence",
|
|
298
|
+
"BranchingScenario",
|
|
299
|
+
"BranchNode"
|
|
292
300
|
],
|
|
293
301
|
"a11y": {
|
|
294
302
|
"element": "section",
|
|
@@ -334,7 +342,9 @@
|
|
|
334
342
|
"SlideDeck",
|
|
335
343
|
"TimedCue",
|
|
336
344
|
"InteractiveVideo",
|
|
337
|
-
"AssessmentSequence"
|
|
345
|
+
"AssessmentSequence",
|
|
346
|
+
"BranchingScenario",
|
|
347
|
+
"BranchNode"
|
|
338
348
|
],
|
|
339
349
|
"a11y": {
|
|
340
350
|
"element": "aside",
|
|
@@ -412,7 +422,9 @@
|
|
|
412
422
|
"Slide",
|
|
413
423
|
"SlideDeck",
|
|
414
424
|
"TimedCue",
|
|
415
|
-
"InteractiveVideo"
|
|
425
|
+
"InteractiveVideo",
|
|
426
|
+
"BranchingScenario",
|
|
427
|
+
"BranchNode"
|
|
416
428
|
],
|
|
417
429
|
"a11y": {
|
|
418
430
|
"element": "section",
|
|
@@ -498,7 +510,9 @@
|
|
|
498
510
|
"Slide",
|
|
499
511
|
"SlideDeck",
|
|
500
512
|
"TimedCue",
|
|
501
|
-
"InteractiveVideo"
|
|
513
|
+
"InteractiveVideo",
|
|
514
|
+
"BranchingScenario",
|
|
515
|
+
"BranchNode"
|
|
502
516
|
],
|
|
503
517
|
"a11y": {
|
|
504
518
|
"element": "section",
|
|
@@ -583,7 +597,9 @@
|
|
|
583
597
|
"Slide",
|
|
584
598
|
"SlideDeck",
|
|
585
599
|
"TimedCue",
|
|
586
|
-
"InteractiveVideo"
|
|
600
|
+
"InteractiveVideo",
|
|
601
|
+
"BranchingScenario",
|
|
602
|
+
"BranchNode"
|
|
587
603
|
],
|
|
588
604
|
"a11y": {
|
|
589
605
|
"element": "section",
|
|
@@ -668,7 +684,9 @@
|
|
|
668
684
|
"Slide",
|
|
669
685
|
"SlideDeck",
|
|
670
686
|
"TimedCue",
|
|
671
|
-
"InteractiveVideo"
|
|
687
|
+
"InteractiveVideo",
|
|
688
|
+
"BranchingScenario",
|
|
689
|
+
"BranchNode"
|
|
672
690
|
],
|
|
673
691
|
"a11y": {
|
|
674
692
|
"element": "section",
|
|
@@ -753,7 +771,9 @@
|
|
|
753
771
|
"Slide",
|
|
754
772
|
"SlideDeck",
|
|
755
773
|
"TimedCue",
|
|
756
|
-
"InteractiveVideo"
|
|
774
|
+
"InteractiveVideo",
|
|
775
|
+
"BranchingScenario",
|
|
776
|
+
"BranchNode"
|
|
757
777
|
],
|
|
758
778
|
"a11y": {
|
|
759
779
|
"element": "section",
|
|
@@ -823,7 +843,9 @@
|
|
|
823
843
|
"SlideDeck",
|
|
824
844
|
"TimedCue",
|
|
825
845
|
"InteractiveVideo",
|
|
826
|
-
"AssessmentSequence"
|
|
846
|
+
"AssessmentSequence",
|
|
847
|
+
"BranchingScenario",
|
|
848
|
+
"BranchNode"
|
|
827
849
|
],
|
|
828
850
|
"a11y": {
|
|
829
851
|
"element": "section",
|
|
@@ -920,7 +942,9 @@
|
|
|
920
942
|
"InteractiveBook",
|
|
921
943
|
"Slide",
|
|
922
944
|
"SlideDeck",
|
|
923
|
-
"InteractiveVideo"
|
|
945
|
+
"InteractiveVideo",
|
|
946
|
+
"BranchingScenario",
|
|
947
|
+
"BranchNode"
|
|
924
948
|
],
|
|
925
949
|
"a11y": {
|
|
926
950
|
"element": "section",
|
|
@@ -999,7 +1023,9 @@
|
|
|
999
1023
|
"InteractiveBook",
|
|
1000
1024
|
"Slide",
|
|
1001
1025
|
"SlideDeck",
|
|
1002
|
-
"InteractiveVideo"
|
|
1026
|
+
"InteractiveVideo",
|
|
1027
|
+
"BranchingScenario",
|
|
1028
|
+
"BranchNode"
|
|
1003
1029
|
],
|
|
1004
1030
|
"a11y": {
|
|
1005
1031
|
"element": "section",
|
|
@@ -1084,7 +1110,9 @@
|
|
|
1084
1110
|
"InteractiveBook",
|
|
1085
1111
|
"Slide",
|
|
1086
1112
|
"SlideDeck",
|
|
1087
|
-
"InteractiveVideo"
|
|
1113
|
+
"InteractiveVideo",
|
|
1114
|
+
"BranchingScenario",
|
|
1115
|
+
"BranchNode"
|
|
1088
1116
|
],
|
|
1089
1117
|
"a11y": {
|
|
1090
1118
|
"element": "section",
|
|
@@ -1169,7 +1197,9 @@
|
|
|
1169
1197
|
"InteractiveBook",
|
|
1170
1198
|
"Slide",
|
|
1171
1199
|
"SlideDeck",
|
|
1172
|
-
"InteractiveVideo"
|
|
1200
|
+
"InteractiveVideo",
|
|
1201
|
+
"BranchingScenario",
|
|
1202
|
+
"BranchNode"
|
|
1173
1203
|
],
|
|
1174
1204
|
"a11y": {
|
|
1175
1205
|
"element": "section",
|
|
@@ -1254,7 +1284,9 @@
|
|
|
1254
1284
|
"InteractiveBook",
|
|
1255
1285
|
"Slide",
|
|
1256
1286
|
"SlideDeck",
|
|
1257
|
-
"InteractiveVideo"
|
|
1287
|
+
"InteractiveVideo",
|
|
1288
|
+
"BranchingScenario",
|
|
1289
|
+
"BranchNode"
|
|
1258
1290
|
],
|
|
1259
1291
|
"a11y": {
|
|
1260
1292
|
"element": "section",
|
|
@@ -1304,7 +1336,9 @@
|
|
|
1304
1336
|
"SlideDeck",
|
|
1305
1337
|
"TimedCue",
|
|
1306
1338
|
"InteractiveVideo",
|
|
1307
|
-
"AssessmentSequence"
|
|
1339
|
+
"AssessmentSequence",
|
|
1340
|
+
"BranchingScenario",
|
|
1341
|
+
"BranchNode"
|
|
1308
1342
|
],
|
|
1309
1343
|
"a11y": {
|
|
1310
1344
|
"element": "p",
|
|
@@ -1353,7 +1387,9 @@
|
|
|
1353
1387
|
"SlideDeck",
|
|
1354
1388
|
"TimedCue",
|
|
1355
1389
|
"InteractiveVideo",
|
|
1356
|
-
"AssessmentSequence"
|
|
1390
|
+
"AssessmentSequence",
|
|
1391
|
+
"BranchingScenario",
|
|
1392
|
+
"BranchNode"
|
|
1357
1393
|
],
|
|
1358
1394
|
"a11y": {
|
|
1359
1395
|
"element": "h1-h3",
|
|
@@ -1402,7 +1438,9 @@
|
|
|
1402
1438
|
"SlideDeck",
|
|
1403
1439
|
"TimedCue",
|
|
1404
1440
|
"InteractiveVideo",
|
|
1405
|
-
"AssessmentSequence"
|
|
1441
|
+
"AssessmentSequence",
|
|
1442
|
+
"BranchingScenario",
|
|
1443
|
+
"BranchNode"
|
|
1406
1444
|
],
|
|
1407
1445
|
"a11y": {
|
|
1408
1446
|
"element": "img",
|
|
@@ -1465,7 +1503,9 @@
|
|
|
1465
1503
|
"SlideDeck",
|
|
1466
1504
|
"TimedCue",
|
|
1467
1505
|
"InteractiveVideo",
|
|
1468
|
-
"AssessmentSequence"
|
|
1506
|
+
"AssessmentSequence",
|
|
1507
|
+
"BranchingScenario",
|
|
1508
|
+
"BranchNode"
|
|
1469
1509
|
],
|
|
1470
1510
|
"a11y": {
|
|
1471
1511
|
"element": "video",
|
|
@@ -1518,6 +1558,8 @@
|
|
|
1518
1558
|
"FindHotspot",
|
|
1519
1559
|
"FindMultipleHotspots",
|
|
1520
1560
|
"ImageSlider",
|
|
1561
|
+
"Embed",
|
|
1562
|
+
"Chart",
|
|
1521
1563
|
"ProgressTracker"
|
|
1522
1564
|
],
|
|
1523
1565
|
"maxNestingDepth": 1,
|
|
@@ -1662,7 +1704,9 @@
|
|
|
1662
1704
|
"ImageHotspots",
|
|
1663
1705
|
"FindHotspot",
|
|
1664
1706
|
"FindMultipleHotspots",
|
|
1665
|
-
"ImageSlider"
|
|
1707
|
+
"ImageSlider",
|
|
1708
|
+
"Embed",
|
|
1709
|
+
"Chart"
|
|
1666
1710
|
],
|
|
1667
1711
|
"maxNestingDepth": 1,
|
|
1668
1712
|
"props": [
|
|
@@ -1915,6 +1959,353 @@
|
|
|
1915
1959
|
"requiresActiveLesson": true
|
|
1916
1960
|
}
|
|
1917
1961
|
},
|
|
1962
|
+
{
|
|
1963
|
+
"type": "BranchNode",
|
|
1964
|
+
"category": "container",
|
|
1965
|
+
"compoundContract": true,
|
|
1966
|
+
"h5pMachineName": "H5P.BranchingScenario",
|
|
1967
|
+
"h5pAlias": "Branching Scenario node",
|
|
1968
|
+
"description": "Graph node in a BranchingScenario with content and choices.",
|
|
1969
|
+
"allowedChildTypes": [
|
|
1970
|
+
"Text",
|
|
1971
|
+
"Heading",
|
|
1972
|
+
"Image",
|
|
1973
|
+
"Video",
|
|
1974
|
+
"Scenario",
|
|
1975
|
+
"Reflection",
|
|
1976
|
+
"Quiz",
|
|
1977
|
+
"KnowledgeCheck",
|
|
1978
|
+
"TrueFalse",
|
|
1979
|
+
"FillInTheBlanks",
|
|
1980
|
+
"DragAndDrop",
|
|
1981
|
+
"DragTheWords",
|
|
1982
|
+
"MarkTheWords",
|
|
1983
|
+
"Summary",
|
|
1984
|
+
"ImagePairing",
|
|
1985
|
+
"ImageSequencing",
|
|
1986
|
+
"MemoryGame",
|
|
1987
|
+
"InformationWall",
|
|
1988
|
+
"ParallaxSlideshow",
|
|
1989
|
+
"Questionnaire",
|
|
1990
|
+
"Essay",
|
|
1991
|
+
"ArithmeticQuiz",
|
|
1992
|
+
"Accordion",
|
|
1993
|
+
"DialogCards",
|
|
1994
|
+
"Flashcards",
|
|
1995
|
+
"ImageHotspots",
|
|
1996
|
+
"FindHotspot",
|
|
1997
|
+
"FindMultipleHotspots",
|
|
1998
|
+
"ImageSlider",
|
|
1999
|
+
"Embed",
|
|
2000
|
+
"Chart",
|
|
2001
|
+
"BranchChoice"
|
|
2002
|
+
],
|
|
2003
|
+
"maxNestingDepth": 1,
|
|
2004
|
+
"props": [
|
|
2005
|
+
{
|
|
2006
|
+
"name": "nodeId",
|
|
2007
|
+
"type": "string",
|
|
2008
|
+
"required": true,
|
|
2009
|
+
"description": "Unique node id within the scenario."
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "title",
|
|
2013
|
+
"type": "string",
|
|
2014
|
+
"required": false,
|
|
2015
|
+
"description": "Node title."
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "terminal",
|
|
2019
|
+
"type": "boolean",
|
|
2020
|
+
"required": false,
|
|
2021
|
+
"description": "End state node."
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"name": "children",
|
|
2025
|
+
"type": "ReactNode",
|
|
2026
|
+
"required": true,
|
|
2027
|
+
"description": "Content and BranchChoice controls."
|
|
2028
|
+
}
|
|
2029
|
+
],
|
|
2030
|
+
"requiredIds": [],
|
|
2031
|
+
"parentConstraints": [
|
|
2032
|
+
"BranchingScenario"
|
|
2033
|
+
],
|
|
2034
|
+
"a11y": {
|
|
2035
|
+
"element": "section",
|
|
2036
|
+
"ariaLabel": "Branch node",
|
|
2037
|
+
"keyboard": "Branch choices are buttons.",
|
|
2038
|
+
"notes": "H5P Branching Scenario node."
|
|
2039
|
+
},
|
|
2040
|
+
"theming": {
|
|
2041
|
+
"surface": "global-inherit",
|
|
2042
|
+
"stylingNotes": "Node panel."
|
|
2043
|
+
},
|
|
2044
|
+
"telemetry": {
|
|
2045
|
+
"emits": [
|
|
2046
|
+
"branch_node_viewed"
|
|
2047
|
+
],
|
|
2048
|
+
"requiresActiveLesson": true
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
"type": "BranchChoice",
|
|
2053
|
+
"category": "content",
|
|
2054
|
+
"h5pMachineName": "H5P.BranchingScenario",
|
|
2055
|
+
"h5pAlias": "Branching Scenario choice",
|
|
2056
|
+
"description": "Transition control linking to a target BranchNode.",
|
|
2057
|
+
"props": [
|
|
2058
|
+
{
|
|
2059
|
+
"name": "label",
|
|
2060
|
+
"type": "string",
|
|
2061
|
+
"required": true,
|
|
2062
|
+
"description": "Choice label."
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"name": "targetNodeId",
|
|
2066
|
+
"type": "string",
|
|
2067
|
+
"required": true,
|
|
2068
|
+
"description": "Target node id."
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"name": "scoreWeight",
|
|
2072
|
+
"type": "number",
|
|
2073
|
+
"required": false,
|
|
2074
|
+
"description": "Optional choice score weight."
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"name": "disabled",
|
|
2078
|
+
"type": "boolean",
|
|
2079
|
+
"required": false,
|
|
2080
|
+
"description": "Disable choice."
|
|
2081
|
+
}
|
|
2082
|
+
],
|
|
2083
|
+
"requiredIds": [],
|
|
2084
|
+
"parentConstraints": [
|
|
2085
|
+
"BranchNode"
|
|
2086
|
+
],
|
|
2087
|
+
"a11y": {
|
|
2088
|
+
"element": "button",
|
|
2089
|
+
"ariaLabel": "Branch choice",
|
|
2090
|
+
"keyboard": "Activate to follow branch.",
|
|
2091
|
+
"notes": "Radio group pattern."
|
|
2092
|
+
},
|
|
2093
|
+
"theming": {
|
|
2094
|
+
"surface": "global-inherit",
|
|
2095
|
+
"stylingNotes": "Choice button."
|
|
2096
|
+
},
|
|
2097
|
+
"telemetry": {
|
|
2098
|
+
"emits": [
|
|
2099
|
+
"branch_selected"
|
|
2100
|
+
],
|
|
2101
|
+
"requiresActiveLesson": true
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"type": "BranchingScenario",
|
|
2106
|
+
"category": "container",
|
|
2107
|
+
"compoundContract": true,
|
|
2108
|
+
"h5pMachineName": "H5P.BranchingScenario",
|
|
2109
|
+
"h5pAlias": "Branching Scenario",
|
|
2110
|
+
"description": "Graph-based branching narrative with scored paths.",
|
|
2111
|
+
"allowedChildTypes": [
|
|
2112
|
+
"BranchNode"
|
|
2113
|
+
],
|
|
2114
|
+
"maxNestingDepth": 2,
|
|
2115
|
+
"props": [
|
|
2116
|
+
{
|
|
2117
|
+
"name": "blockId",
|
|
2118
|
+
"type": "BlockId",
|
|
2119
|
+
"required": true,
|
|
2120
|
+
"description": "Stable block id."
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "title",
|
|
2124
|
+
"type": "string",
|
|
2125
|
+
"required": true,
|
|
2126
|
+
"description": "Scenario title."
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"name": "startNodeId",
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"required": true,
|
|
2132
|
+
"description": "Entry node id."
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "showPathScore",
|
|
2136
|
+
"type": "boolean",
|
|
2137
|
+
"required": false,
|
|
2138
|
+
"description": "Show visited-path score."
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"name": "showPathRecap",
|
|
2142
|
+
"type": "boolean",
|
|
2143
|
+
"required": false,
|
|
2144
|
+
"description": "Show path recap on terminal nodes."
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"name": "children",
|
|
2148
|
+
"type": "BranchNode[]",
|
|
2149
|
+
"required": true,
|
|
2150
|
+
"description": "Branch nodes."
|
|
2151
|
+
}
|
|
2152
|
+
],
|
|
2153
|
+
"requiredIds": [
|
|
2154
|
+
"blockId"
|
|
2155
|
+
],
|
|
2156
|
+
"parentConstraints": [
|
|
2157
|
+
"Lesson"
|
|
2158
|
+
],
|
|
2159
|
+
"a11y": {
|
|
2160
|
+
"element": "section",
|
|
2161
|
+
"ariaLabel": "Branching scenario",
|
|
2162
|
+
"keyboard": "Branch choices; assessments in nodes.",
|
|
2163
|
+
"notes": "H5P Branching Scenario equivalent."
|
|
2164
|
+
},
|
|
2165
|
+
"theming": {
|
|
2166
|
+
"surface": "global-inherit",
|
|
2167
|
+
"stylingNotes": "Scenario chrome."
|
|
2168
|
+
},
|
|
2169
|
+
"telemetry": {
|
|
2170
|
+
"emits": [
|
|
2171
|
+
"branch_node_viewed",
|
|
2172
|
+
"branch_selected"
|
|
2173
|
+
],
|
|
2174
|
+
"requiresActiveLesson": true
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"type": "Embed",
|
|
2179
|
+
"category": "content",
|
|
2180
|
+
"h5pMachineName": "H5P.IFrameEmbed",
|
|
2181
|
+
"h5pAlias": "Iframe Embedder",
|
|
2182
|
+
"description": "Sandboxed iframe embed with restrictive defaults.",
|
|
2183
|
+
"props": [
|
|
2184
|
+
{
|
|
2185
|
+
"name": "blockId",
|
|
2186
|
+
"type": "BlockId",
|
|
2187
|
+
"required": true,
|
|
2188
|
+
"description": "Stable block id."
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "src",
|
|
2192
|
+
"type": "string",
|
|
2193
|
+
"required": true,
|
|
2194
|
+
"description": "Embed URL."
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"name": "title",
|
|
2198
|
+
"type": "string",
|
|
2199
|
+
"required": true,
|
|
2200
|
+
"description": "Accessible title."
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"name": "allow",
|
|
2204
|
+
"type": "string",
|
|
2205
|
+
"required": false,
|
|
2206
|
+
"description": "Extra sandbox allow tokens."
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"name": "aspectRatio",
|
|
2210
|
+
"type": "string",
|
|
2211
|
+
"required": false,
|
|
2212
|
+
"description": "CSS aspect-ratio."
|
|
2213
|
+
}
|
|
2214
|
+
],
|
|
2215
|
+
"requiredIds": [
|
|
2216
|
+
"blockId"
|
|
2217
|
+
],
|
|
2218
|
+
"parentConstraints": [
|
|
2219
|
+
"Lesson",
|
|
2220
|
+
"Page",
|
|
2221
|
+
"InteractiveBook",
|
|
2222
|
+
"Slide",
|
|
2223
|
+
"SlideDeck",
|
|
2224
|
+
"TimedCue",
|
|
2225
|
+
"InteractiveVideo",
|
|
2226
|
+
"AssessmentSequence",
|
|
2227
|
+
"BranchingScenario",
|
|
2228
|
+
"BranchNode"
|
|
2229
|
+
],
|
|
2230
|
+
"a11y": {
|
|
2231
|
+
"element": "iframe",
|
|
2232
|
+
"ariaLabel": "Embedded content",
|
|
2233
|
+
"keyboard": "Focus enters iframe.",
|
|
2234
|
+
"notes": "Sandboxed; opt-in allow list."
|
|
2235
|
+
},
|
|
2236
|
+
"theming": {
|
|
2237
|
+
"surface": "global-inherit",
|
|
2238
|
+
"stylingNotes": "Responsive iframe."
|
|
2239
|
+
},
|
|
2240
|
+
"telemetry": {
|
|
2241
|
+
"emits": [
|
|
2242
|
+
"interaction"
|
|
2243
|
+
]
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"type": "Chart",
|
|
2248
|
+
"category": "content",
|
|
2249
|
+
"h5pMachineName": "H5P.Chart",
|
|
2250
|
+
"h5pAlias": "Chart",
|
|
2251
|
+
"description": "Simple bar or pie chart with accessible data table.",
|
|
2252
|
+
"props": [
|
|
2253
|
+
{
|
|
2254
|
+
"name": "blockId",
|
|
2255
|
+
"type": "BlockId",
|
|
2256
|
+
"required": true,
|
|
2257
|
+
"description": "Stable block id."
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"name": "type",
|
|
2261
|
+
"type": "bar | pie",
|
|
2262
|
+
"required": true,
|
|
2263
|
+
"description": "Chart type."
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
"name": "data",
|
|
2267
|
+
"type": "ChartDatum[]",
|
|
2268
|
+
"required": true,
|
|
2269
|
+
"description": "Chart data."
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"name": "title",
|
|
2273
|
+
"type": "string",
|
|
2274
|
+
"required": false,
|
|
2275
|
+
"description": "Chart title."
|
|
2276
|
+
}
|
|
2277
|
+
],
|
|
2278
|
+
"requiredIds": [
|
|
2279
|
+
"blockId"
|
|
2280
|
+
],
|
|
2281
|
+
"parentConstraints": [
|
|
2282
|
+
"Lesson",
|
|
2283
|
+
"Page",
|
|
2284
|
+
"InteractiveBook",
|
|
2285
|
+
"Slide",
|
|
2286
|
+
"SlideDeck",
|
|
2287
|
+
"TimedCue",
|
|
2288
|
+
"InteractiveVideo",
|
|
2289
|
+
"AssessmentSequence",
|
|
2290
|
+
"BranchingScenario",
|
|
2291
|
+
"BranchNode"
|
|
2292
|
+
],
|
|
2293
|
+
"a11y": {
|
|
2294
|
+
"element": "figure",
|
|
2295
|
+
"ariaLabel": "Chart",
|
|
2296
|
+
"keyboard": "Data table fallback.",
|
|
2297
|
+
"notes": "Table exposes values to screen readers."
|
|
2298
|
+
},
|
|
2299
|
+
"theming": {
|
|
2300
|
+
"surface": "global-inherit",
|
|
2301
|
+
"stylingNotes": "Simple SVG/CSS chart."
|
|
2302
|
+
},
|
|
2303
|
+
"telemetry": {
|
|
2304
|
+
"emits": [
|
|
2305
|
+
"interaction"
|
|
2306
|
+
]
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
1918
2309
|
{
|
|
1919
2310
|
"type": "Questionnaire",
|
|
1920
2311
|
"category": "content",
|
|
@@ -1946,7 +2337,9 @@
|
|
|
1946
2337
|
"SlideDeck",
|
|
1947
2338
|
"TimedCue",
|
|
1948
2339
|
"InteractiveVideo",
|
|
1949
|
-
"AssessmentSequence"
|
|
2340
|
+
"AssessmentSequence",
|
|
2341
|
+
"BranchingScenario",
|
|
2342
|
+
"BranchNode"
|
|
1950
2343
|
],
|
|
1951
2344
|
"a11y": {
|
|
1952
2345
|
"element": "form",
|
|
@@ -2002,7 +2395,9 @@
|
|
|
2002
2395
|
"SlideDeck",
|
|
2003
2396
|
"TimedCue",
|
|
2004
2397
|
"InteractiveVideo",
|
|
2005
|
-
"AssessmentSequence"
|
|
2398
|
+
"AssessmentSequence",
|
|
2399
|
+
"BranchingScenario",
|
|
2400
|
+
"BranchNode"
|
|
2006
2401
|
],
|
|
2007
2402
|
"a11y": {
|
|
2008
2403
|
"element": "section",
|
|
@@ -2051,7 +2446,9 @@
|
|
|
2051
2446
|
"SlideDeck",
|
|
2052
2447
|
"TimedCue",
|
|
2053
2448
|
"InteractiveVideo",
|
|
2054
|
-
"AssessmentSequence"
|
|
2449
|
+
"AssessmentSequence",
|
|
2450
|
+
"BranchingScenario",
|
|
2451
|
+
"BranchNode"
|
|
2055
2452
|
],
|
|
2056
2453
|
"a11y": {
|
|
2057
2454
|
"element": "section",
|
|
@@ -2100,7 +2497,9 @@
|
|
|
2100
2497
|
"SlideDeck",
|
|
2101
2498
|
"TimedCue",
|
|
2102
2499
|
"InteractiveVideo",
|
|
2103
|
-
"AssessmentSequence"
|
|
2500
|
+
"AssessmentSequence",
|
|
2501
|
+
"BranchingScenario",
|
|
2502
|
+
"BranchNode"
|
|
2104
2503
|
],
|
|
2105
2504
|
"a11y": {
|
|
2106
2505
|
"element": "section",
|
|
@@ -2149,7 +2548,9 @@
|
|
|
2149
2548
|
"SlideDeck",
|
|
2150
2549
|
"TimedCue",
|
|
2151
2550
|
"InteractiveVideo",
|
|
2152
|
-
"AssessmentSequence"
|
|
2551
|
+
"AssessmentSequence",
|
|
2552
|
+
"BranchingScenario",
|
|
2553
|
+
"BranchNode"
|
|
2153
2554
|
],
|
|
2154
2555
|
"a11y": {
|
|
2155
2556
|
"element": "section",
|
|
@@ -2198,7 +2599,9 @@
|
|
|
2198
2599
|
"SlideDeck",
|
|
2199
2600
|
"TimedCue",
|
|
2200
2601
|
"InteractiveVideo",
|
|
2201
|
-
"AssessmentSequence"
|
|
2602
|
+
"AssessmentSequence",
|
|
2603
|
+
"BranchingScenario",
|
|
2604
|
+
"BranchNode"
|
|
2202
2605
|
],
|
|
2203
2606
|
"a11y": {
|
|
2204
2607
|
"element": "section",
|
|
@@ -2251,7 +2654,9 @@
|
|
|
2251
2654
|
"SlideDeck",
|
|
2252
2655
|
"TimedCue",
|
|
2253
2656
|
"InteractiveVideo",
|
|
2254
|
-
"AssessmentSequence"
|
|
2657
|
+
"AssessmentSequence",
|
|
2658
|
+
"BranchingScenario",
|
|
2659
|
+
"BranchNode"
|
|
2255
2660
|
],
|
|
2256
2661
|
"a11y": {
|
|
2257
2662
|
"element": "section",
|
|
@@ -2312,7 +2717,9 @@
|
|
|
2312
2717
|
"SlideDeck",
|
|
2313
2718
|
"TimedCue",
|
|
2314
2719
|
"InteractiveVideo",
|
|
2315
|
-
"AssessmentSequence"
|
|
2720
|
+
"AssessmentSequence",
|
|
2721
|
+
"BranchingScenario",
|
|
2722
|
+
"BranchNode"
|
|
2316
2723
|
],
|
|
2317
2724
|
"a11y": {
|
|
2318
2725
|
"element": "section",
|
|
@@ -2361,7 +2768,9 @@
|
|
|
2361
2768
|
"SlideDeck",
|
|
2362
2769
|
"TimedCue",
|
|
2363
2770
|
"InteractiveVideo",
|
|
2364
|
-
"AssessmentSequence"
|
|
2771
|
+
"AssessmentSequence",
|
|
2772
|
+
"BranchingScenario",
|
|
2773
|
+
"BranchNode"
|
|
2365
2774
|
],
|
|
2366
2775
|
"a11y": {
|
|
2367
2776
|
"element": "section",
|
|
@@ -2453,7 +2862,9 @@
|
|
|
2453
2862
|
"SlideDeck",
|
|
2454
2863
|
"TimedCue",
|
|
2455
2864
|
"InteractiveVideo",
|
|
2456
|
-
"AssessmentSequence"
|
|
2865
|
+
"AssessmentSequence",
|
|
2866
|
+
"BranchingScenario",
|
|
2867
|
+
"BranchNode"
|
|
2457
2868
|
],
|
|
2458
2869
|
"a11y": {
|
|
2459
2870
|
"element": "section",
|
|
@@ -2550,7 +2961,9 @@
|
|
|
2550
2961
|
"SlideDeck",
|
|
2551
2962
|
"TimedCue",
|
|
2552
2963
|
"InteractiveVideo",
|
|
2553
|
-
"AssessmentSequence"
|
|
2964
|
+
"AssessmentSequence",
|
|
2965
|
+
"BranchingScenario",
|
|
2966
|
+
"BranchNode"
|
|
2554
2967
|
],
|
|
2555
2968
|
"a11y": {
|
|
2556
2969
|
"element": "section",
|
|
@@ -18,4 +18,4 @@ declare function resetQuizWarningsForTests(): void;
|
|
|
18
18
|
|
|
19
19
|
declare function resetAssessmentWarningsForTests(): void;
|
|
20
20
|
|
|
21
|
-
export { KnowledgeCheck as K, Quiz as Q,
|
|
21
|
+
export { KnowledgeCheck as K, Quiz as Q, resetQuizWarningsForTests as a, type QuizProps as b, resetAssessmentWarningsForTests as r };
|