@citolab/qti-components 6.0.6 → 6.0.7
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.
- package/dist/{chunk-OIQME3LC.js → chunk-YDZUFMBB.js} +15 -23
- package/dist/custom-elements.json +423 -500
- package/dist/index.css +11 -7
- package/dist/index.d.ts +2 -6
- package/dist/index.js +40 -48
- package/dist/qti-item/index.d.ts +4 -34
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-8c26fa9e.d.ts +30 -0
- package/dist/qti-item-react/index.d.ts +3 -4
- package/dist/qti-item-react/index.js +1 -1
- package/package.json +5 -4
- package/dist/chunk-67UY4OJW.js +0 -2121
- package/dist/chunk-7RTSAPMF.js +0 -2135
- package/dist/chunk-E7DMNXUW.js +0 -2127
- package/dist/chunk-K2XJ4SA2.js +0 -2211
- package/dist/chunk-MGEP4U4L.js +0 -2139
- package/dist/chunk-QH4IMEWP.js +0 -2175
- package/dist/chunk-TI6G3PT6.js +0 -2172
- package/dist/qti-simple-choice-4df32b16.d.ts +0 -352
package/dist/qti-item/index.d.ts
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
declare class ScaleToFitInterface {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare const QtiItem_base: (new (...args: any[]) => ScaleToFitInterface) & typeof LitElement;
|
|
10
|
-
declare class QtiItem extends QtiItem_base {
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
handleDisabledChange(old: any, disabled: boolean): void;
|
|
13
|
-
readonly: boolean;
|
|
14
|
-
handleReadonlyChange(old: any, readonly: boolean): void;
|
|
15
|
-
responses: ResponseInteraction[];
|
|
16
|
-
handleResponsesChange(old: any, responses: ResponseInteraction[]): void;
|
|
17
|
-
set qtiContext(context: {
|
|
18
|
-
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
19
|
-
});
|
|
20
|
-
private provider;
|
|
21
|
-
private _xml;
|
|
22
|
-
get _item(): QtiAssessmentItem;
|
|
23
|
-
set xml(val: string);
|
|
24
|
-
get xml(): string;
|
|
25
|
-
static styles: lit.CSSResult;
|
|
26
|
-
processResponse: () => boolean;
|
|
27
|
-
showCorrectResponse: () => void;
|
|
28
|
-
validateResponses: () => boolean;
|
|
29
|
-
resetInteractions: () => void;
|
|
30
|
-
connectedCallback(): void;
|
|
31
|
-
render: () => lit_html.TemplateResult<1>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { QtiItem };
|
|
1
|
+
export { Q as QtiItem } from '../qti-item-8c26fa9e.js';
|
|
2
|
+
import 'lit-html';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import '../qti-assessment-item-f1fcf393.js';
|
package/dist/qti-item/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../chunk-
|
|
1
|
+
import{a as o}from"../chunk-YDZUFMBB.js";import"../chunk-DLLHO3W2.js";import"../chunk-NMCIOGD2.js";export{o as QtiItem};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { a as ResponseInteraction, Q as QtiAssessmentItem } from './qti-assessment-item-f1fcf393.js';
|
|
5
|
+
|
|
6
|
+
declare class QtiItem extends LitElement {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
handleDisabledChange(old: any, disabled: boolean): void;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
handleReadonlyChange(old: any, readonly: boolean): void;
|
|
11
|
+
responses: ResponseInteraction[];
|
|
12
|
+
handleResponsesChange(old: any, responses: ResponseInteraction[]): void;
|
|
13
|
+
set qtiContext(context: {
|
|
14
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
15
|
+
});
|
|
16
|
+
private provider;
|
|
17
|
+
get _item(): QtiAssessmentItem;
|
|
18
|
+
private _xml;
|
|
19
|
+
set xml(val: string);
|
|
20
|
+
get xml(): string;
|
|
21
|
+
static styles: lit.CSSResult;
|
|
22
|
+
processResponse: () => boolean;
|
|
23
|
+
showCorrectResponse: () => void;
|
|
24
|
+
validateResponses: () => boolean;
|
|
25
|
+
resetInteractions: () => void;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
render: () => lit_html.TemplateResult<1>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { QtiItem as Q };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { Ref } from 'react';
|
|
2
|
+
import { Q as QtiItem$1 } from '../qti-item-8c26fa9e.js';
|
|
2
3
|
import { a as ResponseInteraction } from '../qti-assessment-item-f1fcf393.js';
|
|
3
4
|
import { O as OutcomeChangedDetails, b as InteractionChangedDetails } from '../qti-simple-choice-e1c352e0.js';
|
|
4
5
|
import 'lit-html';
|
|
@@ -6,13 +7,11 @@ import 'lit';
|
|
|
6
7
|
import 'lit-html/directives/ref';
|
|
7
8
|
|
|
8
9
|
interface QtiItemProps {
|
|
9
|
-
ref?:
|
|
10
|
+
ref?: Ref<QtiItem$1>;
|
|
10
11
|
className?: string;
|
|
11
|
-
scales?: boolean;
|
|
12
12
|
responses?: ResponseInteraction[];
|
|
13
13
|
xml: string;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
-
readonly?: boolean;
|
|
16
15
|
qtiContext?: {
|
|
17
16
|
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
18
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../chunk-
|
|
1
|
+
import{a as e}from"../chunk-YDZUFMBB.js";import"../chunk-DLLHO3W2.js";import"../chunk-NMCIOGD2.js";import t from"react";import{createComponent as o}from"@lit-labs/react";var c=o({tagName:"qti-item",react:t,elementClass:e,events:{qtioutcomechanged:"qti-outcome-changed",qtiinteractionchanged:"qti-interaction-changed",qtiitemconnected:"qti-item-connected"}});export{c as QtiItem};
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=16.0.0"
|
|
14
14
|
},
|
|
15
|
-
"version": "6.0.
|
|
15
|
+
"version": "6.0.7",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"main": "dist/qti-components/index.js",
|
|
18
18
|
"exports": {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"storybook": "storybook dev -p 6006",
|
|
72
72
|
"deploy": "firebase deploy --only hosting:qti-components",
|
|
73
73
|
"build-storybook": "storybook build",
|
|
74
|
-
"
|
|
75
|
-
"publish
|
|
74
|
+
"prepare": "npm run build-lib",
|
|
75
|
+
"publish": "np",
|
|
76
76
|
"test-storybook": "test-storybook",
|
|
77
77
|
"cem": "cem analyze --watch",
|
|
78
78
|
"lint": "eslint src/lib/**",
|
|
@@ -140,7 +140,8 @@
|
|
|
140
140
|
"ts-node": "^10.9.1",
|
|
141
141
|
"tsup": "^6.7.0",
|
|
142
142
|
"typescript": "^4.9.5",
|
|
143
|
-
"vite": "^4.2.0"
|
|
143
|
+
"vite": "^4.2.0",
|
|
144
|
+
"np": "^8.0.4"
|
|
144
145
|
},
|
|
145
146
|
"customElements": "custom-elements.json"
|
|
146
147
|
}
|