@citolab/qti-components 6.0.11 → 6.0.13

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.
@@ -452,7 +452,7 @@
452
452
  },
453
453
  {
454
454
  "kind": "javascript-module",
455
- "path": "src/lib/qti-transform/index.ts",
455
+ "path": "src/lib/qti-item-react/index.ts",
456
456
  "declarations": [],
457
457
  "exports": [
458
458
  {
@@ -460,42 +460,35 @@
460
460
  "name": "*",
461
461
  "declaration": {
462
462
  "name": "*",
463
- "package": "./qti-transform"
463
+ "package": "./qti-item.react"
464
464
  }
465
465
  }
466
466
  ]
467
467
  },
468
468
  {
469
469
  "kind": "javascript-module",
470
- "path": "src/lib/qti-transform/qti-transform.ts",
470
+ "path": "src/lib/qti-item-react/qti-item.react.ts",
471
471
  "declarations": [
472
472
  {
473
- "kind": "function",
474
- "name": "qtiTransform",
475
- "parameters": [
476
- {
477
- "name": "xmlValue",
478
- "type": {
479
- "text": "string"
480
- }
481
- }
482
- ]
473
+ "kind": "variable",
474
+ "name": "QtiItem",
475
+ "default": "createComponent({\n tagName: 'qti-item',\n react: React,\n elementClass: QtiItemComponent,\n events: {\n qtioutcomechanged: 'qti-outcome-changed', // as EventName<Event>\n qtiinteractionchanged: 'qti-interaction-changed',\n qtiitemconnected: 'qti-item-connected'\n }\n})"
483
476
  }
484
477
  ],
485
478
  "exports": [
486
479
  {
487
480
  "kind": "js",
488
- "name": "qtiTransform",
481
+ "name": "QtiItem",
489
482
  "declaration": {
490
- "name": "qtiTransform",
491
- "module": "src/lib/qti-transform/qti-transform.ts"
483
+ "name": "QtiItem",
484
+ "module": "src/lib/qti-item-react/qti-item.react.ts"
492
485
  }
493
486
  }
494
487
  ]
495
488
  },
496
489
  {
497
490
  "kind": "javascript-module",
498
- "path": "src/lib/qti-item-react/index.ts",
491
+ "path": "src/lib/qti-transform/index.ts",
499
492
  "declarations": [],
500
493
  "exports": [
501
494
  {
@@ -503,28 +496,35 @@
503
496
  "name": "*",
504
497
  "declaration": {
505
498
  "name": "*",
506
- "package": "./qti-item.react"
499
+ "package": "./qti-transform"
507
500
  }
508
501
  }
509
502
  ]
510
503
  },
511
504
  {
512
505
  "kind": "javascript-module",
513
- "path": "src/lib/qti-item-react/qti-item.react.ts",
506
+ "path": "src/lib/qti-transform/qti-transform.ts",
514
507
  "declarations": [
515
508
  {
516
- "kind": "variable",
517
- "name": "QtiItem",
518
- "default": "createComponent({\n tagName: 'qti-item',\n react: React,\n elementClass: QtiItemComponent,\n events: {\n qtioutcomechanged: 'qti-outcome-changed', // as EventName<Event>\n qtiinteractionchanged: 'qti-interaction-changed',\n qtiitemconnected: 'qti-item-connected'\n }\n})"
509
+ "kind": "function",
510
+ "name": "qtiTransform",
511
+ "parameters": [
512
+ {
513
+ "name": "xmlValue",
514
+ "type": {
515
+ "text": "string"
516
+ }
517
+ }
518
+ ]
519
519
  }
520
520
  ],
521
521
  "exports": [
522
522
  {
523
523
  "kind": "js",
524
- "name": "QtiItem",
524
+ "name": "qtiTransform",
525
525
  "declaration": {
526
- "name": "QtiItem",
527
- "module": "src/lib/qti-item-react/qti-item.react.ts"
526
+ "name": "qtiTransform",
527
+ "module": "src/lib/qti-transform/qti-transform.ts"
528
528
  }
529
529
  }
530
530
  ]
@@ -3455,19 +3455,26 @@
3455
3455
  },
