@citolab/qti-components 7.28.1 → 8.0.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 (82) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +6205 -2973
  3. package/dist/base.d.ts +9 -50
  4. package/dist/base.js +27 -6
  5. package/dist/chunk-5QYII4OZ.js +1374 -0
  6. package/dist/chunk-5QYII4OZ.js.map +1 -0
  7. package/dist/{chunk-MPC7LIPC.js → chunk-5SJS36BI.js} +4264 -3647
  8. package/dist/chunk-5SJS36BI.js.map +1 -0
  9. package/dist/chunk-64XSIBGO.js +241 -0
  10. package/dist/chunk-64XSIBGO.js.map +1 -0
  11. package/dist/{chunk-SP6S2WMG.js → chunk-7V4HJFHW.js} +3 -3
  12. package/dist/{chunk-SP6S2WMG.js.map → chunk-7V4HJFHW.js.map} +1 -1
  13. package/dist/{chunk-3XV26R5M.js → chunk-H3J7LFRO.js} +829 -1005
  14. package/dist/chunk-H3J7LFRO.js.map +1 -0
  15. package/dist/{chunk-3WBG257S.js → chunk-IJD53WY6.js} +96 -74
  16. package/dist/chunk-IJD53WY6.js.map +1 -0
  17. package/dist/chunk-KYEZRYO6.js +1608 -0
  18. package/dist/chunk-KYEZRYO6.js.map +1 -0
  19. package/dist/{chunk-HFCZFWSH.js → chunk-LZJHHZQ2.js} +1954 -1729
  20. package/dist/chunk-LZJHHZQ2.js.map +1 -0
  21. package/dist/chunk-MGF5F3S2.js +11 -0
  22. package/dist/chunk-MGF5F3S2.js.map +1 -0
  23. package/dist/chunk-MJVPNN7W.js +11 -0
  24. package/dist/chunk-MJVPNN7W.js.map +1 -0
  25. package/dist/{chunk-REI3AMCZ.js → chunk-NA2N2WSG.js} +1303 -1193
  26. package/dist/chunk-NA2N2WSG.js.map +1 -0
  27. package/dist/chunk-V5G7X53Y.js +11 -0
  28. package/dist/chunk-V5G7X53Y.js.map +1 -0
  29. package/dist/chunk-W4QZPCNC.js +294 -0
  30. package/dist/chunk-W4QZPCNC.js.map +1 -0
  31. package/dist/chunk-WCQ26LV7.js +102 -0
  32. package/dist/chunk-WCQ26LV7.js.map +1 -0
  33. package/dist/{chunk-WDO2TRFM.js → chunk-WVVMNF74.js} +851 -925
  34. package/dist/chunk-WVVMNF74.js.map +1 -0
  35. package/dist/{chunk-FLJAKWXL.js → chunk-X3E5HXG2.js} +2 -2
  36. package/dist/corrections.d.ts +1 -0
  37. package/dist/corrections.js +84 -0
  38. package/dist/elements.d.ts +1 -399
  39. package/dist/elements.js +6 -5
  40. package/dist/index.d.ts +9 -23
  41. package/dist/index.js +185 -76
  42. package/dist/interactions.d.ts +1 -915
  43. package/dist/interactions.js +19 -15
  44. package/dist/item.css +4118 -1920
  45. package/dist/item.d.ts +1 -134
  46. package/dist/item.js +6 -11
  47. package/dist/loader.d.ts +1 -22
  48. package/dist/loader.js +2 -3
  49. package/dist/processing.d.ts +1 -731
  50. package/dist/processing.js +2 -3
  51. package/dist/qti-components-jsx.d.ts +5220 -2571
  52. package/dist/test.d.ts +1 -539
  53. package/dist/test.js +26 -11
  54. package/dist/transformers.d.ts +1 -18
  55. package/dist/transformers.js +1 -2
  56. package/package.json +19 -15
  57. package/custom-elements.json +0 -43251
  58. package/dist/chunk-3WBG257S.js.map +0 -1
  59. package/dist/chunk-3XV26R5M.js.map +0 -1
  60. package/dist/chunk-AQ5RJFM6.js +0 -3673
  61. package/dist/chunk-AQ5RJFM6.js.map +0 -1
  62. package/dist/chunk-HFCZFWSH.js.map +0 -1
  63. package/dist/chunk-MPC7LIPC.js.map +0 -1
  64. package/dist/chunk-QXBXORM3.js +0 -27
  65. package/dist/chunk-REI3AMCZ.js.map +0 -1
  66. package/dist/chunk-RLTYVS2I.js +0 -530
  67. package/dist/chunk-RLTYVS2I.js.map +0 -1
  68. package/dist/chunk-WDO2TRFM.js.map +0 -1
  69. package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
  70. package/dist/computed.context-DHbxad0N.d.ts +0 -45
  71. package/dist/config.context-BjZ2bZSY.d.ts +0 -42
  72. package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
  73. package/dist/item.context-CkUeDcaO.d.ts +0 -15
  74. package/dist/qti-condition-expression-Dam-RER6.d.ts +0 -26
  75. package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
  76. package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
  77. package/dist/qti-transform-test-DoZaWItm.d.ts +0 -70
  78. package/dist/qti.context-CejJMlfZ.d.ts +0 -50
  79. package/dist/test.context-CByZZjkR.d.ts +0 -15
  80. package/dist/variables-CMYcDbyW.d.ts +0 -70
  81. /package/dist/{chunk-FLJAKWXL.js.map → chunk-X3E5HXG2.js.map} +0 -0
  82. /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
