@qti-components/extended 0.0.0-stage → 1.0.0-next.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.
Files changed (62) hide show
  1. package/LICENSE.md +674 -0
  2. package/dist/elements.d.ts +100 -0
  3. package/dist/elements.js +44 -0
  4. package/dist/elements.js.map +1 -0
  5. package/dist/index.d.ts +11 -0
  6. package/dist/index.js +12 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/qti-extended-jsx.d.ts +1894 -0
  9. package/dist/qti-extended-jsx.js +1 -0
  10. package/dist/register.d.ts +1 -0
  11. package/dist/register.js +7 -0
  12. package/dist/register.js.map +1 -0
  13. package/dist/test-bookmark/test-bookmark.d.ts +45 -0
  14. package/dist/test-bookmark/test-bookmark.js +136 -0
  15. package/dist/test-bookmark/test-bookmark.js.map +1 -0
  16. package/dist/test-character-sheet/test-character-sheet.d.ts +46 -0
  17. package/dist/test-character-sheet/test-character-sheet.js +259 -0
  18. package/dist/test-character-sheet/test-character-sheet.js.map +1 -0
  19. package/dist/test-item-link/test-item-link.d.ts +13 -0
  20. package/dist/test-item-link/test-item-link.js +28 -0
  21. package/dist/test-item-link/test-item-link.js.map +1 -0
  22. package/dist/test-lock/test-lock.d.ts +72 -0
  23. package/dist/test-lock/test-lock.js +242 -0
  24. package/dist/test-lock/test-lock.js.map +1 -0
  25. package/dist/test-print-context/test-print-context.d.ts +11 -0
  26. package/dist/test-print-context/test-print-context.js +20 -0
  27. package/dist/test-print-context/test-print-context.js.map +1 -0
  28. package/dist/test-print-item-variables/test-print-item-variables.d.ts +17 -0
  29. package/dist/test-print-item-variables/test-print-item-variables.js +95 -0
  30. package/dist/test-print-item-variables/test-print-item-variables.js.map +1 -0
  31. package/dist/test-print-state/test-print-state.d.ts +29 -0
  32. package/dist/test-print-state/test-print-state.js +101 -0
  33. package/dist/test-print-state/test-print-state.js.map +1 -0
  34. package/dist/test-scoring-buttons/test-scoring-buttons.d.ts +19 -0
  35. package/dist/test-scoring-buttons/test-scoring-buttons.js +95 -0
  36. package/dist/test-scoring-buttons/test-scoring-buttons.js.map +1 -0
  37. package/dist/test-scoring-feedback/test-scoring-feedback.d.ts +13 -0
  38. package/dist/test-scoring-feedback/test-scoring-feedback.js +54 -0
  39. package/dist/test-scoring-feedback/test-scoring-feedback.js.map +1 -0
  40. package/dist/test-section-link/test-section-link.d.ts +13 -0
  41. package/dist/test-section-link/test-section-link.js +28 -0
  42. package/dist/test-section-link/test-section-link.js.map +1 -0
  43. package/dist/test-stamp/test-stamp.d.ts +29 -0
  44. package/dist/test-stamp/test-stamp.js +105 -0
  45. package/dist/test-stamp/test-stamp.js.map +1 -0
  46. package/dist/test-view-toggle/test-view-toggle.d.ts +16 -0
  47. package/dist/test-view-toggle/test-view-toggle.js +49 -0
  48. package/dist/test-view-toggle/test-view-toggle.js.map +1 -0
  49. package/dist/test-view-toggle/test-view.d.ts +20 -0
  50. package/dist/test-view-toggle/test-view.js +73 -0
  51. package/dist/test-view-toggle/test-view.js.map +1 -0
  52. package/dist/test-zoom/test-zoom.d.ts +75 -0
  53. package/dist/test-zoom/test-zoom.js +158 -0
  54. package/dist/test-zoom/test-zoom.js.map +1 -0
  55. package/dist/tts/elements.d.ts +28 -0
  56. package/dist/tts/elements.js +14 -0
  57. package/dist/tts/elements.js.map +1 -0
  58. package/dist/tts/test-item-to-speech.d.ts +260 -0
  59. package/dist/tts/test-item-to-speech.js +1091 -0
  60. package/dist/tts/test-item-to-speech.js.map +1 -0
  61. package/package.json +65 -3
  62. package/README.md +0 -3
