@citolab/qti-components 6.0.20 → 6.0.23

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 (47) hide show
  1. package/dist/audience-context-444478f4.d.ts +8 -0
  2. package/dist/chunk-3O4URV5U.cjs +1 -0
  3. package/dist/chunk-5GG2XAUT.js +1 -0
  4. package/dist/chunk-6RJ7J4AE.cjs +1 -0
  5. package/dist/{chunk-5RZQOWDC.js → chunk-EHTDKAYF.js} +27 -5
  6. package/dist/chunk-GGEPFBR7.cjs +1 -0
  7. package/dist/chunk-HOQW4KDA.cjs +1 -0
  8. package/dist/{chunk-AQI672QR.js → chunk-VI35S4EM.cjs} +28 -6
  9. package/dist/context/index.cjs +1 -0
  10. package/dist/context/index.d.cts +1 -0
  11. package/dist/context/index.d.ts +1 -1
  12. package/dist/context/index.js +1 -1
  13. package/dist/custom-elements.json +653 -600
  14. package/dist/decorators/index.cjs +1 -0
  15. package/dist/decorators/index.d.cts +37 -0
  16. package/dist/index.cjs +2911 -0
  17. package/dist/index.css +25 -3
  18. package/dist/index.d.cts +1052 -0
  19. package/dist/index.d.ts +38 -41
  20. package/dist/index.js +98 -66
  21. package/dist/{qti-assessment-item-f1fcf393.d.ts → qti-assessment-item-e8a67444.d.ts} +17 -28
  22. package/dist/qti-components/index.cjs +419 -0
  23. package/dist/qti-components/index.d.cts +561 -0
  24. package/dist/qti-components/index.d.ts +24 -14
  25. package/dist/qti-components/index.js +76 -66
  26. package/dist/qti-item/index.cjs +1 -0
  27. package/dist/qti-item/index.d.cts +4 -0
  28. package/dist/qti-item/index.d.ts +2 -2
  29. package/dist/qti-item/index.js +1 -1
  30. package/dist/{qti-item-8c26fa9e.d.ts → qti-item-77742afa.d.ts} +1 -1
  31. package/dist/qti-item-react/index.cjs +1 -0
  32. package/dist/qti-item-react/index.d.cts +30 -0
  33. package/dist/qti-item-react/index.d.ts +3 -3
  34. package/dist/qti-item-react/index.js +1 -1
  35. package/dist/{qti-simple-choice-3e910d03.d.ts → qti-simple-choice-b4b79072.d.ts} +2 -2
  36. package/dist/qti-transform/index.cjs +17 -0
  37. package/dist/qti-transform/index.d.cts +17 -0
  38. package/package.json +25 -15
  39. package/dist/chunk-FIJLDR56.js +0 -2204
  40. package/dist/chunk-HQKT4SJF.js +0 -1
  41. package/dist/chunk-RPGALUIV.js +0 -1
  42. package/dist/chunk-UD6XWG6V.js +0 -2205
  43. package/dist/context-a957e50e.d.ts +0 -9
  44. package/dist/qti-assessment-item-68bcc951.d.ts +0 -121
  45. package/dist/qti-item-e1fc6a70.d.ts +0 -30
  46. package/dist/qti-simple-choice-ca9b86db.d.ts +0 -352
  47. package/dist/qti-simple-choice-d1392d78.d.ts +0 -352
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6RJ7J4AEcjs = require('../chunk-6RJ7J4AE.cjs');var _chunk3O4URV5Ucjs = require('../chunk-3O4URV5U.cjs');require('../chunk-HOQW4KDA.cjs');exports.liveQuery = _chunk6RJ7J4AEcjs.a; exports.watch = _chunk3O4URV5Ucjs.a;
@@ -0,0 +1,37 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ type UpdateHandler$1 = (prev?: unknown, next?: unknown) => void;
4
+ type NonUndefined$1<A> = A extends undefined ? never : A;
5
+ type UpdateHandlerFunctionKeys$1<T extends object> = {
6
+ [K in keyof T]-?: NonUndefined$1<T[K]> extends UpdateHandler$1 ? K : never;
7
+ }[keyof T];
8
+ interface LiveQueryOptions {
9
+ }
10
+ declare function liveQuery(querySelector: string, options?: LiveQueryOptions): <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys$1<ElemClass>) => void;
11
+
12
+ type UpdateHandler = (prev?: unknown, next?: unknown) => void;
13
+ type NonUndefined<A> = A extends undefined ? never : A;
14
+ type UpdateHandlerFunctionKeys<T extends object> = {
15
+ [K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;
16
+ }[keyof T];
17
+ interface WatchOptions {
18
+ /**
19
+ * If true, will only start watching after the initial update/render
20
+ */
21
+ waitUntilFirstUpdate?: boolean;
22
+ }
23
+ /**
24
+ * Runs when observed properties change, e.g. @property or @state, but before the component updates. To wait for an
25
+ * update to complete after a change occurs, use `await this.updateComplete` in the handler. To start watching after the
26
+ * initial update/render, use `{ waitUntilFirstUpdate: true }` or `this.hasUpdated` in the handler.
27
+ *
28
+ * Usage:
29
+ *
30
+ * @watch('propName')
31
+ * handlePropChange(oldValue, newValue) {
32
+ * ...
33
+ * }
34
+ */
35
+ declare function watch(propertyName: string | string[], options?: WatchOptions): <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => void;
36
+
37
+ export { liveQuery, watch };