@pie-qti/player-elements 0.1.10 → 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.
Files changed (37) hide show
  1. package/dist/constants.d.ts +0 -1
  2. package/dist/{define-Aera2T_G.js → define-Cv9Vn4ck.js} +3 -3
  3. package/dist/define-Cv9Vn4ck.js.map +1 -0
  4. package/dist/define.d.ts +0 -1
  5. package/dist/{element-C5p8w4vU.js → element-C5Y0zSz-.js} +9 -10
  6. package/dist/element-C5Y0zSz-.js.map +1 -0
  7. package/dist/elements/BaseSvelteMountElement.d.ts +1 -3
  8. package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -2
  9. package/dist/elements/QtiItemPlayerElement.d.ts +0 -1
  10. package/dist/index.d.ts +0 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{mathlive.min-Bvtiaxg4-CAquMlH8.js → mathlive.min-CAPebTxM-B2nv52My.js} +7 -8
  13. package/dist/{mathlive.min-Bvtiaxg4-CAquMlH8.js.map → mathlive.min-CAPebTxM-B2nv52My.js.map} +1 -1
  14. package/dist/plugins-B5K6bN6Q.js +58389 -0
  15. package/dist/plugins-B5K6bN6Q.js.map +1 -0
  16. package/dist/qti/parseAssessmentTest.d.ts +0 -1
  17. package/dist/qti/resolveItems.d.ts +0 -1
  18. package/dist/qti/types.d.ts +0 -1
  19. package/dist/register.d.ts +0 -1
  20. package/dist/register.js +1 -1
  21. package/dist/utils/json.d.ts +0 -1
  22. package/package.json +5 -5
  23. package/dist/constants.d.ts.map +0 -1
  24. package/dist/define-Aera2T_G.js.map +0 -1
  25. package/dist/define.d.ts.map +0 -1
  26. package/dist/element-C5p8w4vU.js.map +0 -1
  27. package/dist/elements/BaseSvelteMountElement.d.ts.map +0 -1
  28. package/dist/elements/QtiAssessmentPlayerElement.d.ts.map +0 -1
  29. package/dist/elements/QtiItemPlayerElement.d.ts.map +0 -1
  30. package/dist/index.d.ts.map +0 -1
  31. package/dist/plugins-DDTtbohJ.js +0 -42610
  32. package/dist/plugins-DDTtbohJ.js.map +0 -1
  33. package/dist/qti/parseAssessmentTest.d.ts.map +0 -1
  34. package/dist/qti/resolveItems.d.ts.map +0 -1
  35. package/dist/qti/types.d.ts.map +0 -1
  36. package/dist/register.d.ts.map +0 -1
  37. package/dist/utils/json.d.ts.map +0 -1
@@ -1,7 +1,6 @@
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: Component<any>;
3
+ protected abstract Component: any;
5
4
  protected abstract getProps(): TProps;
6
5
  protected get _instance(): any;
7
6
  connectedCallback(): void;
@@ -9,4 +8,3 @@ export declare abstract class BaseSvelteMountElement<TProps extends Record<strin
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: import("svelte/legacy").LegacyComponentType;
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
@@ -6,4 +6,3 @@ export type QtiItemPlayerResponseChangeDetail = {
6
6
  responses: Record<string, unknown>;
7
7
  };
8
8
  export declare function defineQtiItemPlayerElement(): void;
9
- //# 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,3 +1,3 @@
1
- import { n as e } from "./element-C5p8w4vU.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-Aera2T_G.js";
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
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-Bvtiaxg4.js
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
- var r;
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
- }))) == null || r) && s_(this.mathfield, e, t, n);
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, a;
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(), ((r = t?.dispatchEvents) == null || r) && ((i = this.host) == null || i.dispatchEvent(new Event("blur", {
37369
+ }))), this.disconnectFromVirtualKeyboard(), (t?.dispatchEvents ?? !0) && ((r = this.host) == null || r.dispatchEvent(new Event("blur", {
37371
37370
  bubbles: !1,
37372
37371
  composed: !0
37373
- })), (a = this.host) == null || a.dispatchEvent(new UIEvent("focusout", {
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-Bvtiaxg4-CAquMlH8.js.map
38736
+ //# sourceMappingURL=mathlive.min-CAPebTxM-B2nv52My.js.map