@citolab/qti-components 7.26.0 → 7.27.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 (39) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +351 -342
  3. package/custom-elements.json +17216 -18384
  4. package/dist/base.d.ts +2 -2
  5. package/dist/base.js +1 -1
  6. package/dist/{chunk-FEO7D54Z.js → chunk-75ME6QG5.js} +3 -3
  7. package/dist/{chunk-VQAG7NSK.js → chunk-DG5TP35K.js} +2 -2
  8. package/dist/{chunk-IKBPPSNQ.js → chunk-G5ZUC3OT.js} +14 -2
  9. package/dist/{chunk-IKBPPSNQ.js.map → chunk-G5ZUC3OT.js.map} +1 -1
  10. package/dist/{chunk-RKXUA6D6.js → chunk-GG36UR7F.js} +2 -2
  11. package/dist/{chunk-DUBGJJ75.js → chunk-QUWFDFGZ.js} +3 -3
  12. package/dist/{chunk-BHB6PYJG.js → chunk-TORB5UN2.js} +1 -59
  13. package/dist/chunk-TORB5UN2.js.map +1 -0
  14. package/dist/{chunk-LPVYU726.js → chunk-TZMDZQFG.js} +4 -4
  15. package/dist/{chunk-I4NHZ6D6.js → chunk-XZY2TIZJ.js} +8404 -6413
  16. package/dist/chunk-XZY2TIZJ.js.map +1 -0
  17. package/dist/config.context-BjZ2bZSY.d.ts +42 -0
  18. package/dist/elements.js +3 -3
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +8 -8
  21. package/dist/{interaction-B1Pu7KOD.d.ts → interaction-Bgzlw7Iu.d.ts} +1 -1
  22. package/dist/interactions.d.ts +124 -13
  23. package/dist/interactions.js +3 -3
  24. package/dist/item.css +12 -0
  25. package/dist/item.d.ts +1 -1
  26. package/dist/item.js +3 -3
  27. package/dist/processing.js +2 -2
  28. package/dist/qti-components-jsx.d.ts +1169 -1126
  29. package/dist/test.d.ts +1 -1
  30. package/dist/test.js +5 -5
  31. package/package.json +1 -1
  32. package/dist/chunk-BHB6PYJG.js.map +0 -1
  33. package/dist/chunk-I4NHZ6D6.js.map +0 -1
  34. package/dist/config.context-DUz2-kxN.d.ts +0 -14
  35. /package/dist/{chunk-FEO7D54Z.js.map → chunk-75ME6QG5.js.map} +0 -0
  36. /package/dist/{chunk-VQAG7NSK.js.map → chunk-DG5TP35K.js.map} +0 -0
  37. /package/dist/{chunk-RKXUA6D6.js.map → chunk-GG36UR7F.js.map} +0 -0
  38. /package/dist/{chunk-DUBGJJ75.js.map → chunk-QUWFDFGZ.js.map} +0 -0
  39. /package/dist/{chunk-LPVYU726.js.map → chunk-TZMDZQFG.js.map} +0 -0
package/dist/base.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  export { C as ComputedItemContext, c as computedItemContext } from './computed-item.context-DfsW_96S.js';
2
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-DUz2-kxN.js';
3
+ export { C as ConfigContext, a as CorrectResponseMode, c as configContext } from './config.context-BjZ2bZSY.js';
4
4
  import { I as ItemContext } from './item.context-CkUeDcaO.js';
5
5
  export { i as itemContextVariables } from './item.context-CkUeDcaO.js';
6
6
  export { Q as QtiContext, a as QtiContextType, q as qtiContext } from './qti.context-B8PSyIWm.js';
7
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-B1Pu7KOD.js';
8
+ export { C as Correctness, I as IInteraction, a as Interaction } from './interaction-Bgzlw7Iu.js';
9
9
  export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-BZjWNyxP.js';
10
10
  export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase, c as QtiRuleBase, d as QtiRuleElement } from './qti-rule-base-DGhWN-as.js';
