scorm-again 3.0.2 → 3.0.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.
- package/dist/esm/scorm-again.js +18 -1
- package/dist/esm/scorm-again.js.map +1 -1
- package/dist/esm/scorm-again.min.js +1 -1
- package/dist/esm/scorm-again.min.js.map +1 -1
- package/dist/esm/scorm12.js +3 -1
- package/dist/esm/scorm12.js.map +1 -1
- package/dist/esm/scorm12.min.js +1 -1
- package/dist/esm/scorm12.min.js.map +1 -1
- package/dist/esm/scorm2004.js +18 -1
- package/dist/esm/scorm2004.js.map +1 -1
- package/dist/esm/scorm2004.min.js +1 -1
- package/dist/esm/scorm2004.min.js.map +1 -1
- package/dist/scorm-again.js +159 -102
- package/dist/scorm-again.js.map +1 -1
- package/dist/scorm-again.min.js +1 -1
- package/dist/scorm-again.min.js.map +1 -1
- package/dist/scorm12.js +3 -2
- package/dist/scorm12.js.map +1 -1
- package/dist/scorm12.min.js +1 -1
- package/dist/scorm12.min.js.map +1 -1
- package/dist/scorm2004.js +159 -102
- package/dist/scorm2004.js.map +1 -1
- package/dist/scorm2004.min.js +1 -1
- package/dist/scorm2004.min.js.map +1 -1
- package/package.json +20 -20
package/dist/esm/scorm-again.js
CHANGED
|
@@ -2318,6 +2318,7 @@ class ActivityTreeQueries {
|
|
|
2318
2318
|
constructor(activityTree) {
|
|
2319
2319
|
this.activityTree = activityTree;
|
|
2320
2320
|
}
|
|
2321
|
+
activityTree;
|
|
2321
2322
|
/**
|
|
2322
2323
|
* Check if activity is in the activity tree
|
|
2323
2324
|
* @param {Activity} activity - Activity to check
|
|
@@ -2517,6 +2518,8 @@ class ChoiceConstraintValidator {
|
|
|
2517
2518
|
this.activityTree = activityTree;
|
|
2518
2519
|
this.treeQueries = treeQueries;
|
|
2519
2520
|
}
|
|
2521
|
+
activityTree;
|
|
2522
|
+
treeQueries;
|
|
2520
2523
|
/**
|
|
2521
2524
|
* Main entry point - consolidates ALL constraint validation for choice navigation
|
|
2522
2525
|
* @param {Activity | null} currentActivity - Current activity (may be null if no session started)
|
|
@@ -3869,6 +3872,8 @@ class FlowTraversalService {
|
|
|
3869
3872
|
this.activityTree = activityTree;
|
|
3870
3873
|
this.ruleEngine = ruleEngine;
|
|
3871
3874
|
}
|
|
3875
|
+
activityTree;
|
|
3876
|
+
ruleEngine;
|
|
3872
3877
|
/**
|
|
3873
3878
|
* Flow Subprocess (SB.2.3)
|
|
3874
3879
|
* Traverses the activity tree in the specified direction to find a deliverable activity
|
|
@@ -4167,6 +4172,8 @@ class FlowRequestHandler {
|
|
|
4167
4172
|
this.activityTree = activityTree;
|
|
4168
4173
|
this.traversalService = traversalService;
|
|
4169
4174
|
}
|
|
4175
|
+
activityTree;
|
|
4176
|
+
traversalService;
|
|
4170
4177
|
/**
|
|
4171
4178
|
* Start Sequencing Request Process (SB.2.5)
|
|
4172
4179
|
* Initiates a new sequencing session from the root
|
|
@@ -4298,6 +4305,10 @@ class ChoiceRequestHandler {
|
|
|
4298
4305
|
this.traversalService = traversalService;
|
|
4299
4306
|
this.treeQueries = treeQueries;
|
|
4300
4307
|
}
|
|
4308
|
+
activityTree;
|
|
4309
|
+
constraintValidator;
|
|
4310
|
+
traversalService;
|
|
4311
|
+
treeQueries;
|
|
4301
4312
|
/**
|
|
4302
4313
|
* Choice Sequencing Request Process (SB.2.9)
|
|
4303
4314
|
* Processes a choice navigation request to a specific activity
|
|
@@ -4511,6 +4522,8 @@ class ExitRequestHandler {
|
|
|
4511
4522
|
this.activityTree = activityTree;
|
|
4512
4523
|
this.ruleEngine = ruleEngine;
|
|
4513
4524
|
}
|
|
4525
|
+
activityTree;
|
|
4526
|
+
ruleEngine;
|
|
4514
4527
|
/**
|
|
4515
4528
|
* Exit Sequencing Request Process (SB.2.11)
|
|
4516
4529
|
* @param {Activity} currentActivity - The current activity
|
|
@@ -4626,6 +4639,8 @@ class RetryRequestHandler {
|
|
|
4626
4639
|
this.activityTree = activityTree;
|
|
4627
4640
|
this.traversalService = traversalService;
|
|
4628
4641
|
}
|
|
4642
|
+
activityTree;
|
|
4643
|
+
traversalService;
|
|
4629
4644
|
/**
|
|
4630
4645
|
* Retry Sequencing Request Process (SB.2.10)
|
|
4631
4646
|
* @param {Activity} currentActivity - The current activity
|
|
@@ -5760,7 +5775,8 @@ class LoggingService {
|
|
|
5760
5775
|
getNumericLevel(level) {
|
|
5761
5776
|
if (level === void 0) return LogLevelEnum.NONE;
|
|
5762
5777
|
if (typeof level === "number") return level;
|
|
5763
|
-
|
|
5778
|
+
const normalized = typeof level === "string" ? level.toUpperCase() : level;
|
|
5779
|
+
switch (normalized) {
|
|
5764
5780
|
case "1":
|
|
5765
5781
|
case "DEBUG":
|
|
5766
5782
|
return LogLevelEnum.DEBUG;
|
|
@@ -6133,6 +6149,7 @@ class OfflineStorageService {
|
|
|
6133
6149
|
window.addEventListener("offline", this.boundOnlineStatusChangeHandler);
|
|
6134
6150
|
window.addEventListener("scorm-again:network-status", this.boundCustomNetworkStatusHandler);
|
|
6135
6151
|
}
|
|
6152
|
+
apiLog;
|
|
6136
6153
|
settings;
|
|
6137
6154
|
error_codes;
|
|
6138
6155
|
storeName = "scorm_again_offline_data";
|