@khanacademy/perseus-editor 1.0.16 → 1.1.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/dist/es/index.css +1 -37
- package/dist/index.css +1 -37
- package/package.json +10 -10
- package/src/styles/perseus-editor.less +2 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @khanacademy/perseus-editor
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2c843b38: Update to use wonder-blocks deps after migrating wonder-blocks to TS
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [2c843b38]
|
|
12
|
+
- @khanacademy/perseus@2.1.0
|
|
13
|
+
|
|
3
14
|
## 1.0.16
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/es/index.css
CHANGED
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
.perseus-textarea-pair > textarea {
|
|
53
53
|
background: transparent;
|
|
54
54
|
border: 0;
|
|
55
|
-
-moz-box-sizing: border-box;
|
|
56
|
-
-ms-box-sizing: border-box;
|
|
57
55
|
box-sizing: border-box;
|
|
58
56
|
font: inherit;
|
|
59
57
|
height: 100%;
|
|
@@ -219,8 +217,6 @@
|
|
|
219
217
|
min-width: 360px;
|
|
220
218
|
}
|
|
221
219
|
.perseus-editor-right-cell {
|
|
222
|
-
-webkit-box-sizing: border-box;
|
|
223
|
-
-moz-box-sizing: border-box;
|
|
224
220
|
box-sizing: border-box;
|
|
225
221
|
display: table-cell;
|
|
226
222
|
padding: 30px;
|
|
@@ -346,10 +342,6 @@
|
|
|
346
342
|
text-decoration: none;
|
|
347
343
|
width: 75%;
|
|
348
344
|
-webkit-user-select: none;
|
|
349
|
-
-khtml-user-drag: none;
|
|
350
|
-
-khtml-user-select: none;
|
|
351
|
-
-moz-user-select: none;
|
|
352
|
-
-ms-user-select: none;
|
|
353
345
|
user-select: none;
|
|
354
346
|
}
|
|
355
347
|
.perseus-widget-expression-editor .answer-status.wrong {
|
|
@@ -459,8 +451,6 @@
|
|
|
459
451
|
.perseus-input-number-editor .options-toggle,
|
|
460
452
|
.perseus-input-number-editor .answer-trash {
|
|
461
453
|
border-left: 1px solid #ccc;
|
|
462
|
-
-webkit-box-sizing: border-box;
|
|
463
|
-
-moz-box-sizing: border-box;
|
|
464
454
|
box-sizing: border-box;
|
|
465
455
|
cursor: pointer;
|
|
466
456
|
display: inline-block;
|
|
@@ -500,10 +490,6 @@
|
|
|
500
490
|
bottom: auto;
|
|
501
491
|
left: 0;
|
|
502
492
|
-webkit-user-select: none;
|
|
503
|
-
-khtml-user-drag: none;
|
|
504
|
-
-khtml-user-select: none;
|
|
505
|
-
-moz-user-select: none;
|
|
506
|
-
-ms-user-select: none;
|
|
507
493
|
user-select: none;
|
|
508
494
|
}
|
|
509
495
|
.perseus-input-number-editor .simplify-indicator {
|
|
@@ -521,10 +507,6 @@
|
|
|
521
507
|
bottom: auto;
|
|
522
508
|
left: 0;
|
|
523
509
|
-webkit-user-select: none;
|
|
524
|
-
-khtml-user-drag: none;
|
|
525
|
-
-khtml-user-select: none;
|
|
526
|
-
-moz-user-select: none;
|
|
527
|
-
-ms-user-select: none;
|
|
528
510
|
user-select: none;
|
|
529
511
|
}
|
|
530
512
|
.perseus-input-number-editor .simplify-indicator.optional {
|
|
@@ -540,10 +522,6 @@
|
|
|
540
522
|
text-decoration: none;
|
|
541
523
|
width: 60%;
|
|
542
524
|
-webkit-user-select: none;
|
|
543
|
-
-khtml-user-drag: none;
|
|
544
|
-
-khtml-user-select: none;
|
|
545
|
-
-moz-user-select: none;
|
|
546
|
-
-ms-user-select: none;
|
|
547
525
|
user-select: none;
|
|
548
526
|
}
|
|
549
527
|
.perseus-input-number-editor .answer-status.wrong {
|
|
@@ -586,18 +564,7 @@
|
|
|
586
564
|
.perseus-widget-radio .choice-editor.incorrect textarea {
|
|
587
565
|
background: #ffcccc;
|
|
588
566
|
}
|
|
589
|
-
.perseus-widget-radio textarea
|
|
590
|
-
color: #777;
|
|
591
|
-
}
|
|
592
|
-
.perseus-widget-radio textarea:-moz-placeholder {
|
|
593
|
-
color: #777;
|
|
594
|
-
opacity: 1;
|
|
595
|
-
}
|
|
596
|
-
.perseus-widget-radio textarea::-moz-placeholder {
|
|
597
|
-
color: #777;
|
|
598
|
-
opacity: 1;
|
|
599
|
-
}
|
|
600
|
-
.perseus-widget-radio textarea:-ms-input-placeholder {
|
|
567
|
+
.perseus-widget-radio textarea::placeholder {
|
|
601
568
|
color: #777;
|
|
602
569
|
}
|
|
603
570
|
.perseus-widget-radio .clue-editor .perseus-textarea-pair {
|
|
@@ -903,8 +870,6 @@
|
|
|
903
870
|
}
|
|
904
871
|
.show-div-button {
|
|
905
872
|
-webkit-user-select: none;
|
|
906
|
-
-moz-user-select: none;
|
|
907
|
-
-ms-user-select: none;
|
|
908
873
|
user-select: none;
|
|
909
874
|
}
|
|
910
875
|
.perseus-widget-editor .unit-radio {
|
|
@@ -944,7 +909,6 @@
|
|
|
944
909
|
width: 50%;
|
|
945
910
|
white-space: pre-wrap;
|
|
946
911
|
box-sizing: border-box;
|
|
947
|
-
-moz-box-sizing: border-box;
|
|
948
912
|
font-size: 14px;
|
|
949
913
|
padding-right: 20px;
|
|
950
914
|
padding-left: 10px;
|
package/dist/index.css
CHANGED
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
.perseus-textarea-pair > textarea {
|
|
53
53
|
background: transparent;
|
|
54
54
|
border: 0;
|
|
55
|
-
-moz-box-sizing: border-box;
|
|
56
|
-
-ms-box-sizing: border-box;
|
|
57
55
|
box-sizing: border-box;
|
|
58
56
|
font: inherit;
|
|
59
57
|
height: 100%;
|
|
@@ -219,8 +217,6 @@
|
|
|
219
217
|
min-width: 360px;
|
|
220
218
|
}
|
|
221
219
|
.perseus-editor-right-cell {
|
|
222
|
-
-webkit-box-sizing: border-box;
|
|
223
|
-
-moz-box-sizing: border-box;
|
|
224
220
|
box-sizing: border-box;
|
|
225
221
|
display: table-cell;
|
|
226
222
|
padding: 30px;
|
|
@@ -346,10 +342,6 @@
|
|
|
346
342
|
text-decoration: none;
|
|
347
343
|
width: 75%;
|
|
348
344
|
-webkit-user-select: none;
|
|
349
|
-
-khtml-user-drag: none;
|
|
350
|
-
-khtml-user-select: none;
|
|
351
|
-
-moz-user-select: none;
|
|
352
|
-
-ms-user-select: none;
|
|
353
345
|
user-select: none;
|
|
354
346
|
}
|
|
355
347
|
.perseus-widget-expression-editor .answer-status.wrong {
|
|
@@ -459,8 +451,6 @@
|
|
|
459
451
|
.perseus-input-number-editor .options-toggle,
|
|
460
452
|
.perseus-input-number-editor .answer-trash {
|
|
461
453
|
border-left: 1px solid #ccc;
|
|
462
|
-
-webkit-box-sizing: border-box;
|
|
463
|
-
-moz-box-sizing: border-box;
|
|
464
454
|
box-sizing: border-box;
|
|
465
455
|
cursor: pointer;
|
|
466
456
|
display: inline-block;
|
|
@@ -500,10 +490,6 @@
|
|
|
500
490
|
bottom: auto;
|
|
501
491
|
left: 0;
|
|
502
492
|
-webkit-user-select: none;
|
|
503
|
-
-khtml-user-drag: none;
|
|
504
|
-
-khtml-user-select: none;
|
|
505
|
-
-moz-user-select: none;
|
|
506
|
-
-ms-user-select: none;
|
|
507
493
|
user-select: none;
|
|
508
494
|
}
|
|
509
495
|
.perseus-input-number-editor .simplify-indicator {
|
|
@@ -521,10 +507,6 @@
|
|
|
521
507
|
bottom: auto;
|
|
522
508
|
left: 0;
|
|
523
509
|
-webkit-user-select: none;
|
|
524
|
-
-khtml-user-drag: none;
|
|
525
|
-
-khtml-user-select: none;
|
|
526
|
-
-moz-user-select: none;
|
|
527
|
-
-ms-user-select: none;
|
|
528
510
|
user-select: none;
|
|
529
511
|
}
|
|
530
512
|
.perseus-input-number-editor .simplify-indicator.optional {
|
|
@@ -540,10 +522,6 @@
|
|
|
540
522
|
text-decoration: none;
|
|
541
523
|
width: 60%;
|
|
542
524
|
-webkit-user-select: none;
|
|
543
|
-
-khtml-user-drag: none;
|
|
544
|
-
-khtml-user-select: none;
|
|
545
|
-
-moz-user-select: none;
|
|
546
|
-
-ms-user-select: none;
|
|
547
525
|
user-select: none;
|
|
548
526
|
}
|
|
549
527
|
.perseus-input-number-editor .answer-status.wrong {
|
|
@@ -586,18 +564,7 @@
|
|
|
586
564
|
.perseus-widget-radio .choice-editor.incorrect textarea {
|
|
587
565
|
background: #ffcccc;
|
|
588
566
|
}
|
|
589
|
-
.perseus-widget-radio textarea
|
|
590
|
-
color: #777;
|
|
591
|
-
}
|
|
592
|
-
.perseus-widget-radio textarea:-moz-placeholder {
|
|
593
|
-
color: #777;
|
|
594
|
-
opacity: 1;
|
|
595
|
-
}
|
|
596
|
-
.perseus-widget-radio textarea::-moz-placeholder {
|
|
597
|
-
color: #777;
|
|
598
|
-
opacity: 1;
|
|
599
|
-
}
|
|
600
|
-
.perseus-widget-radio textarea:-ms-input-placeholder {
|
|
567
|
+
.perseus-widget-radio textarea::placeholder {
|
|
601
568
|
color: #777;
|
|
602
569
|
}
|
|
603
570
|
.perseus-widget-radio .clue-editor .perseus-textarea-pair {
|
|
@@ -903,8 +870,6 @@
|
|
|
903
870
|
}
|
|
904
871
|
.show-div-button {
|
|
905
872
|
-webkit-user-select: none;
|
|
906
|
-
-moz-user-select: none;
|
|
907
|
-
-ms-user-select: none;
|
|
908
873
|
user-select: none;
|
|
909
874
|
}
|
|
910
875
|
.perseus-widget-editor .unit-radio {
|
|
@@ -944,7 +909,6 @@
|
|
|
944
909
|
width: 50%;
|
|
945
910
|
white-space: pre-wrap;
|
|
946
911
|
box-sizing: border-box;
|
|
947
|
-
-moz-box-sizing: border-box;
|
|
948
912
|
font-size: 14px;
|
|
949
913
|
padding-right: 20px;
|
|
950
914
|
padding-left: 10px;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.0
|
|
6
|
+
"version": "1.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@khanacademy/kas": "^0.2.7",
|
|
25
25
|
"@khanacademy/kmath": "^0.0.8",
|
|
26
|
-
"@khanacademy/perseus": "^2.0
|
|
26
|
+
"@khanacademy/perseus": "^2.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@khanacademy/wonder-blocks-button": "^
|
|
30
|
-
"@khanacademy/wonder-blocks-clickable": "^
|
|
31
|
-
"@khanacademy/wonder-blocks-color": "^
|
|
32
|
-
"@khanacademy/wonder-blocks-i18n": "^
|
|
29
|
+
"@khanacademy/wonder-blocks-button": "^4.0.8",
|
|
30
|
+
"@khanacademy/wonder-blocks-clickable": "^3.0.8",
|
|
31
|
+
"@khanacademy/wonder-blocks-color": "^2.0.1",
|
|
32
|
+
"@khanacademy/wonder-blocks-i18n": "^2.0.2",
|
|
33
33
|
"aphrodite": "^1.2.5",
|
|
34
34
|
"classnames": "^1.1.4",
|
|
35
35
|
"create-react-class": "^15.6.3",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"underscore": "^1.4.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@khanacademy/wonder-blocks-button": "^
|
|
45
|
-
"@khanacademy/wonder-blocks-clickable": "^
|
|
46
|
-
"@khanacademy/wonder-blocks-color": "^
|
|
47
|
-
"@khanacademy/wonder-blocks-i18n": "^
|
|
44
|
+
"@khanacademy/wonder-blocks-button": "^4.0.8",
|
|
45
|
+
"@khanacademy/wonder-blocks-clickable": "^3.0.8",
|
|
46
|
+
"@khanacademy/wonder-blocks-color": "^2.0.1",
|
|
47
|
+
"@khanacademy/wonder-blocks-i18n": "^2.0.2",
|
|
48
48
|
"aphrodite": "^1.2.5",
|
|
49
49
|
"classnames": "^1.1.4",
|
|
50
50
|
"create-react-class": "^15.6.3",
|
|
@@ -33,10 +33,7 @@
|
|
|
33
33
|
@ungradedBlue: #d9edf7;
|
|
34
34
|
|
|
35
35
|
.border-box-sizing() {
|
|
36
|
-
-webkit-box-sizing: border-box;
|
|
37
|
-
-moz-box-sizing: border-box;
|
|
38
36
|
box-sizing: border-box;
|
|
39
|
-
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
.size(@width: auto, @height: auto) {
|
|
@@ -53,11 +50,7 @@
|
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
.user-select (@select) {
|
|
56
|
-
|
|
57
|
-
-khtml-user-drag: @select;
|
|
58
|
-
-khtml-user-select: @select;
|
|
59
|
-
-moz-user-select: @select;
|
|
60
|
-
-ms-user-select: @select;
|
|
53
|
+
-webkit-user-select: @select;
|
|
61
54
|
user-select: @select;
|
|
62
55
|
}
|
|
63
56
|
|
|
@@ -129,8 +122,6 @@
|
|
|
129
122
|
.perseus-textarea-pair > textarea {
|
|
130
123
|
background: transparent;
|
|
131
124
|
border: 0;
|
|
132
|
-
-moz-box-sizing: border-box;
|
|
133
|
-
-ms-box-sizing: border-box;
|
|
134
125
|
box-sizing: border-box;
|
|
135
126
|
font: inherit;
|
|
136
127
|
height: 100%;
|
|
@@ -776,19 +767,7 @@
|
|
|
776
767
|
}
|
|
777
768
|
|
|
778
769
|
textarea {
|
|
779
|
-
|
|
780
|
-
&::-webkit-input-placeholder {
|
|
781
|
-
color: #777;
|
|
782
|
-
}
|
|
783
|
-
&:-moz-placeholder {
|
|
784
|
-
color: #777;
|
|
785
|
-
opacity: 1;
|
|
786
|
-
}
|
|
787
|
-
&::-moz-placeholder {
|
|
788
|
-
color: #777;
|
|
789
|
-
opacity: 1;
|
|
790
|
-
}
|
|
791
|
-
&:-ms-input-placeholder {
|
|
770
|
+
&::placeholder {
|
|
792
771
|
color: #777;
|
|
793
772
|
}
|
|
794
773
|
}
|
|
@@ -1197,8 +1176,6 @@
|
|
|
1197
1176
|
// repo.
|
|
1198
1177
|
.show-div-button {
|
|
1199
1178
|
-webkit-user-select: none;
|
|
1200
|
-
-moz-user-select: none;
|
|
1201
|
-
-ms-user-select: none;
|
|
1202
1179
|
user-select: none;
|
|
1203
1180
|
}
|
|
1204
1181
|
|
|
@@ -1248,7 +1225,6 @@
|
|
|
1248
1225
|
width: 50%;
|
|
1249
1226
|
white-space: pre-wrap;
|
|
1250
1227
|
box-sizing: border-box;
|
|
1251
|
-
-moz-box-sizing: border-box;
|
|
1252
1228
|
font-size: 14px;
|
|
1253
1229
|
padding-right: 20px;
|
|
1254
1230
|
padding-left: 10px;
|