3456
3456
  {
3457
3457
  "kind": "javascript-module",
3458
- "path": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts",
3458
+ "path": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts",
3459
3459
  "declarations": [
3460
3460
  {
3461
3461
  "kind": "class",
3462
3462
  "description": "",
3463
- "name": "QtiMediaInteraction",
3463
+ "name": "QtiMatchInteraction",
3464
3464
  "members": [],
3465
- "attributes": [
3465
+ "mixins": [
3466
3466
  {
3467
- "name": "",
3468
- "fieldName": "",
3469
- "attribute": ""
3470
- },
3467
+ "name": "DragDropInteractionMixin",
3468
+ "module": "/src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin"
3469
+ }
3470
+ ],
3471
+ "superclass": {
3472
+ "name": "LitElement",
3473
+ "package": "lit"
3474
+ },
3475
+ "tagName": "qti-match-interaction",
3476
+ "customElement": true,
3477
+ "attributes": [
3471
3478
  {
3472
3479
  "name": "response-identifier",
3473
3480
  "type": {
@@ -3476,8 +3483,8 @@
3476
3483
  "default": "''",
3477
3484
  "fieldName": "responseIdentifier",
3478
3485
  "inheritedFrom": {
3479
- "name": "Interaction",
3480
- "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3486
+ "name": "DragDropInteractionMixin",
3487
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3481
3488
  }
3482
3489
  },
3483
3490
  {
@@ -3486,11 +3493,10 @@
3486
3493
  "text": "boolean"
3487
3494
  },
3488
3495
  "default": "false",
3489
- "description": "disabled should be exposed to the attributes and accessible as property",
3490
3496
  "fieldName": "disabled",
3491
3497
  "inheritedFrom": {
3492
- "name": "Interaction",
3493
- "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3498
+ "name": "DroppablesMixin",
3499
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/droppables-mixin.ts"
3494
3500
  }
3495
3501
  },
3496
3502
  {
@@ -3499,20 +3505,37 @@
3499
3505
  "text": "boolean"
3500
3506
  },
3501
3507
  "default": "false",
3502
- "description": "readonly should be exposed to the attributes and accessible as property",
3503
3508
  "fieldName": "readonly",
3504
3509
  "inheritedFrom": {
3505
- "name": "Interaction",
3506
- "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3510
+ "name": "DragDropInteractionMixin",
3511
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3512
+ }
3513
+ },
3514
+ {
3515
+ "name": "min-associations",
3516
+ "type": {
3517
+ "text": "number"
3518
+ },
3519
+ "default": "1",
3520
+ "fieldName": "minAssociations",
3521
+ "inheritedFrom": {
3522
+ "name": "DragDropInteractionMixin",
3523
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3524
+ }
3525
+ },
3526
+ {
3527
+ "name": "max-associations",
3528
+ "type": {
3529
+ "text": "number"
3530
+ },
3531
+ "default": "1",
3532
+ "fieldName": "maxAssociations",
3533
+ "inheritedFrom": {
3534
+ "name": "DragDropInteractionMixin",
3535
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3507
3536
  }
3508
3537
  }
3509
3538
  ],
3510
- "superclass": {
3511
- "name": "Interaction",
3512
- "module": "/src/lib/qti-components/qti-interaction/internal/interaction/interaction"
3513
- },
3514
- "tagName": "qti-media-interaction",
3515
- "customElement": true,
3516
3539
  "events": [
3517
3540
  {
3518
3541
  "name": "qti-register-interaction",
@@ -3520,8 +3543,8 @@
3520
3543
  "text": "CustomEvent"
3521
3544
  },
3522
3545
  "inheritedFrom": {
3523
- "name": "Interaction",
3524
- "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3546
+ "name": "DragDropInteractionMixin",
3547
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3525
3548
  }
3526
3549
  },
3527
3550
  {
@@ -3530,8 +3553,8 @@
3530
3553
  "text": "CustomEvent"
3531
3554
  },
3532
3555
  "inheritedFrom": {
3533
- "name": "Interaction",
3534
- "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3556
+ "name": "DragDropInteractionMixin",
3557
+ "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3535
3558
  }
3536
3559
  }
3537
3560
  ]