package/dist/base.d.ts CHANGED
@@ -1,50 +1,9 @@
1
- export { C as ComputedItemContext, c as computedItemContext } from './computed-item.context-DfsW_96S.js';
2
- export { C as ComputedContext, a as ComputedItem, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, c as computedContext, s as sessionContext } from './computed.context-DHbxad0N.js';
3
- export { C as ConfigContext, a as CorrectResponseMode, c as configContext } from './config.context-BjZ2bZSY.js';
4
- import { I as ItemContext } from './item.context-CkUeDcaO.js';
5
- export { i as itemContextVariables } from './item.context-CkUeDcaO.js';
6
- export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context-CejJMlfZ.js';
7
- export { I as INITIAL_TEST_CONTEXT, T as TestContext, t as testContext } from './test.context-CByZZjkR.js';
8
- export { C as Correctness, I as IInteraction, a as Interaction } from './interaction-Bgzlw7Iu.js';
9
- export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-ChmXhZuf.js';
10
- export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-Dam-RER6.js';
11
- import { B as BaseType } from './variables-CMYcDbyW.js';
12
- export { C as Calculate, a as Cardinality, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables-CMYcDbyW.js';
13
- export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base-ajOnfGXY.js';
14
- import 'lit';
15
-
16
- declare const itemContext: {
17
- __context__: ItemContext;
18
- };
19
-
20
- declare class ScoringHelper {
21
- /**
22
- * Checks if a given point is within a specified area.
23
- * @param point The point to test, represented as a string "x y" (e.g., "102 113").
24
- * @param areaKey The area definition, including shape and coordinates (e.g., "circle,102,113,16").
25
- * @param baseType The base type of the response, must be "point" for this method to proceed.
26
- * @returns True if the point is within the area; false otherwise.
27
- */
28
- static isPointInArea(point: string, areaKey: string, baseType: string): boolean;
29
- /**
30
- * Checks if a point is inside a polygon using the ray-casting algorithm.
31
- * @param point The point to test.
32
- * @param vertices The vertices of the polygon in order (array of {x, y} objects).
33
- * @returns True if the point is inside the polygon; false otherwise.
34
- */
35
- static isPointInPolygon(point: {
36
- x: number;
37
- y: number;
38
- }, vertices: {
39
- x: number;
40
- y: number;
41
- }[]): boolean;
42
- static compareSingleValues(value1: Readonly<string>, value2: Readonly<string>, baseType: BaseType): boolean;
43
- }
44
-
45
- declare const decimalSeparator: () => string;
46
- declare const convertNumberToUniversalFormat: (number: number | string) => string;
47
- declare function IsNullOrUndefined(value: unknown): boolean;
48
- declare function removeDoubleSlashes(str: string): string;
49
-
50
- export { BaseType, IsNullOrUndefined, ItemContext, ScoringHelper, convertNumberToUniversalFormat, decimalSeparator, itemContext, removeDoubleSlashes };
1
+ export * from '@qti-components/base';
2
+ import '@qti-components/corrections';
3
+ import '@qti-components/elements';
4
+ import '@qti-components/test';
5
+ import '@qti-components/item';
6
+ import '@qti-components/interactions';
7
+ import '@qti-components/transformers';
8
+ import '@qti-components/loader';
9
+ import '@qti-components/processing';
package/dist/base.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import {
2
- Correctness,
3
2
  INITIAL_SESSION_CONTEXT,
4
3
  INITIAL_TEST_CONTEXT,
5
4
  Interaction,
@@ -11,22 +10,32 @@ import {
11
10
  QtiVariableDeclaration,
12
11
  ScoringHelper,
13
12
  asSeed,
13
+ boxSizing,
14
14
  computedContext,
15
15
  computedItemContext,
16
16
  configContext,
17
17
  convertNumberToUniversalFormat,
18
18
  decimalSeparator,
19
+ dropRegion,
20
+ interactionContext,
19
21
  isSeed,
20
22
  itemContext,
21
23
  itemContextVariables,
24
+ iterResponseValues,
25
+ parsePair,
26
+ parsePoint,
27
+ parseResponseAttribute,
22
28
  qtiContext,
23
29
  removeDoubleSlashes,
30
+ responseAttributeConverter,
31
+ serializePair,
32
+ serializePoint,
33
+ serializeResponseAttribute,
24
34
  sessionContext,
25
- testContext
26
- } from "./chunk-3XV26R5M.js";
27
- import "./chunk-QXBXORM3.js";
35
+ testContext,
36
+ validationMessage
37
+ } from "./chunk-H3J7LFRO.js";
28
38
  export {
29
- Correctness,
30
39
  INITIAL_SESSION_CONTEXT,
31
40
  INITIAL_TEST_CONTEXT,
32
41
  Interaction,
@@ -38,17 +47,29 @@ export {
38
47
  QtiVariableDeclaration,
39
48
  ScoringHelper,
40
49
  asSeed,
50
+ boxSizing,
41
51
  computedContext,
42
52
  computedItemContext,
43
53
  configContext,
44
54
  convertNumberToUniversalFormat,
45
55
  decimalSeparator,
56
+ dropRegion,
57
+ interactionContext,
46
58
  isSeed,
47
59
  itemContext,
48
60
  itemContextVariables,
61
+ iterResponseValues,
62
+ parsePair,
63
+ parsePoint,
64
+ parseResponseAttribute,
49
65
  qtiContext,
50
66
  removeDoubleSlashes,
67
+ responseAttributeConverter,
68
+ serializePair,
69
+ serializePoint,
70
+ serializeResponseAttribute,
51
71
  sessionContext,
52
- testContext
72
+ testContext,
73
+ validationMessage
53
74
  };
54
75
  //# sourceMappingURL=base.js.map