@difizen/libro-core 0.2.30 → 0.2.32
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-command-contribution.d.ts","sourceRoot":"","sources":["../../src/command/libro-command-contribution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAEL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,qBACa,wBAAyB,YAAW,mBAAmB;IAC5C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC9D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAE7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"libro-command-contribution.d.ts","sourceRoot":"","sources":["../../src/command/libro-command-contribution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAEL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,qBACa,wBAAyB,YAAW,mBAAmB;IAC5C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC9D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAE7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;CA+xCjD"}
|
|
@@ -74,7 +74,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
74
74
|
});
|
|
75
75
|
this.libroCommand.registerLibroCommand(command, NotebookCommands['SelectAll'], {
|
|
76
76
|
execute: function execute(cell, libro) {
|
|
77
|
-
if (!
|
|
77
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
libro.selectAllCell();
|
|
@@ -721,7 +721,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
721
721
|
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
722
722
|
while (1) switch (_context21.prev = _context21.next) {
|
|
723
723
|
case 0:
|
|
724
|
-
if (!(!
|
|
724
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
725
725
|
_context21.next = 2;
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
@@ -1101,7 +1101,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1101
1101
|
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
1102
1102
|
while (1) switch (_context32.prev = _context32.next) {
|
|
1103
1103
|
case 0:
|
|
1104
|
-
if (!(!
|
|
1104
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1105
1105
|
_context32.next = 2;
|
|
1106
1106
|
break;
|
|
1107
1107
|
}
|
|
@@ -1126,7 +1126,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1126
1126
|
return _regeneratorRuntime().wrap(function _callee33$(_context33) {
|
|
1127
1127
|
while (1) switch (_context33.prev = _context33.next) {
|
|
1128
1128
|
case 0:
|
|
1129
|
-
if (!(!
|
|
1129
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1130
1130
|
_context33.next = 2;
|
|
1131
1131
|
break;
|
|
1132
1132
|
}
|
|
@@ -1193,7 +1193,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1193
1193
|
return _regeneratorRuntime().wrap(function _callee35$(_context35) {
|
|
1194
1194
|
while (1) switch (_context35.prev = _context35.next) {
|
|
1195
1195
|
case 0:
|
|
1196
|
-
if (!(!
|
|
1196
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1197
1197
|
_context35.next = 2;
|
|
1198
1198
|
break;
|
|
1199
1199
|
}
|
|
@@ -1243,7 +1243,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1243
1243
|
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
|
|
1244
1244
|
while (1) switch (_context37.prev = _context37.next) {
|
|
1245
1245
|
case 0:
|
|
1246
|
-
if (!(!
|
|
1246
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1247
1247
|
_context37.next = 2;
|
|
1248
1248
|
break;
|
|
1249
1249
|
}
|
|
@@ -1268,7 +1268,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1268
1268
|
return _regeneratorRuntime().wrap(function _callee38$(_context38) {
|
|
1269
1269
|
while (1) switch (_context38.prev = _context38.next) {
|
|
1270
1270
|
case 0:
|
|
1271
|
-
if (!(!
|
|
1271
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1272
1272
|
_context38.next = 2;
|
|
1273
1273
|
break;
|
|
1274
1274
|
}
|
|
@@ -1293,7 +1293,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1293
1293
|
return _regeneratorRuntime().wrap(function _callee39$(_context39) {
|
|
1294
1294
|
while (1) switch (_context39.prev = _context39.next) {
|
|
1295
1295
|
case 0:
|
|
1296
|
-
if (!(!
|
|
1296
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1297
1297
|
_context39.next = 2;
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
@@ -1318,7 +1318,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1318
1318
|
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
|
|
1319
1319
|
while (1) switch (_context40.prev = _context40.next) {
|
|
1320
1320
|
case 0:
|
|
1321
|
-
if (!(!
|
|
1321
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1322
1322
|
_context40.next = 2;
|
|
1323
1323
|
break;
|
|
1324
1324
|
}
|
|
@@ -1343,7 +1343,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1343
1343
|
return _regeneratorRuntime().wrap(function _callee41$(_context41) {
|
|
1344
1344
|
while (1) switch (_context41.prev = _context41.next) {
|
|
1345
1345
|
case 0:
|
|
1346
|
-
if (!(!
|
|
1346
|
+
if (!(!libro || !(libro instanceof LibroView))) {
|
|
1347
1347
|
_context41.next = 2;
|
|
1348
1348
|
break;
|
|
1349
1349
|
}
|
|
@@ -1447,7 +1447,7 @@ export var LibroCommandContribution = (_dec = singleton({
|
|
|
1447
1447
|
});
|
|
1448
1448
|
this.libroCommand.registerLibroCommand(command, NotebookCommands['EnableOrDisableAllOutputScrolling'], {
|
|
1449
1449
|
execute: function execute(cell, libro) {
|
|
1450
|
-
if (!
|
|
1450
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (libro.outputsScroll) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
38
|
-
"@difizen/libro-common": "^0.2.
|
|
39
|
-
"@difizen/libro-shared-model": "^0.2.
|
|
40
|
-
"@difizen/libro-virtualized": "^0.2.
|
|
37
|
+
"@difizen/libro-code-editor": "^0.2.32",
|
|
38
|
+
"@difizen/libro-common": "^0.2.32",
|
|
39
|
+
"@difizen/libro-shared-model": "^0.2.32",
|
|
40
|
+
"@difizen/libro-virtualized": "^0.2.32",
|
|
41
41
|
"@difizen/mana-app": "latest",
|
|
42
42
|
"@difizen/mana-l10n": "latest",
|
|
43
43
|
"@difizen/mana-react": "latest",
|
|
@@ -55,12 +55,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
55
55
|
);
|
|
56
56
|
this.libroCommand.registerLibroCommand(command, NotebookCommands['SelectAll'], {
|
|
57
57
|
execute: (cell, libro) => {
|
|
58
|
-
if (
|
|
59
|
-
!cell ||
|
|
60
|
-
!libro ||
|
|
61
|
-
!(cell instanceof LibroCellView) ||
|
|
62
|
-
!(libro instanceof LibroView)
|
|
63
|
-
) {
|
|
58
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
64
59
|
return;
|
|
65
60
|
}
|
|
66
61
|
libro.selectAllCell();
|
|
@@ -501,12 +496,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
501
496
|
NotebookCommands['ClearAllCellOutput'],
|
|
502
497
|
{
|
|
503
498
|
execute: async (cell, libro) => {
|
|
504
|
-
if (
|
|
505
|
-
!cell ||
|
|
506
|
-
!libro ||
|
|
507
|
-
!(cell instanceof LibroCellView) ||
|
|
508
|
-
!(libro instanceof LibroView)
|
|
509
|
-
) {
|
|
499
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
510
500
|
return;
|
|
511
501
|
}
|
|
512
502
|
libro.clearAllOutputs();
|
|
@@ -784,12 +774,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
784
774
|
NotebookCommands['HideAllCellCode'],
|
|
785
775
|
{
|
|
786
776
|
execute: async (cell, libro) => {
|
|
787
|
-
if (
|
|
788
|
-
!cell ||
|
|
789
|
-
!libro ||
|
|
790
|
-
!(cell instanceof LibroCellView) ||
|
|
791
|
-
!(libro instanceof LibroView)
|
|
792
|
-
) {
|
|
777
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
793
778
|
return;
|
|
794
779
|
}
|
|
795
780
|
libro.hideAllCellCode();
|
|
@@ -801,12 +786,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
801
786
|
NotebookCommands['HideAllCellOutput'],
|
|
802
787
|
{
|
|
803
788
|
execute: async (cell, libro) => {
|
|
804
|
-
if (
|
|
805
|
-
!cell ||
|
|
806
|
-
!libro ||
|
|
807
|
-
!(cell instanceof LibroCellView) ||
|
|
808
|
-
!(libro instanceof LibroView)
|
|
809
|
-
) {
|
|
789
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
810
790
|
return;
|
|
811
791
|
}
|
|
812
792
|
libro.hideAllOutputs();
|
|
@@ -852,12 +832,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
852
832
|
NotebookCommands['ShowAllCellOutputs'],
|
|
853
833
|
{
|
|
854
834
|
execute: async (cell, libro) => {
|
|
855
|
-
if (
|
|
856
|
-
!cell ||
|
|
857
|
-
!libro ||
|
|
858
|
-
!(cell instanceof LibroCellView) ||
|
|
859
|
-
!(libro instanceof LibroView)
|
|
860
|
-
) {
|
|
835
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
861
836
|
return;
|
|
862
837
|
}
|
|
863
838
|
libro.showAllCellOutputs();
|
|
@@ -882,12 +857,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
882
857
|
NotebookCommands['ShowAllCellCode'],
|
|
883
858
|
{
|
|
884
859
|
execute: async (cell, libro) => {
|
|
885
|
-
if (
|
|
886
|
-
!cell ||
|
|
887
|
-
!libro ||
|
|
888
|
-
!(cell instanceof LibroCellView) ||
|
|
889
|
-
!(libro instanceof LibroView)
|
|
890
|
-
) {
|
|
860
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
891
861
|
return;
|
|
892
862
|
}
|
|
893
863
|
libro.showAllCellCode();
|
|
@@ -899,12 +869,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
899
869
|
NotebookCommands['ExtendMarkedCellsAbove'],
|
|
900
870
|
{
|
|
901
871
|
execute: async (cell, libro) => {
|
|
902
|
-
if (
|
|
903
|
-
!cell ||
|
|
904
|
-
!libro ||
|
|
905
|
-
!(cell instanceof LibroCellView) ||
|
|
906
|
-
!(libro instanceof LibroView)
|
|
907
|
-
) {
|
|
872
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
908
873
|
return;
|
|
909
874
|
}
|
|
910
875
|
libro.extendSelectionAbove();
|
|
@@ -916,12 +881,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
916
881
|
NotebookCommands['ExtendMarkedCellsTop'],
|
|
917
882
|
{
|
|
918
883
|
execute: async (cell, libro) => {
|
|
919
|
-
if (
|
|
920
|
-
!cell ||
|
|
921
|
-
!libro ||
|
|
922
|
-
!(cell instanceof LibroCellView) ||
|
|
923
|
-
!(libro instanceof LibroView)
|
|
924
|
-
) {
|
|
884
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
925
885
|
return;
|
|
926
886
|
}
|
|
927
887
|
libro.extendSelectionToTop();
|
|
@@ -933,12 +893,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
933
893
|
NotebookCommands['ExtendMarkedCellsBelow'],
|
|
934
894
|
{
|
|
935
895
|
execute: async (cell, libro) => {
|
|
936
|
-
if (
|
|
937
|
-
!cell ||
|
|
938
|
-
!libro ||
|
|
939
|
-
!(cell instanceof LibroCellView) ||
|
|
940
|
-
!(libro instanceof LibroView)
|
|
941
|
-
) {
|
|
896
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
942
897
|
return;
|
|
943
898
|
}
|
|
944
899
|
libro.extendSelectionBelow();
|
|
@@ -950,12 +905,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
950
905
|
NotebookCommands['ExtendMarkedCellsBottom'],
|
|
951
906
|
{
|
|
952
907
|
execute: async (cell, libro) => {
|
|
953
|
-
if (
|
|
954
|
-
!cell ||
|
|
955
|
-
!libro ||
|
|
956
|
-
!(cell instanceof LibroCellView) ||
|
|
957
|
-
!(libro instanceof LibroView)
|
|
958
|
-
) {
|
|
908
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
959
909
|
return;
|
|
960
910
|
}
|
|
961
911
|
libro.extendSelectionToBottom();
|
|
@@ -1075,12 +1025,7 @@ export class LibroCommandContribution implements CommandContribution {
|
|
|
1075
1025
|
NotebookCommands['EnableOrDisableAllOutputScrolling'],
|
|
1076
1026
|
{
|
|
1077
1027
|
execute: (cell: CellView | undefined, libro: NotebookView | undefined) => {
|
|
1078
|
-
if (
|
|
1079
|
-
!cell ||
|
|
1080
|
-
!libro ||
|
|
1081
|
-
!(cell instanceof LibroCellView) ||
|
|
1082
|
-
!(libro instanceof LibroView)
|
|
1083
|
-
) {
|
|
1028
|
+
if (!libro || !(libro instanceof LibroView)) {
|
|
1084
1029
|
return;
|
|
1085
1030
|
}
|
|
1086
1031
|
if (libro.outputsScroll) {
|