@@ -3540,44 +3563,37 @@
3540
3563
  "exports": [
3541
3564
  {
3542
3565
  "kind": "js",
3543
- "name": "QtiMediaInteraction",
3566
+ "name": "QtiMatchInteraction",
3544
3567
  "declaration": {
3545
- "name": "QtiMediaInteraction",
3546
- "module": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts"
3568
+ "name": "QtiMatchInteraction",
3569
+ "module": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts"
3547
3570
  }
3548
3571
  },
3549
3572
  {
3550
3573
  "kind": "custom-element-definition",
3551
- "name": "qti-media-interaction",
3574
+ "name": "qti-match-interaction",
3552
3575
  "declaration": {
3553
- "name": "QtiMediaInteraction",
3554
- "module": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts"
3576
+ "name": "QtiMatchInteraction",
3577
+ "module": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts"
3555
3578
  }
3556
3579
  }
3557
3580
  ]
3558
3581
  },
3559
3582
  {
3560
3583
  "kind": "javascript-module",
3561
- "path": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts",
3584
+ "path": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts",
3562
3585
  "declarations": [
3563
3586
  {
3564
3587
  "kind": "class",
3565
3588
  "description": "",
3566
- "name": "QtiMatchInteraction",
3589
+ "name": "QtiMediaInteraction",
3567
3590
  "members": [],
3568
- "mixins": [
3569
- {
3570
- "name": "DragDropInteractionMixin",
3571
- "module": "/src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin"
3572
- }
3573
- ],
3574
- "superclass": {
3575
- "name": "LitElement",
3576
- "package": "lit"
3577
- },
3578
- "tagName": "qti-match-interaction",
3579
- "customElement": true,
3580
3591
  "attributes": [
3592
+ {
3593
+ "name": "",
3594
+ "fieldName": "",
3595
+ "attribute": ""
3596
+ },
3581
3597
  {
3582
3598
  "name": "response-identifier",
3583
3599
  "type": {
@@ -3586,8 +3602,8 @@
3586
3602
  "default": "''",
3587
3603
  "fieldName": "responseIdentifier",
3588
3604
  "inheritedFrom": {
3589
- "name": "DragDropInteractionMixin",
3590
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3605
+ "name": "Interaction",
3606
+ "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3591
3607
  }
3592
3608
  },
3593
3609
  {
@@ -3596,10 +3612,11 @@
3596
3612
  "text": "boolean"
3597
3613
  },
3598
3614
  "default": "false",
3615
+ "description": "disabled should be exposed to the attributes and accessible as property",
3599
3616
  "fieldName": "disabled",
3600
3617
  "inheritedFrom": {
3601
- "name": "DroppablesMixin",
3602
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/droppables-mixin.ts"
3618
+ "name": "Interaction",
3619
+ "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3603
3620
  }
3604
3621
  },
3605
3622
  {
@@ -3608,37 +3625,20 @@
3608
3625
  "text": "boolean"
3609
3626
  },
3610
3627
  "default": "false",
3628
+ "description": "readonly should be exposed to the attributes and accessible as property",
3611
3629
  "fieldName": "readonly",
3612
3630
  "inheritedFrom": {
3613
- "name": "DragDropInteractionMixin",
3614
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3615
- }
3616
- },
3617
- {
3618
- "name": "min-associations",
3619
- "type": {
3620
- "text": "number"
3621
- },
3622
- "default": "1",
3623
- "fieldName": "minAssociations",
3624
- "inheritedFrom": {
3625
- "name": "DragDropInteractionMixin",
3626
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3627
- }
3628
- },
3629
- {
3630
- "name": "max-associations",
3631
- "type": {
3632
- "text": "number"
3633
- },
3634
- "default": "1",
3635
- "fieldName": "maxAssociations",
3636
- "inheritedFrom": {
3637
- "name": "DragDropInteractionMixin",
3638
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3631
+ "name": "Interaction",
3632
+ "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3639
3633
  }
3640
3634
  }
3641
3635
  ],
3636
+ "superclass": {
3637
+ "name": "Interaction",
3638
+ "module": "/src/lib/qti-components/qti-interaction/internal/interaction/interaction"
3639
+ },
3640
+ "tagName": "qti-media-interaction",
3641
+ "customElement": true,
3642
3642
  "events": [
3643
3643
  {
3644
3644
  "name": "qti-register-interaction",
@@ -3646,8 +3646,8 @@
3646
3646
  "text": "CustomEvent"
3647
3647
  },
3648
3648
  "inheritedFrom": {
3649
- "name": "DragDropInteractionMixin",
3650
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3649
+ "name": "Interaction",
3650
+ "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3651
3651
  }
3652
3652
  },
3653
3653
  {
@@ -3656,8 +3656,8 @@
3656
3656
  "text": "CustomEvent"
3657
3657
  },
3658
3658
  "inheritedFrom": {
3659
- "name": "DragDropInteractionMixin",
3660
- "module": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts"
3659
+ "name": "Interaction",
3660
+ "module": "src/lib/qti-components/qti-interaction/internal/interaction/interaction.ts"
3661
3661
  }
3662
3662
  }
3663
3663
  ]