@@ -0,0 +1,100 @@
1
+ import { TestBookmark } from './test-bookmark/test-bookmark.js';
2
+ import { TestCharacterSheet } from './test-character-sheet/test-character-sheet.js';
3
+ import { TestItemLink } from './test-item-link/test-item-link.js';
4
+ import { TestLock } from './test-lock/test-lock.js';
5
+ import { TestPrintContext } from './test-print-context/test-print-context.js';
6
+ import { TestPrintVariables } from './test-print-item-variables/test-print-item-variables.js';
7
+ import { TestPrintState } from './test-print-state/test-print-state.js';
8
+ import { TestScoringButtons } from './test-scoring-buttons/test-scoring-buttons.js';
9
+ import { TestScoringFeedback } from './test-scoring-feedback/test-scoring-feedback.js';
10
+ import { TestSectionLink } from './test-section-link/test-section-link.js';
11
+ import { TestStamp } from './test-stamp/test-stamp.js';
12
+ import { TestView } from './test-view-toggle/test-view.js';
13
+ import { TestViewToggle } from './test-view-toggle/test-view-toggle.js';
14
+ import { TestZoomIn, TestZoomOut, TestZoomReset } from './test-zoom/test-zoom.js';
15
+ export * from './tts/elements.js';
16
+ export { bookmarkedItems } from './test-bookmark/test-bookmark.js';
17
+ export { lockState } from './test-lock/test-lock.js';
18
+ export type { LockState } from './test-lock/test-lock.js';
19
+ export { formatVariableValue } from './test-print-item-variables/test-print-item-variables.js';
20
+ export { zoomElements, zoomLevel } from './test-zoom/test-zoom.js';
21
+ export { ttsContext } from './tts/test-item-to-speech.js';
22
+ export type { SpeechState } from './tts/test-item-to-speech.js';
23
+ export { TestBookmark, TestCharacterSheet, TestItemLink, TestLock, TestPrintContext, TestPrintState, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionLink, TestStamp, TestView, TestViewToggle, TestZoomIn, TestZoomOut, TestZoomReset };
24
+ /**
25
+ * The extended plugins' `{ tag, ctor }` pairs, for registering them yourself (in a scoped registry,
26
+ * or next to the correction variants). Defines nothing; `register.ts` and the package root do.
27
+ */
28
+ export declare const qtiExtendedElements: readonly [{
29
+ readonly tag: "test-bookmark";
30
+ readonly ctor: typeof TestBookmark;
31
+ }, {
32
+ readonly tag: "test-character-sheet";
33
+ readonly ctor: typeof TestCharacterSheet;
34
+ }, {
35
+ readonly tag: "test-item-link";
36
+ readonly ctor: typeof TestItemLink;
37
+ }, {
38
+ readonly tag: "test-lock";
39
+ readonly ctor: typeof TestLock;
40
+ }, {
41
+ readonly tag: "test-print-context";
42
+ readonly ctor: typeof TestPrintContext;
43
+ }, {
44
+ readonly tag: "test-print-item-variables";
45
+ readonly ctor: typeof TestPrintVariables;
46
+ }, {
47
+ readonly tag: "test-print-state";
48
+ readonly ctor: typeof TestPrintState;
49
+ }, {
50
+ readonly tag: "test-scoring-buttons";
51
+ readonly ctor: typeof TestScoringButtons;
52
+ }, {
53
+ readonly tag: "test-scoring-feedback";
54
+ readonly ctor: typeof TestScoringFeedback;
55
+ }, {
56
+ readonly tag: "test-section-link";
57
+ readonly ctor: typeof TestSectionLink;
58
+ }, {
59
+ readonly tag: "test-stamp";
60
+ readonly ctor: typeof TestStamp;
61
+ }, {
62
+ readonly tag: "test-view";
63
+ readonly ctor: typeof TestView;
64
+ }, {
65
+ readonly tag: "test-view-toggle";
66
+ readonly ctor: typeof TestViewToggle;
67
+ }, {
68
+ readonly tag: "test-zoom-in";
69
+ readonly ctor: typeof TestZoomIn;
70
+ }, {
71
+ readonly tag: "test-zoom-out";
72
+ readonly ctor: typeof TestZoomOut;
73
+ }, {
74
+ readonly tag: "test-zoom-reset";
75
+ readonly ctor: typeof TestZoomReset;
76
+ }, {
77
+ readonly tag: "test-item-to-speech";
78
+ readonly ctor: typeof import("./elements.js").TestItemToSpeech;
79
+ }, {
80
+ readonly tag: "test-tts-next";
81
+ readonly ctor: typeof import("./elements.js").TestTtsNext;
82
+ }, {
83
+ readonly tag: "test-tts-pause";
84
+ readonly ctor: typeof import("./elements.js").TestTtsPause;
85
+ }, {
86
+ readonly tag: "test-tts-pick";
87
+ readonly ctor: typeof import("./elements.js").TestTtsPick;
88
+ }, {
89
+ readonly tag: "test-tts-play";
90
+ readonly ctor: typeof import("./elements.js").TestTtsPlay;
91
+ }, {
92
+ readonly tag: "test-tts-prev";
93
+ readonly ctor: typeof import("./elements.js").TestTtsPrev;
94
+ }, {
95
+ readonly tag: "test-tts-resume";
96
+ readonly ctor: typeof import("./elements.js").TestTtsResume;
97
+ }, {
98
+ readonly tag: "test-tts-stop";
99
+ readonly ctor: typeof import("./elements.js").TestTtsStop;
100
+ }];
@@ -0,0 +1,44 @@
1
+ import { TestBookmark } from './test-bookmark/test-bookmark.js';
2
+ import { TestCharacterSheet } from './test-character-sheet/test-character-sheet.js';
3
+ import { TestItemLink } from './test-item-link/test-item-link.js';
4
+ import { TestLock } from './test-lock/test-lock.js';
5
+ import { TestPrintContext } from './test-print-context/test-print-context.js';
6
+ import { TestPrintVariables } from './test-print-item-variables/test-print-item-variables.js';
7
+ import { TestPrintState } from './test-print-state/test-print-state.js';
8
+ import { TestScoringButtons } from './test-scoring-buttons/test-scoring-buttons.js';
9
+ import { TestScoringFeedback } from './test-scoring-feedback/test-scoring-feedback.js';
10
+ import { TestSectionLink } from './test-section-link/test-section-link.js';
11
+ import { TestStamp } from './test-stamp/test-stamp.js';
12
+ import { TestView } from './test-view-toggle/test-view.js';
13
+ import { TestViewToggle } from './test-view-toggle/test-view-toggle.js';
14
+ import { TestZoomIn, TestZoomOut, TestZoomReset, zoomElements } from './test-zoom/test-zoom.js';
15
+ import { ttsElements } from './tts/elements.js';
16
+ export * from './tts/elements.js';
17
+ export { bookmarkedItems } from './test-bookmark/test-bookmark.js';
18
+ export { lockState } from './test-lock/test-lock.js';
19
+ export { formatVariableValue } from './test-print-item-variables/test-print-item-variables.js';
20
+ export { zoomElements, zoomLevel } from './test-zoom/test-zoom.js';
21
+ export { ttsContext } from './tts/test-item-to-speech.js';
22
+ export { TestBookmark, TestCharacterSheet, TestItemLink, TestLock, TestPrintContext, TestPrintState, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionLink, TestStamp, TestView, TestViewToggle, TestZoomIn, TestZoomOut, TestZoomReset };
23
+ /**
24
+ * The extended plugins' `{ tag, ctor }` pairs, for registering them yourself (in a scoped registry,
25
+ * or next to the correction variants). Defines nothing; `register.ts` and the package root do.
26
+ */
27
+ export const qtiExtendedElements = [
28
+ { tag: 'test-bookmark', ctor: TestBookmark },
29
+ { tag: 'test-character-sheet', ctor: TestCharacterSheet },
30
+ { tag: 'test-item-link', ctor: TestItemLink },
31
+ { tag: 'test-lock', ctor: TestLock },
32
+ { tag: 'test-print-context', ctor: TestPrintContext },
33
+ { tag: 'test-print-item-variables', ctor: TestPrintVariables },
34
+ { tag: 'test-print-state', ctor: TestPrintState },
35
+ { tag: 'test-scoring-buttons', ctor: TestScoringButtons },
36
+ { tag: 'test-scoring-feedback', ctor: TestScoringFeedback },
37
+ { tag: 'test-section-link', ctor: TestSectionLink },
38
+ { tag: 'test-stamp', ctor: TestStamp },
39
+ { tag: 'test-view', ctor: TestView },
40
+ { tag: 'test-view-toggle', ctor: TestViewToggle },
41
+ ...zoomElements,
42
+ ...ttsElements
43
+ ];
44
+ //# sourceMappingURL=elements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements.js","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;A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IAAI,EAAE,eAAe,EAAE;IACnD,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;IACtC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpC,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,GAAG,YAAY;IACf,GAAG,WAAW;CACN,CAAC","sourcesContent":["import { TestBookmark } from './test-bookmark/test-bookmark.js';\nimport { TestCharacterSheet } from './test-character-sheet/test-character-sheet.js';\nimport { TestItemLink } from './test-item-link/test-item-link.js';\nimport { TestLock } from './test-lock/test-lock.js';\nimport { TestPrintContext } from './test-print-context/test-print-context.js';\nimport { TestPrintVariables } from './test-print-item-variables/test-print-item-variables.js';\nimport { TestPrintState } from './test-print-state/test-print-state.js';\nimport { TestScoringButtons } from './test-scoring-buttons/test-scoring-buttons.js';\nimport { TestScoringFeedback } from './test-scoring-feedback/test-scoring-feedback.js';\nimport { TestSectionLink } from './test-section-link/test-section-link.js';\nimport { TestStamp } from './test-stamp/test-stamp.js';\nimport { TestView } from './test-view-toggle/test-view.js';\nimport { TestViewToggle } from './test-view-toggle/test-view-toggle.js';\nimport { TestZoomIn, TestZoomOut, TestZoomReset, zoomElements } from './test-zoom/test-zoom.js';\nimport { ttsElements } from './tts/elements.js';\n\nexport * from './tts/elements.js';\n\nexport { bookmarkedItems } from './test-bookmark/test-bookmark.js';\nexport { lockState } from './test-lock/test-lock.js';\nexport type { LockState } from './test-lock/test-lock.js';\nexport { formatVariableValue } from './test-print-item-variables/test-print-item-variables.js';\nexport { zoomElements, zoomLevel } from './test-zoom/test-zoom.js';\nexport { ttsContext } from './tts/test-item-to-speech.js';\nexport type { SpeechState } from './tts/test-item-to-speech.js';\n\nexport {\n TestBookmark,\n TestCharacterSheet,\n TestItemLink,\n TestLock,\n TestPrintContext,\n TestPrintState,\n TestPrintVariables,\n TestScoringButtons,\n TestScoringFeedback,\n TestSectionLink,\n TestStamp,\n TestView,\n TestViewToggle,\n TestZoomIn,\n TestZoomOut,\n TestZoomReset\n};\n\n/**\n * The extended plugins' `{ tag, ctor }` pairs, for registering them yourself (in a scoped registry,\n * or next to the correction variants). Defines nothing; `register.ts` and the package root do.\n */\nexport const qtiExtendedElements = [\n { tag: 'test-bookmark', ctor: TestBookmark },\n { tag: 'test-character-sheet', ctor: TestCharacterSheet },\n { tag: 'test-item-link', ctor: TestItemLink },\n { tag: 'test-lock', ctor: TestLock },\n { tag: 'test-print-context', ctor: TestPrintContext },\n { tag: 'test-print-item-variables', ctor: TestPrintVariables },\n { tag: 'test-print-state', ctor: TestPrintState },\n { tag: 'test-scoring-buttons', ctor: TestScoringButtons },\n { tag: 'test-scoring-feedback', ctor: TestScoringFeedback },\n { tag: 'test-section-link', ctor: TestSectionLink },\n { tag: 'test-stamp', ctor: TestStamp },\n { tag: 'test-view', ctor: TestView },\n { tag: 'test-view-toggle', ctor: TestViewToggle },\n ...zoomElements,\n ...ttsElements\n] as const;\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Test plugins beyond the QTI specification, for a candidate's toolbar: bookmark, text-to-speech,
3
+ * zoom and a character sheet. Each is a set of elements placed inside `<test-navigation>` that
4
+ * reads `computedContext` and sends the public requests; the test does not know them.
5
+ *
6
+ * Importing this entry registers the plugins and nothing else: the test, items and interactions
7
+ * come from `@citolab/qti-components` (or `/corrections`), which this package never registers
8
+ * itself, so the two entries load in any order.
9
+ */
10
+ import './register.js';
11
+ export * from './elements.js';
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Test plugins beyond the QTI specification, for a candidate's toolbar: bookmark, text-to-speech,
3
+ * zoom and a character sheet. Each is a set of elements placed inside `<test-navigation>` that
4
+ * reads `computedContext` and sends the public requests; the test does not know them.
5
+ *
6
+ * Importing this entry registers the plugins and nothing else: the test, items and interactions
7
+ * come from `@citolab/qti-components` (or `/corrections`), which this package never registers
8
+ * itself, so the two entries load in any order.
9
+ */
10
+ import './register.js';
11
+ export * from './elements.js';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,eAAe,CAAC;AAEvB,cAAc,eAAe,CAAC","sourcesContent":["/**\n * Test plugins beyond the QTI specification, for a candidate's toolbar: bookmark, text-to-speech,\n * zoom and a character sheet. Each is a set of elements placed inside `<test-navigation>` that\n * reads `computedContext` and sends the public requests; the test does not know them.\n *\n * Importing this entry registers the plugins and nothing else: the test, items and interactions\n * come from `@citolab/qti-components` (or `/corrections`), which this package never registers\n * itself, so the two entries load in any order.\n */\nimport './register.js';\n\nexport * from './elements.js';\n"]}