@@ -255,6 +255,7 @@ export class JobQueue extends EventEmitter {
255255 'translate' ,
256256 'debugging' ,
257257 'remove' ,
258+ 'lia' ,
258259 ] ,
259260 scorm2004 : [
260261 'scorm' ,
@@ -264,9 +265,10 @@ export class JobQueue extends EventEmitter {
264265 'translate' ,
265266 'debugging' ,
266267 'remove' ,
268+ 'lia' ,
267269 ] ,
268- xapi : [ 'xapi' ] ,
269- ims : [ 'ims' ] ,
270+ xapi : [ 'xapi' , 'lia' ] ,
271+ ims : [ 'ims' , 'lia' ] ,
270272 web : [ 'web' ] ,
271273 pdf : [ 'pdf' ] ,
272274 android : [ 'android' ] ,
@@ -283,25 +285,28 @@ export class JobQueue extends EventEmitter {
283285 'scorm1.2' : ( key : string ) => {
284286 // Convert camelCase to kebab-case
285287 const kebabKey = key . replace ( / ( [ A - Z ] ) / g, '-$1' ) . toLowerCase ( )
286- // Add scorm- prefix if not already present and not a general option
287- if (
288- ! key . startsWith ( 'scorm' ) &&
289- ! [ 'mastery-score' , 'typical-duration' ] . includes ( kebabKey )
290- ) {
291- return key . startsWith ( 'scorm' ) ? kebabKey : `scorm-${ kebabKey } `
292- }
293- // Handle special cases
288+ // Handle special cases first
289+ if ( key === 'liaSubfolder' ) return 'lia-subfolder'
294290 if ( key === 'masteryScore' ) return 'scorm-masteryScore'
295291 if ( key === 'typicalDuration' ) return 'scorm-typicalDuration'
296292 if ( key === 'scormOrganization' ) return 'scorm-organization'
297293 if ( key === 'scormIframe' ) return 'scorm-iframe'
298294 if ( key === 'scormEmbed' ) return 'scorm-embed'
299295 if ( key === 'scormAlwaysActive' ) return 'scorm-alwaysActive'
296+ // Add scorm- prefix if not already present and not a general option
297+ if (
298+ ! key . startsWith ( 'scorm' ) &&
299+ ! [ 'mastery-score' , 'typical-duration' ] . includes ( kebabKey )
300+ ) {
301+ return `scorm-${ kebabKey } `
302+ }
300303 return kebabKey
301304 } ,
302305 scorm2004 : ( key : string ) => {
303306 // Same as scorm1.2
304307 const kebabKey = key . replace ( / ( [ A - Z ] ) / g, '-$1' ) . toLowerCase ( )
308+ // Handle special cases first
309+ if ( key === 'liaSubfolder' ) return 'lia-subfolder'
305310 if ( key === 'masteryScore' ) return 'scorm-masteryScore'
306311 if ( key === 'typicalDuration' ) return 'scorm-typicalDuration'
307312 if ( key === 'scormOrganization' ) return 'scorm-organization'
0 commit comments