@@ -3666,18 +3666,18 @@
3666
3666
  "exports": [
3667
3667
  {
3668
3668
  "kind": "js",
3669
- "name": "QtiMatchInteraction",
3669
+ "name": "QtiMediaInteraction",
3670
3670
  "declaration": {
3671
- "name": "QtiMatchInteraction",
3672
- "module": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts"
3671
+ "name": "QtiMediaInteraction",
3672
+ "module": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts"
3673
3673
  }
3674
3674
  },
3675
3675
  {
3676
3676
  "kind": "custom-element-definition",
3677
- "name": "qti-match-interaction",
3677
+ "name": "qti-media-interaction",
3678
3678
  "declaration": {
3679
- "name": "QtiMatchInteraction",
3680
- "module": "src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts"
3679
+ "name": "QtiMediaInteraction",
3680
+ "module": "src/lib/qti-components/qti-interaction/qti-media-interaction/qti-media-interaction.ts"
3681
3681
  }
3682
3682
  }
3683
3683
  ]
@@ -4388,71 +4388,26 @@
4388
4388
  },
4389
4389
  {
4390
4390
  "kind": "javascript-module",
4391
- "path": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts",
4391
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression.ts",
4392
4392
  "declarations": [
4393
4393
  {
4394
4394
  "kind": "class",
4395
4395
  "description": "",
4396
- "name": "QtiResponseElse",
4396
+ "name": "QtiConditionExpression",
4397
4397
  "members": [],
4398
- "attributes": [
4399
- {
4400
- "name": "debugCalculateResult",
4401
- "type": {
4402
- "text": "object"
4403
- },
4404
- "fieldName": "debugCalculateResult"
4405
- }
4406
- ],
4407
4398
  "superclass": {
4408
- "name": "LitElement",
4409
- "package": "lit"
4410
- },
4411
- "tagName": "qti-response-else",
4412
- "customElement": true
4399
+ "name": "QtiExpression",
4400
+ "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-expression"
4401
+ }
4413
4402
  }
4414
4403
  ],
4415
4404
  "exports": [
4416
4405
  {
4417
4406
  "kind": "js",
4418
- "name": "QtiResponseElse",
4419
- "declaration": {
4420
- "name": "QtiResponseElse",
4421
- "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
4422
- }
4423
- },
4424
- {
4425
- "kind": "custom-element-definition",
4426
- "name": "qti-response-else",
4407
+ "name": "QtiConditionExpression",
4427
4408
  "declaration": {
4428
- "name": "QtiResponseElse",
4429
- "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
4430
- }
4431
- }
4432
- ]
4433
- },
4434
- {
4435
- "kind": "javascript-module",
4436
- "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression.ts",
4437
- "declarations": [
4438
- {
4439
- "kind": "class",
4440
- "description": "",
4441
- "name": "QtiConditionExpression",
4442
- "members": [],
4443
- "superclass": {
4444
- "name": "QtiExpression",
4445
- "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-expression"
4446
- }
4447
- }
4448
- ],
4449
- "exports": [
4450
- {
4451
- "kind": "js",
4452
- "name": "QtiConditionExpression",
4453
- "declaration": {
4454
- "name": "QtiConditionExpression",
4455
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression.ts"
4409
+ "name": "QtiConditionExpression",
4410
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression.ts"
4456
4411
  }
4457
4412
  }
4458
4413
  ]
@@ -4495,36 +4450,45 @@
4495
4450
  },
