@citolab/qti-components 7.28.0 → 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 (83) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +6178 -2946
  3. package/dist/base.d.ts +9 -50
  4. package/dist/base.js +31 -6
  5. package/dist/chunk-5QYII4OZ.js +1374 -0
  6. package/dist/chunk-5QYII4OZ.js.map +1 -0
  7. package/dist/{chunk-FK2IVMS3.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-F6WP6WEF.js → chunk-7V4HJFHW.js} +3 -3
  12. package/dist/{chunk-F6WP6WEF.js.map → chunk-7V4HJFHW.js.map} +1 -1
  13. package/dist/{chunk-Z2SUBRH5.js → chunk-H3J7LFRO.js} +834 -1005
  14. package/dist/chunk-H3J7LFRO.js.map +1 -0
  15. package/dist/chunk-IJD53WY6.js +719 -0
  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-PINGOK2F.js → chunk-LZJHHZQ2.js} +1979 -1775
  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-YLIYPNMK.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-OQ77SE2W.js → chunk-WVVMNF74.js} +851 -925
  34. package/dist/chunk-WVVMNF74.js.map +1 -0
  35. package/dist/{chunk-N7S3GNUP.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 +189 -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 -127
  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 +5394 -2718
  52. package/dist/test.d.ts +1 -537
  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 +20 -16
  57. package/custom-elements.json +0 -43161
  58. package/dist/chunk-BPIDAS3T.js +0 -495
  59. package/dist/chunk-BPIDAS3T.js.map +0 -1
  60. package/dist/chunk-FK2IVMS3.js.map +0 -1
  61. package/dist/chunk-LQZCSHN5.js +0 -3673
  62. package/dist/chunk-LQZCSHN5.js.map +0 -1
  63. package/dist/chunk-OQ77SE2W.js.map +0 -1
  64. package/dist/chunk-PINGOK2F.js.map +0 -1
  65. package/dist/chunk-QXBXORM3.js +0 -27
  66. package/dist/chunk-U2FLSHK7.js +0 -510
  67. package/dist/chunk-U2FLSHK7.js.map +0 -1
  68. package/dist/chunk-YLIYPNMK.js.map +0 -1
  69. package/dist/chunk-Z2SUBRH5.js.map +0 -1
  70. package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
  71. package/dist/computed.context-DHbxad0N.d.ts +0 -45
  72. package/dist/config.context-BjZ2bZSY.d.ts +0 -42
  73. package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
  74. package/dist/item.context-CkUeDcaO.d.ts +0 -15
  75. package/dist/qti-condition-expression-B1BYmCcq.d.ts +0 -26
  76. package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
  77. package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
  78. package/dist/qti-transform-test-DMx816H0.d.ts +0 -68
  79. package/dist/qti.context-B8PSyIWm.d.ts +0 -14
  80. package/dist/test.context-CByZZjkR.d.ts +0 -15
  81. package/dist/variables-CMYcDbyW.d.ts +0 -70
  82. /package/dist/{chunk-N7S3GNUP.js.map → chunk-X3E5HXG2.js.map} +0 -0
  83. /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, q as qtiContext } from './qti.context-B8PSyIWm.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-B1BYmCcq.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,
@@ -10,21 +9,33 @@ import {
10
9
  QtiRuleElement,
11
10
  QtiVariableDeclaration,
12
11
  ScoringHelper,
12
+ asSeed,
13
+ boxSizing,
13
14
  computedContext,
14
15
  computedItemContext,
15
16
  configContext,
16
17
  convertNumberToUniversalFormat,
17
18
  decimalSeparator,
19
+ dropRegion,
20
+ interactionContext,
21
+ isSeed,
18
22
  itemContext,
19
23
  itemContextVariables,
24
+ iterResponseValues,
25
+ parsePair,
26
+ parsePoint,
27
+ parseResponseAttribute,
20
28
  qtiContext,
21
29
  removeDoubleSlashes,
30
+ responseAttributeConverter,
31
+ serializePair,
32
+ serializePoint,
33
+ serializeResponseAttribute,
22
34
  sessionContext,
23
- testContext
24
- } from "./chunk-Z2SUBRH5.js";
25
- import "./chunk-QXBXORM3.js";
35
+ testContext,
36
+ validationMessage
37
+ } from "./chunk-H3J7LFRO.js";
26
38
  export {
27
- Correctness,
28
39
  INITIAL_SESSION_CONTEXT,
29
40
  INITIAL_TEST_CONTEXT,
30
41
  Interaction,
@@ -35,16 +46,30 @@ export {
35
46
  QtiRuleElement,
36
47
  QtiVariableDeclaration,
37
48
  ScoringHelper,
49
+ asSeed,
50
+ boxSizing,
38
51
  computedContext,
39
52
  computedItemContext,
40
53
  configContext,
41
54
  convertNumberToUniversalFormat,
42
55
  decimalSeparator,
56
+ dropRegion,
57
+ interactionContext,
58
+ isSeed,
43
59
  itemContext,
44
60
  itemContextVariables,
61
+ iterResponseValues,
62
+ parsePair,
63
+ parsePoint,
64
+ parseResponseAttribute,
45
65
  qtiContext,
46
66
  removeDoubleSlashes,
67
+ responseAttributeConverter,
68
+ serializePair,
69
+ serializePoint,
70
+ serializeResponseAttribute,
47
71
  sessionContext,
48
- testContext
72
+ testContext,
73
+ validationMessage
49
74
  };
50
75
  //# sourceMappingURL=base.js.map