11
11
  import { B as BaseType } from './variables-CMYcDbyW.js';
package/dist/base.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  removeDoubleSlashes,
22
22
  sessionContext,
23
23
  testContext
24
- } from "./chunk-BHB6PYJG.js";
24
+ } from "./chunk-TORB5UN2.js";
25
25
  import "./chunk-QXBXORM3.js";
26
26
  export {
27
27
  Correctness,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  item_default,
3
3
  m
4
- } from "./chunk-IKBPPSNQ.js";
4
+ } from "./chunk-G5ZUC3OT.js";
5
5
  import {
6
6
  qtiTransformItem
7
7
  } from "./chunk-K7HR6ZAY.js";
@@ -17,7 +17,7 @@ import {
17
17
  t,
18
18
  watch,
19
19
  x
20
- } from "./chunk-BHB6PYJG.js";
20
+ } from "./chunk-TORB5UN2.js";
21
21
  import {
22
22
  __decorateClass,
23
23
  __privateAdd,
@@ -507,4 +507,4 @@ export {
507
507
  ItemPrintVariables,
508
508
  QtiItem
509
509
  };
510
- //# sourceMappingURL=chunk-FEO7D54Z.js.map
510
+ //# sourceMappingURL=chunk-75ME6QG5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  E
3
- } from "./chunk-BHB6PYJG.js";
3
+ } from "./chunk-TORB5UN2.js";
4
4
 
5
5
  // ../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/node/directives/if-defined.js
6
6
  var o = (o2) => o2 ?? E;
@@ -17,4 +17,4 @@ lit-html/node/directives/if-defined.js:
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  *)
19
19
  */
20
- //# sourceMappingURL=chunk-VQAG7NSK.js.map
20
+ //# sourceMappingURL=chunk-DG5TP35K.js.map
@@ -3,7 +3,7 @@ import {
3
3
  f,
4
4
  i4 as i,
5
5
  w
6
- } from "./chunk-BHB6PYJG.js";
6
+ } from "./chunk-TORB5UN2.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/node/directives/private-async-helpers.js
9
9
  var s = class {
@@ -2333,6 +2333,9 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2333
2333
  border-color: var(--qti-border-color);
2334
2334
  outline: 4px solid var(--qti-disabled-bg)
2335
2335
  }
2336
+ &:not(:empty) {
2337
+ border-color: var(--qti-border) !important;
2338
+ }
2336
2339
  &:empty::after {
2337
2340
  padding: var(--qti-padding-md) var(--qti-padding-lg);
2338
2341
  content: '\\0000a0';
@@ -2347,6 +2350,14 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2347
2350
  box-shadow: 0 0 0 1px #e5e7eb;
2348
2351
  }
2349
2352
  }
2353
+ &.qti-selections-light qti-associable-hotspot:not(:empty) {
2354
+ background-color: var(--qti-light-bg-active) !important;
2355
+ border-color: var(--qti-light-border-active) !important;
2356
+ }
2357
+ &.qti-selections-dark qti-associable-hotspot:not(:empty) {
2358
+ background-color: var(--qti-dark-bg-active) !important;
2359
+ border-color: var(--qti-dark-border-active) !important;
2360
+ }
2350
2361
  & img {
2351
2362
  margin: 0;
2352
2363
  padding: 0;
@@ -2501,6 +2512,7 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2501
2512
  }
2502
2513
  display: inline-flex;
2503
2514
  align-items: center;
2515
+ vertical-align: middle;
2504
2516
  &:empty::after {
2505
2517
  padding: var(--qti-padding-md) var(--qti-padding-lg);
2506
2518
  content: '\\0000a0';
@@ -3658,4 +3670,4 @@ lit-html/node/directives/until.js:
3658
3670
  * SPDX-License-Identifier: BSD-3-Clause
3659
3671
  *)
3660
3672
  */
3661
- //# sourceMappingURL=chunk-IKBPPSNQ.js.map
3673
+ //# sourceMappingURL=chunk-G5ZUC3OT.js.map