4496
4451
  {
4497
4452
  "kind": "javascript-module",
4498
- "path": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts",
4453
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts",
4499
4454
  "declarations": [
4500
4455
  {
4501
4456
  "kind": "class",
4502
4457
  "description": "",
4503
- "name": "QtiRule",
4458
+ "name": "QtiResponseElse",
4504
4459
  "members": [],
4460
+ "attributes": [
4461
+ {
4462
+ "name": "debugCalculateResult",
4463
+ "type": {
4464
+ "text": "object"
4465
+ },
4466
+ "fieldName": "debugCalculateResult"
4467
+ }
4468
+ ],
4505
4469
  "superclass": {
4506
4470
  "name": "LitElement",
4507
4471
  "package": "lit"
4508
4472
  },
4509
- "tagName": "qti-rule",
4473
+ "tagName": "qti-response-else",
4510
4474
  "customElement": true
4511
4475
  }
4512
4476
  ],
4513
4477
  "exports": [
4514
4478
  {
4515
4479
  "kind": "js",
4516
- "name": "QtiRule",
4480
+ "name": "QtiResponseElse",
4517
4481
  "declaration": {
4518
- "name": "QtiRule",
4519
- "module": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts"
4482
+ "name": "QtiResponseElse",
4483
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
4520
4484
  }
4521
4485
  },
4522
4486
  {
4523
4487
  "kind": "custom-element-definition",
4524
- "name": "qti-rule",
4488
+ "name": "qti-response-else",
4525
4489
  "declaration": {
4526
- "name": "QtiRule",
4527
- "module": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts"
4490
+ "name": "QtiResponseElse",
4491
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
4528
4492
  }
4529
4493
  }
4530
4494
  ]
@@ -4570,6 +4534,42 @@
4570
4534
  }
4571
4535
  ]
4572
4536
  },
4537
+ {
4538
+ "kind": "javascript-module",
4539
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts",
4540
+ "declarations": [
4541
+ {
4542
+ "kind": "class",
4543
+ "description": "",
4544
+ "name": "QtiRule",
4545
+ "members": [],
4546
+ "superclass": {
4547
+ "name": "LitElement",
4548
+ "package": "lit"
4549
+ },
4550
+ "tagName": "qti-rule",
4551
+ "customElement": true
4552
+ }
4553
+ ],
4554
+ "exports": [
4555
+ {
4556
+ "kind": "js",
4557
+ "name": "QtiRule",
4558
+ "declaration": {
4559
+ "name": "QtiRule",
4560
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts"
4561
+ }
4562
+ },
4563
+ {
4564
+ "kind": "custom-element-definition",
4565
+ "name": "qti-rule",
4566
+ "declaration": {
4567
+ "name": "QtiRule",
4568
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-rule.ts"
4569
+ }
4570
+ }
4571
+ ]
4572
+ },
4573
4573
  {
4574
4574
  "kind": "javascript-module",
4575
4575
  "path": "src/lib/qti-components/qti-utilities/events/qti-choice-element-selected.ts",
@@ -5179,52 +5179,6 @@
5179
5179
  }
5180
5180
  ]
5181
5181
  },
5182
- {
5183
- "kind": "javascript-module",
5184
- "path": "src/lib/qti-components/qti-interaction/internal/hotspots/hotspot.ts",
5185
- "declarations": [
5186
- {
5187
- "kind": "function",
5188
- "name": "positionHotspots",
5189
- "parameters": [
5190
- {
5191
- "name": "shape",
5192
- "type": {
5193
- "text": "string"
5194
- }
5195
- },
5196
- {
5197
- "name": "coordsNumber",
5198
- "type": {
5199
- "text": "number[]"
5200
- }
5201
- },
5202
- {
5203
- "name": "img",
5204
- "type": {
5205
- "text": "HTMLImageElement"
5206
- }
5207
- },
5208
- {
5209
- "name": "hotspot",
5210
- "type": {
5211
- "text": "QtiHotspotChoice"
5212
- }
5213
- }
5214
- ]
5215
- }
5216
- ],
5217
- "exports": [
5218
- {
5219
- "kind": "js",
5220
- "name": "positionHotspots",
5221
- "declaration": {
5222
- "name": "positionHotspots",
5223
- "module": "src/lib/qti-components/qti-interaction/internal/hotspots/hotspot.ts"
5224
- }
5225
- }
5226
- ]
5227
- },
5228
5182
  {
5229
5183
  "kind": "javascript-module",
5230
5184
  "path": "src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-api.ts",
@@ -5518,29 +5472,34 @@
5518
5472
  },
