@instructure/quiz-core 20.10.1-rc.7 → 20.11.0
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/CHANGELOG.md +11 -0
- package/es/building/components/layout/header/BuildingButtons/presenter.js +253 -61
- package/es/building/components/layout/header/BuildingButtons/styles.js +8 -4
- package/es/index.js +0 -1
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +255 -61
- package/lib/building/components/layout/header/BuildingButtons/styles.js +10 -4
- package/lib/index.js +62 -73
- package/package.json +10 -10
- package/es/building/components/layout/header/BuildingButtonsICE/index.js +0 -40
- package/es/building/components/layout/header/BuildingButtonsICE/presenter.js +0 -249
- package/lib/building/components/layout/header/BuildingButtonsICE/index.js +0 -65
- package/lib/building/components/layout/header/BuildingButtonsICE/presenter.js +0 -274
package/lib/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
4
|
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -39,7 +37,6 @@ var _exportNames = {
|
|
|
39
37
|
BankPage: true,
|
|
40
38
|
BankEntryPage: true,
|
|
41
39
|
SDKBuildingButtons: true,
|
|
42
|
-
SDKBuildingButtonsICE: true,
|
|
43
40
|
Paginator: true,
|
|
44
41
|
SDKMenuButton: true,
|
|
45
42
|
SDKTimer: true,
|
|
@@ -391,16 +388,10 @@ Object.defineProperty(exports, "SDKBuildingButtons", {
|
|
|
391
388
|
return _index27.SDKBuildingButtons;
|
|
392
389
|
}
|
|
393
390
|
});
|
|
394
|
-
Object.defineProperty(exports, "SDKBuildingButtonsICE", {
|
|
395
|
-
enumerable: true,
|
|
396
|
-
get: function get() {
|
|
397
|
-
return _index28.default;
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
391
|
Object.defineProperty(exports, "Paginator", {
|
|
401
392
|
enumerable: true,
|
|
402
393
|
get: function get() {
|
|
403
|
-
return
|
|
394
|
+
return _index28.Paginator;
|
|
404
395
|
}
|
|
405
396
|
});
|
|
406
397
|
Object.defineProperty(exports, "SDKMenuButton", {
|
|
@@ -424,7 +415,7 @@ Object.defineProperty(exports, "SDKNavBar", {
|
|
|
424
415
|
Object.defineProperty(exports, "SecondaryNavBarButton", {
|
|
425
416
|
enumerable: true,
|
|
426
417
|
get: function get() {
|
|
427
|
-
return
|
|
418
|
+
return _index29.SecondaryNavBarButton;
|
|
428
419
|
}
|
|
429
420
|
});
|
|
430
421
|
Object.defineProperty(exports, "CentileDistribution", {
|
|
@@ -436,7 +427,7 @@ Object.defineProperty(exports, "CentileDistribution", {
|
|
|
436
427
|
Object.defineProperty(exports, "OutcomeAnalysis", {
|
|
437
428
|
enumerable: true,
|
|
438
429
|
get: function get() {
|
|
439
|
-
return
|
|
430
|
+
return _index30.OutcomeAnalysis;
|
|
440
431
|
}
|
|
441
432
|
});
|
|
442
433
|
Object.defineProperty(exports, "PositionBox", {
|
|
@@ -448,79 +439,79 @@ Object.defineProperty(exports, "PositionBox", {
|
|
|
448
439
|
Object.defineProperty(exports, "Pin", {
|
|
449
440
|
enumerable: true,
|
|
450
441
|
get: function get() {
|
|
451
|
-
return
|
|
442
|
+
return _index31.Pin;
|
|
452
443
|
}
|
|
453
444
|
});
|
|
454
445
|
Object.defineProperty(exports, "SessionItemResultView", {
|
|
455
446
|
enumerable: true,
|
|
456
447
|
get: function get() {
|
|
457
|
-
return
|
|
448
|
+
return _index32.SessionItemResult;
|
|
458
449
|
}
|
|
459
450
|
});
|
|
460
451
|
Object.defineProperty(exports, "Card", {
|
|
461
452
|
enumerable: true,
|
|
462
453
|
get: function get() {
|
|
463
|
-
return
|
|
454
|
+
return _index33.Card;
|
|
464
455
|
}
|
|
465
456
|
});
|
|
466
457
|
Object.defineProperty(exports, "CardContent", {
|
|
467
458
|
enumerable: true,
|
|
468
459
|
get: function get() {
|
|
469
|
-
return
|
|
460
|
+
return _index34.CardContent;
|
|
470
461
|
}
|
|
471
462
|
});
|
|
472
463
|
Object.defineProperty(exports, "CardWrapper", {
|
|
473
464
|
enumerable: true,
|
|
474
465
|
get: function get() {
|
|
475
|
-
return
|
|
466
|
+
return _index35.CardWrapper;
|
|
476
467
|
}
|
|
477
468
|
});
|
|
478
469
|
Object.defineProperty(exports, "Page", {
|
|
479
470
|
enumerable: true,
|
|
480
471
|
get: function get() {
|
|
481
|
-
return
|
|
472
|
+
return _index36.Page;
|
|
482
473
|
}
|
|
483
474
|
});
|
|
484
475
|
Object.defineProperty(exports, "BanksTray", {
|
|
485
476
|
enumerable: true,
|
|
486
477
|
get: function get() {
|
|
487
|
-
return
|
|
478
|
+
return _index37.BanksTray;
|
|
488
479
|
}
|
|
489
480
|
});
|
|
490
481
|
Object.defineProperty(exports, "BuildingSidebar", {
|
|
491
482
|
enumerable: true,
|
|
492
483
|
get: function get() {
|
|
493
|
-
return
|
|
484
|
+
return _index38.BuildingSidebar;
|
|
494
485
|
}
|
|
495
486
|
});
|
|
496
487
|
Object.defineProperty(exports, "DeleteStimulusModal", {
|
|
497
488
|
enumerable: true,
|
|
498
489
|
get: function get() {
|
|
499
|
-
return
|
|
490
|
+
return _index39.DeleteStimulusModal;
|
|
500
491
|
}
|
|
501
492
|
});
|
|
502
493
|
Object.defineProperty(exports, "ItemFeedbackModal", {
|
|
503
494
|
enumerable: true,
|
|
504
495
|
get: function get() {
|
|
505
|
-
return
|
|
496
|
+
return _index40.ItemFeedbackModal;
|
|
506
497
|
}
|
|
507
498
|
});
|
|
508
499
|
Object.defineProperty(exports, "MoveImmutableModal", {
|
|
509
500
|
enumerable: true,
|
|
510
501
|
get: function get() {
|
|
511
|
-
return
|
|
502
|
+
return _index41.MoveImmutableModal;
|
|
512
503
|
}
|
|
513
504
|
});
|
|
514
505
|
Object.defineProperty(exports, "AddContentModal", {
|
|
515
506
|
enumerable: true,
|
|
516
507
|
get: function get() {
|
|
517
|
-
return
|
|
508
|
+
return _index42.AddContentModal;
|
|
518
509
|
}
|
|
519
510
|
});
|
|
520
511
|
Object.defineProperty(exports, "QTIImportModal", {
|
|
521
512
|
enumerable: true,
|
|
522
513
|
get: function get() {
|
|
523
|
-
return
|
|
514
|
+
return _index43.QTIImportModal;
|
|
524
515
|
}
|
|
525
516
|
});
|
|
526
517
|
Object.defineProperty(exports, "ReturnButton", {
|
|
@@ -550,49 +541,49 @@ Object.defineProperty(exports, "QuizInfo", {
|
|
|
550
541
|
Object.defineProperty(exports, "LearnosityCalculator", {
|
|
551
542
|
enumerable: true,
|
|
552
543
|
get: function get() {
|
|
553
|
-
return
|
|
544
|
+
return _index44.LearnosityCalculator;
|
|
554
545
|
}
|
|
555
546
|
});
|
|
556
547
|
Object.defineProperty(exports, "QuizInstructions", {
|
|
557
548
|
enumerable: true,
|
|
558
549
|
get: function get() {
|
|
559
|
-
return
|
|
550
|
+
return _index45.QuizInstructions;
|
|
560
551
|
}
|
|
561
552
|
});
|
|
562
553
|
Object.defineProperty(exports, "QuizTitle", {
|
|
563
554
|
enumerable: true,
|
|
564
555
|
get: function get() {
|
|
565
|
-
return
|
|
556
|
+
return _index46.QuizTitle;
|
|
566
557
|
}
|
|
567
558
|
});
|
|
568
559
|
Object.defineProperty(exports, "QuizEntryShow", {
|
|
569
560
|
enumerable: true,
|
|
570
561
|
get: function get() {
|
|
571
|
-
return
|
|
562
|
+
return _index47.QuizEntryShow;
|
|
572
563
|
}
|
|
573
564
|
});
|
|
574
565
|
Object.defineProperty(exports, "StimulusShow", {
|
|
575
566
|
enumerable: true,
|
|
576
567
|
get: function get() {
|
|
577
|
-
return
|
|
568
|
+
return _index48.StimulusShow;
|
|
578
569
|
}
|
|
579
570
|
});
|
|
580
571
|
Object.defineProperty(exports, "QuizSessionResultHeader", {
|
|
581
572
|
enumerable: true,
|
|
582
573
|
get: function get() {
|
|
583
|
-
return
|
|
574
|
+
return _index49.QuizSessionResultHeader;
|
|
584
575
|
}
|
|
585
576
|
});
|
|
586
577
|
Object.defineProperty(exports, "QuizSessionResultInfo", {
|
|
587
578
|
enumerable: true,
|
|
588
579
|
get: function get() {
|
|
589
|
-
return
|
|
580
|
+
return _index50.Info;
|
|
590
581
|
}
|
|
591
582
|
});
|
|
592
583
|
Object.defineProperty(exports, "SessionItemResultsList", {
|
|
593
584
|
enumerable: true,
|
|
594
585
|
get: function get() {
|
|
595
|
-
return
|
|
586
|
+
return _index51.SessionItemResultsList;
|
|
596
587
|
}
|
|
597
588
|
});
|
|
598
589
|
Object.defineProperty(exports, "Errors", {
|
|
@@ -604,13 +595,13 @@ Object.defineProperty(exports, "Errors", {
|
|
|
604
595
|
Object.defineProperty(exports, "TimeUnitsInput", {
|
|
605
596
|
enumerable: true,
|
|
606
597
|
get: function get() {
|
|
607
|
-
return
|
|
598
|
+
return _index52.TimeUnitsInput;
|
|
608
599
|
}
|
|
609
600
|
});
|
|
610
601
|
Object.defineProperty(exports, "QuizEntryView", {
|
|
611
602
|
enumerable: true,
|
|
612
603
|
get: function get() {
|
|
613
|
-
return
|
|
604
|
+
return _index53.QuizEntry;
|
|
614
605
|
}
|
|
615
606
|
});
|
|
616
607
|
Object.defineProperty(exports, "Provider", {
|
|
@@ -628,19 +619,19 @@ Object.defineProperty(exports, "connect", {
|
|
|
628
619
|
Object.defineProperty(exports, "FormattedTimer", {
|
|
629
620
|
enumerable: true,
|
|
630
621
|
get: function get() {
|
|
631
|
-
return
|
|
622
|
+
return _index54.FormattedTimer;
|
|
632
623
|
}
|
|
633
624
|
});
|
|
634
625
|
Object.defineProperty(exports, "breakdownSeconds", {
|
|
635
626
|
enumerable: true,
|
|
636
627
|
get: function get() {
|
|
637
|
-
return
|
|
628
|
+
return _index54.breakdownSeconds;
|
|
638
629
|
}
|
|
639
630
|
});
|
|
640
631
|
Object.defineProperty(exports, "HOUR_IN_SECONDS", {
|
|
641
632
|
enumerable: true,
|
|
642
633
|
get: function get() {
|
|
643
|
-
return
|
|
634
|
+
return _index54.HOUR_IN_SECONDS;
|
|
644
635
|
}
|
|
645
636
|
});
|
|
646
637
|
Object.defineProperty(exports, "config", {
|
|
@@ -754,7 +745,7 @@ Object.defineProperty(exports, "formatTime", {
|
|
|
754
745
|
Object.defineProperty(exports, "generateImportModalId", {
|
|
755
746
|
enumerable: true,
|
|
756
747
|
get: function get() {
|
|
757
|
-
return
|
|
748
|
+
return _index55.generateImportModalId;
|
|
758
749
|
}
|
|
759
750
|
});
|
|
760
751
|
Object.defineProperty(exports, "TimerService", {
|
|
@@ -1427,9 +1418,7 @@ var _index26 = require("./banks/components/BankEntry/index.js");
|
|
|
1427
1418
|
|
|
1428
1419
|
var _index27 = require("./building/components/layout/header/SDKBuildingButtons/index.js");
|
|
1429
1420
|
|
|
1430
|
-
var _index28 =
|
|
1431
|
-
|
|
1432
|
-
var _index29 = require("./common/components/shared/Paginator/index.js");
|
|
1421
|
+
var _index28 = require("./common/components/shared/Paginator/index.js");
|
|
1433
1422
|
|
|
1434
1423
|
var _SDKMenuButton = require("./common/components/SDKMenuButton.js");
|
|
1435
1424
|
|
|
@@ -1437,39 +1426,39 @@ var _SDKTimer = require("./common/components/SDKTimer.js");
|
|
|
1437
1426
|
|
|
1438
1427
|
var _SDKNavBar = require("./common/components/SDKNavBar.js");
|
|
1439
1428
|
|
|
1440
|
-
var
|
|
1429
|
+
var _index29 = require("./common/components/layout/navbar/SecondaryNavBarButton/index.js");
|
|
1441
1430
|
|
|
1442
1431
|
var _CentileDistribution = require("./reporting/components/charts/Distribution/CentileDistribution.js");
|
|
1443
1432
|
|
|
1444
|
-
var
|
|
1433
|
+
var _index30 = require("./reporting/components/resources/OutcomeAnalysis/index.js");
|
|
1445
1434
|
|
|
1446
1435
|
var _PositionBox = require("./common/components/resources/positionBox/PositionBox.js");
|
|
1447
1436
|
|
|
1448
|
-
var
|
|
1437
|
+
var _index31 = require("./common/components/Pin/index.js");
|
|
1449
1438
|
|
|
1450
|
-
var
|
|
1439
|
+
var _index32 = require("./common/components/resources/sessionItemResult/SessionItemResult/index.js");
|
|
1451
1440
|
|
|
1452
|
-
var
|
|
1441
|
+
var _index33 = require("./common/components/shared/Card/index.js");
|
|
1453
1442
|
|
|
1454
|
-
var
|
|
1443
|
+
var _index34 = require("./common/components/shared/Card/CardContent/index.js");
|
|
1455
1444
|
|
|
1456
|
-
var
|
|
1445
|
+
var _index35 = require("./common/components/shared/Card/CardWrapper/index.js");
|
|
1457
1446
|
|
|
1458
|
-
var
|
|
1447
|
+
var _index36 = require("./common/components/layout/Page/index.js");
|
|
1459
1448
|
|
|
1460
|
-
var
|
|
1449
|
+
var _index37 = require("./building/components/resources/BanksTray/index.js");
|
|
1461
1450
|
|
|
1462
|
-
var
|
|
1451
|
+
var _index38 = require("./building/components/layout/Sidebar/index.js");
|
|
1463
1452
|
|
|
1464
|
-
var
|
|
1453
|
+
var _index39 = require("./building/components/resources/DeleteStimulusModal/index.js");
|
|
1465
1454
|
|
|
1466
|
-
var
|
|
1455
|
+
var _index40 = require("./building/components/resources/ItemFeedbackModal/index.js");
|
|
1467
1456
|
|
|
1468
|
-
var
|
|
1457
|
+
var _index41 = require("./building/components/resources/MoveImmutableModal/index.js");
|
|
1469
1458
|
|
|
1470
|
-
var
|
|
1459
|
+
var _index42 = require("./common/components/resources/quiz/AddContent/Modal/index.js");
|
|
1471
1460
|
|
|
1472
|
-
var
|
|
1461
|
+
var _index43 = require("./building/components/QTIImportModal/index.js");
|
|
1473
1462
|
|
|
1474
1463
|
var _ReturnButton = require("./common/components/shared/return_button/ReturnButton.js");
|
|
1475
1464
|
|
|
@@ -1479,31 +1468,31 @@ var _Event = require("./moderating/components/events/Event.js");
|
|
|
1479
1468
|
|
|
1480
1469
|
var _QuizInfo = require("./common/components/resources/quiz/info/QuizInfo.js");
|
|
1481
1470
|
|
|
1482
|
-
var
|
|
1471
|
+
var _index44 = require("./common/components/LearnosityCalculator/index.js");
|
|
1483
1472
|
|
|
1484
|
-
var
|
|
1473
|
+
var _index45 = require("./building/components/resources/quiz/instructions/Instructions/index.js");
|
|
1485
1474
|
|
|
1486
|
-
var
|
|
1475
|
+
var _index46 = require("./building/components/resources/quiz/title/Title/index.js");
|
|
1487
1476
|
|
|
1488
|
-
var
|
|
1477
|
+
var _index47 = require("./building/components/resources/quizEntry/QuizEntryShow/index.js");
|
|
1489
1478
|
|
|
1490
|
-
var
|
|
1479
|
+
var _index48 = require("./common/components/resources/stimulus/StimulusShow/index.js");
|
|
1491
1480
|
|
|
1492
|
-
var
|
|
1481
|
+
var _index49 = require("./common/components/resources/quizSessionResult/Header/index.js");
|
|
1493
1482
|
|
|
1494
|
-
var
|
|
1483
|
+
var _index50 = require("./common/components/resources/quizSessionResult/Info/index.js");
|
|
1495
1484
|
|
|
1496
|
-
var
|
|
1485
|
+
var _index51 = require("./common/components/resources/sessionItemResult/SessionItemResultsList/index.js");
|
|
1497
1486
|
|
|
1498
1487
|
var _Errors = require("./common/components/shared/errors/Errors.js");
|
|
1499
1488
|
|
|
1500
|
-
var
|
|
1489
|
+
var _index52 = require("./common/components/shared/TimeUnitsInput/index.js");
|
|
1501
1490
|
|
|
1502
|
-
var
|
|
1491
|
+
var _index53 = require("./building/components/resources/quizEntry/QuizEntry/index.js");
|
|
1503
1492
|
|
|
1504
1493
|
var _reactRedux = require("./common/react-redux.js");
|
|
1505
1494
|
|
|
1506
|
-
var
|
|
1495
|
+
var _index54 = require("./common/components/shared/FormattedDuration/index.js");
|
|
1507
1496
|
|
|
1508
1497
|
var _config = require("./config.js");
|
|
1509
1498
|
|
|
@@ -1529,7 +1518,7 @@ var _makeScrollable = require("./common/components/shared/functionality/makeScro
|
|
|
1529
1518
|
|
|
1530
1519
|
var _formatTimespan = require("./common/util/formatTimespan.js");
|
|
1531
1520
|
|
|
1532
|
-
var
|
|
1521
|
+
var _index55 = require("./common/components/ImportModal/index.js");
|
|
1533
1522
|
|
|
1534
1523
|
var _TimerService = require("./common/util/TimerService.js");
|
|
1535
1524
|
|
|
@@ -1621,16 +1610,16 @@ var _sessionItems = require("./common/selectors/sessionItems.js");
|
|
|
1621
1610
|
|
|
1622
1611
|
var _sessionItemResults = require("./common/selectors/sessionItemResults.js");
|
|
1623
1612
|
|
|
1624
|
-
var
|
|
1613
|
+
var _index56 = require("./common/records/index.js");
|
|
1625
1614
|
|
|
1626
|
-
Object.keys(
|
|
1615
|
+
Object.keys(_index56).forEach(function (key) {
|
|
1627
1616
|
if (key === "default" || key === "__esModule") return;
|
|
1628
1617
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1629
|
-
if (key in exports && exports[key] ===
|
|
1618
|
+
if (key in exports && exports[key] === _index56[key]) return;
|
|
1630
1619
|
Object.defineProperty(exports, key, {
|
|
1631
1620
|
enumerable: true,
|
|
1632
1621
|
get: function get() {
|
|
1633
|
-
return
|
|
1622
|
+
return _index56[key];
|
|
1634
1623
|
}
|
|
1635
1624
|
});
|
|
1636
1625
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.11.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@instructure/emotion": "^8.51.0",
|
|
45
45
|
"@instructure/grading-utils": "^1.0.0",
|
|
46
46
|
"@instructure/outcomes-ui": "^3.1.0",
|
|
47
|
-
"@instructure/quiz-common": "20.
|
|
48
|
-
"@instructure/quiz-i18n": "20.
|
|
49
|
-
"@instructure/quiz-interactions": "20.
|
|
50
|
-
"@instructure/quiz-number-input": "20.
|
|
51
|
-
"@instructure/quiz-rce": "20.
|
|
47
|
+
"@instructure/quiz-common": "^20.11.0",
|
|
48
|
+
"@instructure/quiz-i18n": "^20.11.0",
|
|
49
|
+
"@instructure/quiz-interactions": "^20.11.0",
|
|
50
|
+
"@instructure/quiz-number-input": "^20.11.0",
|
|
51
|
+
"@instructure/quiz-rce": "^20.11.0",
|
|
52
52
|
"@instructure/ui-a11y-content": "^8.51.0",
|
|
53
53
|
"@instructure/ui-alerts": "^8.51.0",
|
|
54
54
|
"@instructure/ui-avatar": "^8.51.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"file-saver": "~2.0.5",
|
|
113
113
|
"humps": "^2.0.0",
|
|
114
114
|
"immutable": "^3.8.1",
|
|
115
|
-
"instructure-validations": "20.
|
|
115
|
+
"instructure-validations": "^20.11.0",
|
|
116
116
|
"ipaddr.js": "^1.5.4",
|
|
117
117
|
"isomorphic-fetch": "^2.2.0",
|
|
118
118
|
"isuuid": "^0.1.0",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"uuid": "^3.2.1"
|
|
144
144
|
},
|
|
145
145
|
"devDependencies": {
|
|
146
|
-
"@instructure/quiz-scripts": "20.
|
|
146
|
+
"@instructure/quiz-scripts": "^20.11.0",
|
|
147
147
|
"@instructure/ui-axe-check": "^8.51.0",
|
|
148
148
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
149
149
|
"@instructure/ui-karma-config": "^7.22.1",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"intl": "^1.2.4",
|
|
164
164
|
"jquery": "^2.2.3",
|
|
165
165
|
"most-subject": "^5.3.0",
|
|
166
|
-
"quiz-presets": "20.
|
|
166
|
+
"quiz-presets": "^20.11.0",
|
|
167
167
|
"react": "^16.8.6",
|
|
168
168
|
"react-addons-test-utils": "^15.6.2",
|
|
169
169
|
"react-dom": "^16.8.6",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"publishConfig": {
|
|
180
180
|
"access": "public"
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "57467606c2b7c9b270f32bd752c4dcbd8c2fe80a"
|
|
183
183
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { bindActionCreators } from 'redux';
|
|
2
|
-
import partial from 'lodash/partial';
|
|
3
|
-
import { connect } from "../../../../../common/react-redux.js";
|
|
4
|
-
import * as modalActions from "../../../../../common/actions/modal.js";
|
|
5
|
-
import { set as setUI } from "../../../../../common/actions/ui.js";
|
|
6
|
-
import { BUILD_TRAY_OPEN, BUILD_TRAY_BUTTON_REF } from '@instructure/quiz-common';
|
|
7
|
-
import { generateImportModalId } from "../../../../../common/components/ImportModal/index.js";
|
|
8
|
-
import { BuildingButtonsICE as BuildingButtonsICEPresenter } from "./presenter.js";
|
|
9
|
-
import { getActiveQuiz } from "../../../../../common/selectors/quizzes.js";
|
|
10
|
-
import { featureOn } from "../../../../../common/util/featureCheck.js";
|
|
11
|
-
import { startQuizExportJob } from "../../../../../common/actions/quizExport.js";
|
|
12
|
-
import { addAlert, addInfo } from "../../../../../common/actions/alerts.js";
|
|
13
|
-
export function mapStateToProps(state) {
|
|
14
|
-
var quiz = getActiveQuiz(state);
|
|
15
|
-
return {
|
|
16
|
-
activeQuizId: quiz.id,
|
|
17
|
-
canExport: !state.getIn(['quizExport', "activeQuiz".concat(quiz.id)]),
|
|
18
|
-
canImport: quiz.canImport(),
|
|
19
|
-
hasQuestions: quiz.hasQuestions(),
|
|
20
|
-
isEditing: state.get('editing') && state.get('editing').some(function (elem) {
|
|
21
|
-
return elem;
|
|
22
|
-
}),
|
|
23
|
-
printingEnabled: featureOn('printing')
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
28
|
-
return {
|
|
29
|
-
addAlert: bindActionCreators(addAlert, dispatch),
|
|
30
|
-
addInfo: bindActionCreators(addInfo, dispatch),
|
|
31
|
-
openBanksTray: bindActionCreators(setUI.bind(void 0, BUILD_TRAY_OPEN, true), dispatch),
|
|
32
|
-
setBanksTrayButtonRef: bindActionCreators(partial(setUI, BUILD_TRAY_BUTTON_REF), dispatch),
|
|
33
|
-
startExport: bindActionCreators(startQuizExportJob, dispatch),
|
|
34
|
-
openModal: bindActionCreators(modalActions.openModal.bind(modalActions, generateImportModalId('qtiImport')), dispatch)
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
var BuildingButtonsICE = connect(mapStateToProps, mapDispatchToProps)(BuildingButtonsICEPresenter);
|
|
39
|
-
BuildingButtonsICE.displayName = 'TopNavBarItem';
|
|
40
|
-
export default BuildingButtonsICE;
|