scorm-again 3.1.2 → 3.1.4

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.
@@ -32,6 +32,7 @@ declare class Scorm2004API extends BaseAPI {
32
32
  GetErrorString: (CMIErrorCode: string | number) => string;
33
33
  GetDiagnostic: (CMIErrorCode: string | number) => string;
34
34
  reset(settings?: Settings): void;
35
+ private applyCurrentActivityLaunchData;
35
36
  get version(): string;
36
37
  get globalObjectives(): CMIObjectivesObject[];
37
38
  set _globalObjectives(objectives: CMIObjectivesObject[]);
@@ -0,0 +1,7 @@
1
+ export type CompletionStatusThresholdInput = {
2
+ completionThreshold?: number | string | null | undefined;
3
+ progressMeasure?: number | string | null | undefined;
4
+ storedCompletionStatus?: string | null | undefined;
5
+ };
6
+ export declare function evaluateCompletionStatusFromThreshold({ completionThreshold, progressMeasure, storedCompletionStatus, }: CompletionStatusThresholdInput): string;
7
+ //# sourceMappingURL=completion_status_evaluation.d.ts.map
@@ -40,6 +40,7 @@ export declare class TerminationHandler {
40
40
  };
41
41
  evaluatePostConditions(activity: Activity): PostConditionResult;
42
42
  private handleMultiLevelExit;
43
+ private applyAncestorExitActionRules;
43
44
  private processExitAtLevel;
44
45
  cleanupSuspendedActivity(): void;
45
46
  private terminateAll;
@@ -17,6 +17,11 @@ export type AdlRollupConsiderationsSettings = {
17
17
  requiredForIncomplete?: AdlRollupConsiderationRequirement;
18
18
  measureSatisfactionIfActive?: boolean;
19
19
  };
20
+ export type CompletionThresholdSettings = {
21
+ completedByMeasure?: boolean;
22
+ minProgressMeasure?: number;
23
+ progressWeight?: number;
24
+ };
20
25
  export type ActivitySettings = {
21
26
  id: string;
22
27
  title: string;
@@ -40,6 +45,7 @@ export type ActivitySettings = {
40
45
  sequencingControls?: SequencingControlsSettings;
41
46
  rollupRules?: RollupRulesSettings;
42
47
  rollupConsiderations?: AdlRollupConsiderationsSettings;
48
+ completionThreshold?: CompletionThresholdSettings;
43
49
  selectionRandomizationState?: SelectionRandomizationStateSettings;
44
50
  hideLmsUi?: HideLmsUiItem[];
45
51
  sequencingCollectionRefs?: string | string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scorm-again",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "A modern SCORM JavaScript run-time library for SCORM 1.2 and SCORM 2004",
5
5
  "main": "dist/scorm-again.js",
6
6
  "types": "index.d.ts",