5519
5473
  {
5520
5474
  "kind": "javascript-module",
5521
- "path": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts",
5475
+ "path": "src/lib/qti-components/qti-interaction/internal/hotspots/hotspot.ts",
5522
5476
  "declarations": [
5523
5477
  {
5524
- "kind": "class",
5525
- "description": "",
5526
- "name": "QtiResponseIf",
5527
- "members": [],
5528
- "superclass": {
5529
- "name": "QtiResponseElse",
5530
- "module": "/src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse"
5531
- },
5532
- "tagName": "qti-response-if",
5533
- "customElement": true,
5534
- "attributes": [
5478
+ "kind": "function",
5479
+ "name": "positionHotspots",
5480
+ "parameters": [
5535
5481
  {
5536
- "name": "debugCalculateResult",
5482
+ "name": "shape",
5537
5483
  "type": {
5538
- "text": "object"
5539
- },
5540
- "fieldName": "debugCalculateResult",
5541
- "inheritedFrom": {
5542
- "name": "QtiResponseElse",
5543
- "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
5484
+ "text": "string"
5485
+ }
5486
+ },
5487
+ {
5488
+ "name": "coordsNumber",
5489
+ "type": {
5490
+ "text": "number[]"
5491
+ }
5492
+ },
5493
+ {
5494
+ "name": "img",
5495
+ "type": {
5496
+ "text": "HTMLImageElement"
5497
+ }
5498
+ },
5499
+ {
5500
+ "name": "hotspot",
5501
+ "type": {
5502
+ "text": "QtiHotspotChoice"
5544
5503
  }
5545
5504
  }
5546
5505
  ]
@@ -5549,18 +5508,10 @@
5549
5508
  "exports": [
5550
5509
  {
5551
5510
  "kind": "js",
5552
- "name": "QtiResponseIf",
5553
- "declaration": {
5554
- "name": "QtiResponseIf",
5555
- "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts"
5556
- }
5557
- },
5558
- {
5559
- "kind": "custom-element-definition",
5560
- "name": "qti-response-if",
5511
+ "name": "positionHotspots",
5561
5512
  "declaration": {
5562
- "name": "QtiResponseIf",
5563
- "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts"
5513
+ "name": "positionHotspots",
5514
+ "module": "src/lib/qti-components/qti-interaction/internal/hotspots/hotspot.ts"
5564
5515
  }
5565
5516
  }
5566
5517
  ]
@@ -5640,6 +5591,42 @@
5640
5591
  }
5641
5592
  ]
5642
5593
  },
5594
+ {
5595
+ "kind": "javascript-module",
5596
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts",
5597
+ "declarations": [
5598
+ {
5599
+ "kind": "class",
5600
+ "description": "",
5601
+ "name": "QtiAnd",
5602
+ "members": [],
5603
+ "superclass": {
5604
+ "name": "QtiConditionExpression",
5605
+ "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression"
5606
+ },
5607
+ "tagName": "qti-and",
5608
+ "customElement": true
5609
+ }
5610
+ ],
5611
+ "exports": [
5612
+ {
5613
+ "kind": "js",
5614
+ "name": "QtiAnd",
5615
+ "declaration": {
5616
+ "name": "QtiAnd",
5617
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts"
5618
+ }
5619
+ },
5620
+ {
5621
+ "kind": "custom-element-definition",
5622
+ "name": "qti-and",
5623
+ "declaration": {
5624
+ "name": "QtiAnd",
5625
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts"
5626
+ }
5627
+ }
5628
+ ]
5629
+ },
5643
5630
  {
5644
5631
  "kind": "javascript-module",
5645
5632
  "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-basevalue/qti-basevalue.ts",
@@ -5688,36 +5675,36 @@
5688
5675
  },
5689
5676
  {
5690
5677
  "kind": "javascript-module",
5691
- "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts",
5678
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts",
5692
5679
  "declarations": [
5693
5680
  {
5694
5681
  "kind": "class",
5695
5682
  "description": "",
5696
- "name": "QtiAnd",
5683
+ "name": "QtiContains",
5697
5684
  "members": [],
5698
5685
  "superclass": {
5699
- "name": "QtiConditionExpression",
5700
- "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression"
5686
+ "name": "QtiExpression",
5687
+ "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-expression"
5701
5688
  },
5702
- "tagName": "qti-and",
5689
+ "tagName": "qti-contains",
5703
5690
  "customElement": true
5704
5691
  }
5705
5692
  ],
5706
5693
  "exports": [
5707
5694
  {
5708
5695
  "kind": "js",
5709
- "name": "QtiAnd",
5696
+ "name": "QtiContains",
5710
5697
  "declaration": {
5711
- "name": "QtiAnd",
5712
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts"
5698
+ "name": "QtiContains",
5699
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts"
5713
5700
  }
5714
5701
  },
5715
5702
  {
5716
5703
  "kind": "custom-element-definition",
5717
- "name": "qti-and",
5704
+ "name": "qti-contains",
5718
5705
  "declaration": {
5719
- "name": "QtiAnd",
5720
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-and/qti-and.ts"
5706
+ "name": "QtiContains",
5707
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts"
5721
5708
  }
5722
5709
  }
5723
5710
  ]
@@ -5758,42 +5745,6 @@
5758
5745
  }
5759
5746
  ]
