@patch-adams/core 1.5.9 → 1.5.10

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/cli.cjs CHANGED
@@ -3720,6 +3720,22 @@ function generateLrsBridgeCode(options) {
3720
3720
  sendStatement(statement);
3721
3721
  };
3722
3722
 
3723
+ // Send a "launched" statement \u2014 called by skin after email gate / actor setup
3724
+ LRS.sendLaunchStatement = function(data) {
3725
+ data = data || {};
3726
+ var activityDetails = {
3727
+ launchSource: data.source || 'email-gate',
3728
+ employeeEmail: data.email || (LRS.actor && LRS.actor.mbox ? LRS.actor.mbox.replace('mailto:', '') : undefined),
3729
+ employeeId: data.employeeId || LRS.employeeId || undefined
3730
+ };
3731
+
3732
+ if (data.employeeName) activityDetails.employeeName = data.employeeName;
3733
+
3734
+ var statement = buildStatement('launched', ACTIVITY_TYPES.course, activityDetails, null, null);
3735
+ log('Sending launch statement for:', activityDetails.employeeEmail || '(unknown)');
3736
+ sendStatement(statement);
3737
+ };
3738
+
3723
3739
  /**
3724
3740
  * Re-extract actor from SCORM after LMSInitialize has been called.
3725
3741
  * Call this from the SCORM wrapper after scormInit() succeeds,