@pie-qti/player-elements 0.1.9 → 0.1.11
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/auto-render-C11bWQ2g.js +22214 -0
- package/dist/auto-render-C11bWQ2g.js.map +1 -0
- package/dist/constants.d.ts +0 -1
- package/dist/define-Cv9Vn4ck.js +15942 -0
- package/dist/define-Cv9Vn4ck.js.map +1 -0
- package/dist/define.d.ts +0 -1
- package/dist/{define-DPg3JNEa.js → element-C5Y0zSz-.js} +6991 -19124
- package/dist/element-C5Y0zSz-.js.map +1 -0
- package/dist/elements/BaseSvelteMountElement.d.ts +2 -4
- package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -2
- package/dist/elements/QtiItemPlayerElement.d.ts +2 -43
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -2
- package/dist/{mathlive.min-Bvtiaxg4-DowLLRdc.js → mathlive.min-CAPebTxM-B2nv52My.js} +7 -8
- package/dist/{mathlive.min-Bvtiaxg4-DowLLRdc.js.map → mathlive.min-CAPebTxM-B2nv52My.js.map} +1 -1
- package/dist/plugins-B5K6bN6Q.js +58389 -0
- package/dist/plugins-B5K6bN6Q.js.map +1 -0
- package/dist/qti/parseAssessmentTest.d.ts +0 -1
- package/dist/qti/resolveItems.d.ts +0 -1
- package/dist/qti/types.d.ts +0 -1
- package/dist/register.d.ts +0 -1
- package/dist/register.js +1 -1
- package/dist/utils/json.d.ts +0 -1
- package/package.json +5 -4
- package/dist/constants.d.ts.map +0 -1
- package/dist/define-DPg3JNEa.js.map +0 -1
- package/dist/define.d.ts.map +0 -1
- package/dist/elements/BaseSvelteMountElement.d.ts.map +0 -1
- package/dist/elements/QtiAssessmentPlayerElement.d.ts.map +0 -1
- package/dist/elements/QtiItemPlayerElement.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/plugins-pzX_zWVC.js +0 -42569
- package/dist/plugins-pzX_zWVC.js.map +0 -1
- package/dist/qti/parseAssessmentTest.d.ts.map +0 -1
- package/dist/qti/resolveItems.d.ts.map +0 -1
- package/dist/qti/types.d.ts.map +0 -1
- package/dist/register.d.ts.map +0 -1
- package/dist/utils/json.d.ts.map +0 -1
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { Component } from 'svelte';
|
|
2
1
|
export declare abstract class BaseSvelteMountElement<TProps extends Record<string, unknown>> extends HTMLElement {
|
|
3
2
|
#private;
|
|
4
|
-
protected abstract Component:
|
|
3
|
+
protected abstract Component: any;
|
|
5
4
|
protected abstract getProps(): TProps;
|
|
6
|
-
protected _instance: any;
|
|
5
|
+
protected get _instance(): any;
|
|
7
6
|
connectedCallback(): void;
|
|
8
7
|
disconnectedCallback(): void;
|
|
9
8
|
protected _mountOrUpdate(): void;
|
|
10
9
|
protected _teardownInstance(): void;
|
|
11
10
|
}
|
|
12
|
-
//# sourceMappingURL=BaseSvelteMountElement.d.ts.map
|
|
@@ -19,7 +19,7 @@ export type QtiAssessmentSubmitDetail = {
|
|
|
19
19
|
export declare class QtiAssessmentPlayerElement extends BaseSvelteMountElement<Record<string, unknown>> {
|
|
20
20
|
#private;
|
|
21
21
|
static get observedAttributes(): string[];
|
|
22
|
-
protected Component:
|
|
22
|
+
protected Component: any;
|
|
23
23
|
connectedCallback(): void;
|
|
24
24
|
protected _mountOrUpdate(): void;
|
|
25
25
|
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
|
|
@@ -51,4 +51,3 @@ export declare class QtiAssessmentPlayerElement extends BaseSvelteMountElement<R
|
|
|
51
51
|
getProps(): any;
|
|
52
52
|
}
|
|
53
53
|
export declare function defineQtiAssessmentPlayerElement(): void;
|
|
54
|
-
//# sourceMappingURL=QtiAssessmentPlayerElement.d.ts.map
|
|
@@ -1,49 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import '@pie-qti/item-player/element';
|
|
2
|
+
export { PieQtiItemPlayerElement as QtiItemPlayerElement } from '@pie-qti/item-player/element';
|
|
3
3
|
export type QtiItemPlayerResponseChangeDetail = {
|
|
4
4
|
responseId: string;
|
|
5
5
|
value: unknown;
|
|
6
6
|
responses: Record<string, unknown>;
|
|
7
7
|
};
|
|
8
|
-
export declare class QtiItemPlayerElement extends BaseSvelteMountElement<Record<string, unknown>> {
|
|
9
|
-
#private;
|
|
10
|
-
static get observedAttributes(): string[];
|
|
11
|
-
protected Component: import("svelte/legacy").LegacyComponentType;
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
|
|
14
|
-
/**
|
|
15
|
-
* Preferred API: set QTI via JS property (attributes are awkward for large XML).
|
|
16
|
-
*/
|
|
17
|
-
get itemXml(): string | null;
|
|
18
|
-
set itemXml(value: string | null);
|
|
19
|
-
get identifier(): string;
|
|
20
|
-
set identifier(value: string);
|
|
21
|
-
get title(): string;
|
|
22
|
-
set title(value: string);
|
|
23
|
-
get role(): QTIRole;
|
|
24
|
-
set role(value: QTIRole);
|
|
25
|
-
get extendedTextEditor(): "tiptap" | "textarea";
|
|
26
|
-
set extendedTextEditor(value: 'tiptap' | 'textarea');
|
|
27
|
-
get responses(): Record<string, unknown>;
|
|
28
|
-
set responses(value: Record<string, unknown>);
|
|
29
|
-
get security(): PlayerSecurityConfig | undefined;
|
|
30
|
-
set security(value: PlayerSecurityConfig | undefined);
|
|
31
|
-
/**
|
|
32
|
-
* Convenience: programmatically set a response.
|
|
33
|
-
*/
|
|
34
|
-
setResponse(responseId: string, value: unknown): void;
|
|
35
|
-
getProps(): {
|
|
36
|
-
itemRef: {
|
|
37
|
-
identifier: string;
|
|
38
|
-
title: string | undefined;
|
|
39
|
-
itemXml: string;
|
|
40
|
-
};
|
|
41
|
-
role: QTIRole;
|
|
42
|
-
extendedTextEditor: "textarea" | "tiptap";
|
|
43
|
-
responses: Record<string, unknown>;
|
|
44
|
-
security: PlayerSecurityConfig | undefined;
|
|
45
|
-
onResponseChange: (responseId: string, value: unknown) => void;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
8
|
export declare function defineQtiItemPlayerElement(): void;
|
|
49
|
-
//# sourceMappingURL=QtiItemPlayerElement.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export type { QtiItemMap } from './qti/resolveItems.js';
|
|
|
6
6
|
export { parseAssessmentTestXml } from './qti/parseAssessmentTest.js';
|
|
7
7
|
export { resolveItemsForAssessment } from './qti/resolveItems.js';
|
|
8
8
|
export type { ParsedAssessmentTest, ParsedTestPart, ParsedAssessmentSection, ParsedAssessmentItemRef, } from './qti/types.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { n as e } from "./element-C5Y0zSz-.js";
|
|
2
|
+
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./define-Cv9Vn4ck.js";
|
|
3
|
+
export { s as QTI_ASSESSMENT_PLAYER_TAG, n as QTI_ITEM_PLAYER_TAG, o as QtiAssessmentPlayerElement, e as QtiItemPlayerElement, r as defineQtiAssessmentPlayerElement, i as defineQtiItemPlayerElement, c as defineQtiPlayerElements, a as parseAssessmentTestXml, t as resolveItemsForAssessment };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../default-components/dist/chunks/mathlive.min-
|
|
1
|
+
//#region ../default-components/dist/chunks/mathlive.min-CAPebTxM.js
|
|
2
2
|
var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPropertyDescriptors, r = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable, o = (t, n, r) => n in t ? e(t, n, {
|
|
3
3
|
enumerable: !0,
|
|
4
4
|
configurable: !0,
|
|
@@ -36644,8 +36644,7 @@ var u_ = class {
|
|
|
36644
36644
|
});
|
|
36645
36645
|
}
|
|
36646
36646
|
announce(e, t, n = []) {
|
|
36647
|
-
|
|
36648
|
-
((r = this.mathfield.host?.dispatchEvent(new CustomEvent("announce", {
|
|
36647
|
+
(this.mathfield.host?.dispatchEvent(new CustomEvent("announce", {
|
|
36649
36648
|
detail: {
|
|
36650
36649
|
command: e,
|
|
36651
36650
|
previousPosition: t,
|
|
@@ -36654,7 +36653,7 @@ var u_ = class {
|
|
|
36654
36653
|
cancelable: !0,
|
|
36655
36654
|
bubbles: !0,
|
|
36656
36655
|
composed: !0
|
|
36657
|
-
}))
|
|
36656
|
+
})) ?? !0) && s_(this.mathfield, e, t, n);
|
|
36658
36657
|
}
|
|
36659
36658
|
deferNotifications(e, t) {
|
|
36660
36659
|
let n = this._selection, r = this._anchor, i = this._position, a = this.silenceNotifications;
|
|
@@ -37363,14 +37362,14 @@ var __ = `<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox=
|
|
|
37363
37362
|
}, 60);
|
|
37364
37363
|
}
|
|
37365
37364
|
onBlur(t) {
|
|
37366
|
-
var n, r, i
|
|
37365
|
+
var n, r, i;
|
|
37367
37366
|
if (!(this.focusBlurInProgress || this.blurred) && (this.focusBlurInProgress = !0, this.stopCoalescingUndo(), this.blurred = !0, e._globallyFocusedMathfield === this && (e._globallyFocusedMathfield = void 0), this.ariaLiveText.textContent = "", Id(this), this.model.getValue() !== this.valueOnFocus && ((n = this.host) == null || n.dispatchEvent(new Event("change", {
|
|
37368
37367
|
bubbles: !0,
|
|
37369
37368
|
composed: !0
|
|
37370
|
-
}))), this.disconnectFromVirtualKeyboard(), (
|
|
37369
|
+
}))), this.disconnectFromVirtualKeyboard(), (t?.dispatchEvents ?? !0) && ((r = this.host) == null || r.dispatchEvent(new Event("blur", {
|
|
37371
37370
|
bubbles: !1,
|
|
37372
37371
|
composed: !0
|
|
37373
|
-
})), (
|
|
37372
|
+
})), (i = this.host) == null || i.dispatchEvent(new UIEvent("focusout", {
|
|
37374
37373
|
bubbles: !0,
|
|
37375
37374
|
composed: !0
|
|
37376
37375
|
}))), H(this), this.focusBlurInProgress = !1, ih(), j_.restoreFocusWhenDocumentFocused)) {
|
|
@@ -38734,4 +38733,4 @@ function W_() {
|
|
|
38734
38733
|
}
|
|
38735
38734
|
//#endregion
|
|
38736
38735
|
|
|
38737
|
-
//# sourceMappingURL=mathlive.min-
|
|
38736
|
+
//# sourceMappingURL=mathlive.min-CAPebTxM-B2nv52My.js.map
|