5760
5747
  },
5761
- {
5762
- "kind": "javascript-module",
5763
- "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts",
5764
- "declarations": [
5765
- {
5766
- "kind": "class",
5767
- "description": "",
5768
- "name": "QtiContains",
5769
- "members": [],
5770
- "superclass": {
5771
- "name": "QtiExpression",
5772
- "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-expression"
5773
- },
5774
- "tagName": "qti-contains",
5775
- "customElement": true
5776
- }
5777
- ],
5778
- "exports": [
5779
- {
5780
- "kind": "js",
5781
- "name": "QtiContains",
5782
- "declaration": {
5783
- "name": "QtiContains",
5784
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts"
5785
- }
5786
- },
5787
- {
5788
- "kind": "custom-element-definition",
5789
- "name": "qti-contains",
5790
- "declaration": {
5791
- "name": "QtiContains",
5792
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-contains/qti-contains.ts"
5793
- }
5794
- }
5795
- ]
5796
- },
5797
5748
  {
5798
5749
  "kind": "javascript-module",
5799
5750
  "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-equal/qti-equal.ts",
@@ -6030,42 +5981,6 @@
6030
5981
  }
6031
5982
  ]
6032
5983
  },
6033
- {
6034
- "kind": "javascript-module",
6035
- "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts",
6036
- "declarations": [
6037
- {
6038
- "kind": "class",
6039
- "description": "",
6040
- "name": "QtiLte",
6041
- "members": [],
6042
- "superclass": {
6043
- "name": "QtiConditionExpression",
6044
- "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression"
6045
- },
6046
- "tagName": "qti-lte",
6047
- "customElement": true
6048
- }
6049
- ],
6050
- "exports": [
6051
- {
6052
- "kind": "js",
6053
- "name": "QtiLte",
6054
- "declaration": {
6055
- "name": "QtiLte",
6056
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts"
6057
- }
6058
- },
6059
- {
6060
- "kind": "custom-element-definition",
6061
- "name": "qti-lte",
6062
- "declaration": {
6063
- "name": "QtiLte",
6064
- "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts"
6065
- }
6066
- }
6067
- ]
6068
- },
6069
5984
  {
6070
5985
  "kind": "javascript-module",
6071
5986
  "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-mapping/qti-mapping.ts",
@@ -6126,6 +6041,42 @@
6126
6041
  }
6127
6042
  ]
6128
6043
  },
