cognikit 0.2.0 → 1.0.1

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.
@@ -1,3 +1,3 @@
1
1
  import { ClassificationData } from "../../../types/Data";
2
2
  import { GradingResult } from "../../../types/Grading";
3
- export declare function classificationGrader(correctData: ClassificationData["categories"], userData: Map<string, string>, els: any): GradingResult;
3
+ export declare function classificationGrader(correctData: ClassificationData["categories"], userData: Map<string, string>, els: any, distractors?: string[]): GradingResult;
@@ -5,13 +5,13 @@ export declare class InteractionsBaseShell extends HTMLElement {
5
5
  private soundManager;
6
6
  private animationsManager;
7
7
  private $titleEl;
8
+ private $closeBtn;
8
9
  private $promptBtn;
9
10
  private $timerEl;
10
11
  private $headerEl;
11
12
  private $footerEl;
12
13
  private $contentEl;
13
14
  private $checkBtn;
14
- private $seeAnswersBtn;
15
15
  private $scoresBtn;
16
16
  private $retryBtn;
17
17
  private $radioNav;
@@ -37,6 +37,7 @@ export declare class InteractionsBaseShell extends HTMLElement {
37
37
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
38
38
  setInteraction<T extends InteractionData>(interaction: BaseInteraction<T>): void;
39
39
  removeInteraction(): void;
40
+ toggleCloseBtn(handler: () => void): void;
40
41
  private setupShellListeners;
41
42
  private setupInteractionListeners;
42
43
  private removeInteractionListeners;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognikit",
3
- "version": "0.2.0",
3
+ "version": "1.0.1",
4
4
  "author": "Yahir Adolfo de los Santos Beras",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/YerCodeWorld/cognikit.git",