6044
+ {
6045
+ "kind": "javascript-module",
6046
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts",
6047
+ "declarations": [
6048
+ {
6049
+ "kind": "class",
6050
+ "description": "",
6051
+ "name": "QtiLte",
6052
+ "members": [],
6053
+ "superclass": {
6054
+ "name": "QtiConditionExpression",
6055
+ "module": "/src/lib/qti-components/qti-responseprocessing/qti-expression/qti-condition-expression"
6056
+ },
6057
+ "tagName": "qti-lte",
6058
+ "customElement": true
6059
+ }
6060
+ ],
6061
+ "exports": [
6062
+ {
6063
+ "kind": "js",
6064
+ "name": "QtiLte",
6065
+ "declaration": {
6066
+ "name": "QtiLte",
6067
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts"
6068
+ }
6069
+ },
6070
+ {
6071
+ "kind": "custom-element-definition",
6072
+ "name": "qti-lte",
6073
+ "declaration": {
6074
+ "name": "QtiLte",
6075
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-lte/qti-lte.ts"
6076
+ }
6077
+ }
6078
+ ]
6079
+ },
6129
6080
  {
6130
6081
  "kind": "javascript-module",
6131
6082
  "path": "src/lib/qti-components/qti-responseprocessing/qti-expression/qti-mapresponse/qti-mapresponse.ts",
@@ -6351,6 +6302,55 @@
6351
6302
  }
6352
6303
  ]
6353
6304
  },
6305
+ {
6306
+ "kind": "javascript-module",
6307
+ "path": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts",
6308
+ "declarations": [
6309
+ {
6310
+ "kind": "class",
6311
+ "description": "",
6312
+ "name": "QtiResponseIf",
6313
+ "members": [],
6314
+ "superclass": {
6315
+ "name": "QtiResponseElse",
6316
+ "module": "/src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse"
6317
+ },
6318
+ "tagName": "qti-response-if",
6319
+ "customElement": true,
6320
+ "attributes": [
6321
+ {
6322
+ "name": "debugCalculateResult",
6323
+ "type": {
6324
+ "text": "object"
6325
+ },
6326
+ "fieldName": "debugCalculateResult",
6327
+ "inheritedFrom": {
6328
+ "name": "QtiResponseElse",
6329
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseelse.ts"
6330
+ }
6331
+ }
6332
+ ]
6333
+ }
6334
+ ],
6335
+ "exports": [
6336
+ {
6337
+ "kind": "js",
6338
+ "name": "QtiResponseIf",
6339
+ "declaration": {
6340
+ "name": "QtiResponseIf",
6341
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts"
6342
+ }
6343
+ },
6344
+ {
6345
+ "kind": "custom-element-definition",
6346
+ "name": "qti-response-if",
6347
+ "declaration": {
6348
+ "name": "QtiResponseIf",
6349
+ "module": "src/lib/qti-components/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.ts"
6350
+ }
6351
+ }
6352
+ ]
6353
+ },
6354
6354
  {
6355
6355
  "kind": "javascript-module",
6356
6356
  "path": "src/lib/qti-components/qti-responseprocessing/qti-rule/qti-responsecondition/qti-responsecondition.ts",
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "engines": {
13
13
  "node": ">=16.0.0"
14
14
  },
15
- "version": "6.0.11",
15
+ "version": "6.0.13",
16
16
  "type": "module",
17
17
  "main": "dist/qti-components/index.js",
18
18
  "exports": {
@@ -71,8 +71,8 @@
71
71
  "storybook": "storybook dev -p 6006",
72
72
  "deploy": "firebase deploy --only hosting:qti-components",
73
73
  "build-storybook": "storybook build",
74
- "prepublishOnly": "echo 'calling prepublishOnly as npm lifecycle hook to build-lib!' && npm run build-lib",
75
- "publish": "npx np",
74
+ "prepublish": "echo 'calling prepublishOnly as npm lifecycle hook to build-lib!' && npm run build-lib",
75
+ "publish": "np",
76
76
  "test-storybook": "test-storybook",
77
77
  "cem": "cem analyze --watch",
78
78
  "lint": "eslint src/lib/**",
@@ -140,7 +140,8 @@
140
140
  "ts-node": "^10.9.1",
141
141
  "tsup": "^6.7.0",
142
142
  "typescript": "^4.9.5",
143
- "vite": "^4.2.0"
143
+ "vite": "^4.2.0",
144
+ "np": "^8.0.4"
144
145
  },
145
146
  "customElements": "custom-elements.json"
146
147
  }