@astl/editor 0.2.0 → 0.2.2
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 +28 -0
- package/dist/elements/help-form.d.ts +22 -7
- package/dist/elements/help-form.d.ts.map +1 -1
- package/dist/elements/help-form.js +276 -95
- package/dist/elements/help-form.js.map +1 -1
- package/dist/elements/inspector.d.ts +7 -0
- package/dist/elements/inspector.d.ts.map +1 -1
- package/dist/elements/inspector.js +20 -2
- package/dist/elements/inspector.js.map +1 -1
- package/dist/elements/picture-field.d.ts.map +1 -1
- package/dist/elements/picture-field.js +2 -1
- package/dist/elements/picture-field.js.map +1 -1
- package/dist/elements/style-load.d.ts +14 -0
- package/dist/elements/style-load.d.ts.map +1 -1
- package/dist/elements/style-load.js +7 -0
- package/dist/elements/style-load.js.map +1 -1
- package/dist/elements/styles.d.ts +8 -0
- package/dist/elements/styles.d.ts.map +1 -1
- package/dist/elements/styles.js +30 -0
- package/dist/elements/styles.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/messages/en.json +4 -1
- package/dist/messages/help/en.json +3 -2
- package/dist/messages/help/pl.json +3 -2
- package/dist/messages/pl.json +4 -1
- package/package.json +5 -5
- package/src/elements/help-form.ts +304 -104
- package/src/elements/inspector.ts +21 -3
- package/src/elements/picture-field.ts +2 -1
- package/src/elements/style-load.ts +17 -0
- package/src/elements/styles.ts +31 -0
- package/src/index.ts +2 -2
- package/src/messages/en.json +4 -1
- package/src/messages/help/en.json +3 -2
- package/src/messages/help/pl.json +3 -2
- package/src/messages/pl.json +4 -1
package/dist/messages/en.json
CHANGED
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
"surface.blockRemoved": "Block {n} deleted",
|
|
153
153
|
"surface.addOption": "Add option",
|
|
154
154
|
"surface.addPrompt": "Add prompt",
|
|
155
|
+
"surface.newWord": "word",
|
|
155
156
|
"surface.chip.empty": "No answer",
|
|
156
157
|
"surface.chip.more": "+{n}",
|
|
157
158
|
"surface.picture.alt": "Picture: {alt}",
|
|
@@ -245,7 +246,6 @@
|
|
|
245
246
|
"surface.picture.place": "Position and size: {position}, {width}",
|
|
246
247
|
"surface.picture.placeAuto": "Position and size: {position}",
|
|
247
248
|
"style.target.more": "{target}…",
|
|
248
|
-
"help.cost": "costs {percent}%",
|
|
249
249
|
"help.when.correct": "Correct",
|
|
250
250
|
"help.when.incorrect": "Wrong",
|
|
251
251
|
"help.when.partial": "Partly correct",
|
|
@@ -253,6 +253,9 @@
|
|
|
253
253
|
"help.costLabel": "Cost of the hint",
|
|
254
254
|
"help.whenLabel": "For the result",
|
|
255
255
|
"surface.helpRemove": "{kind, select, hint {Remove the hint} explanation {Remove the explanation} other {Remove the feedback}}",
|
|
256
|
+
"surface.helpHints": "{n, plural, one {# hint} other {# hints}}",
|
|
257
|
+
"surface.helpOpen": "Open in the card",
|
|
258
|
+
"surface.helpPlaceholder": "{kind, select, hint {Write the hint...} explanation {Write the explanation...} other {Write the feedback...}}",
|
|
256
259
|
"surface.pageCheck": "Check this page",
|
|
257
260
|
"surface.pageCheckOn": "Page {page} has a Check of its own now.",
|
|
258
261
|
"surface.pageCheckOff": "Page {page} has no Check of its own now.",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"help.title": "Help for students",
|
|
3
|
+
"help.summaryNone": "none",
|
|
4
|
+
"help.summaryExplanation": "explanation",
|
|
5
|
+
"help.summaryFeedback": "feedback",
|
|
3
6
|
"help.hints": "Hints",
|
|
4
7
|
"help.hintsNote": "Students ask for them one at a time, in this order. A cost is the share of the question's points a student loses for using that hint.",
|
|
5
8
|
"help.hintN": "Hint {n}",
|
|
@@ -8,8 +11,6 @@
|
|
|
8
11
|
"help.costShare": "-{percent}% of this question's points",
|
|
9
12
|
"help.costPoints": "-{percent}%: -{points} of {max, plural, one {# point} other {# points}}",
|
|
10
13
|
"help.addHint": "Add a hint",
|
|
11
|
-
"help.up": "Up",
|
|
12
|
-
"help.down": "Down",
|
|
13
14
|
"help.upN": "Move hint {n} up",
|
|
14
15
|
"help.downN": "Move hint {n} down",
|
|
15
16
|
"help.removeN": "Remove hint {n}",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"help.title": "Pomoc dla ucznia",
|
|
3
|
+
"help.summaryNone": "brak",
|
|
4
|
+
"help.summaryExplanation": "wyjaśnienie",
|
|
5
|
+
"help.summaryFeedback": "informacja zwrotna",
|
|
3
6
|
"help.hints": "Podpowiedzi",
|
|
4
7
|
"help.hintsNote": "Uczeń prosi o nie po kolei, w tej kolejności. Koszt to część punktów za to pytanie, którą uczeń traci, gdy użyje podpowiedzi.",
|
|
5
8
|
"help.hintN": "Podpowiedź {n}",
|
|
@@ -8,8 +11,6 @@
|
|
|
8
11
|
"help.costShare": "-{percent}% punktów za to pytanie",
|
|
9
12
|
"help.costPoints": "-{percent}%: -{points} z {max, plural, one {# punktu} few {# punktów} many {# punktów} other {# punktu}}",
|
|
10
13
|
"help.addHint": "Dodaj podpowiedź",
|
|
11
|
-
"help.up": "W górę",
|
|
12
|
-
"help.down": "W dół",
|
|
13
14
|
"help.upN": "Przenieś podpowiedź {n} w górę",
|
|
14
15
|
"help.downN": "Przenieś podpowiedź {n} w dół",
|
|
15
16
|
"help.removeN": "Usuń podpowiedź {n}",
|
package/dist/messages/pl.json
CHANGED
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
"surface.blockRemoved": "Usunięto blok {n}",
|
|
153
153
|
"surface.addOption": "Dodaj odpowiedź",
|
|
154
154
|
"surface.addPrompt": "Dodaj polecenie",
|
|
155
|
+
"surface.newWord": "słowo",
|
|
155
156
|
"surface.chip.empty": "Brak odpowiedzi",
|
|
156
157
|
"surface.chip.more": "+{n}",
|
|
157
158
|
"surface.picture.alt": "Obrazek: {alt}",
|
|
@@ -245,7 +246,6 @@
|
|
|
245
246
|
"surface.picture.place": "Położenie i rozmiar: {position}, {width}",
|
|
246
247
|
"surface.picture.placeAuto": "Położenie i rozmiar: {position}",
|
|
247
248
|
"style.target.more": "{target}…",
|
|
248
|
-
"help.cost": "koszt {percent}%",
|
|
249
249
|
"help.when.correct": "Dobrze",
|
|
250
250
|
"help.when.incorrect": "Źle",
|
|
251
251
|
"help.when.partial": "Częściowo dobrze",
|
|
@@ -253,6 +253,9 @@
|
|
|
253
253
|
"help.costLabel": "Koszt podpowiedzi",
|
|
254
254
|
"help.whenLabel": "Dla wyniku",
|
|
255
255
|
"surface.helpRemove": "{kind, select, hint {Usuń podpowiedź} explanation {Usuń wyjaśnienie} other {Usuń informację zwrotną}}",
|
|
256
|
+
"surface.helpHints": "{n, plural, one {# podpowiedź} few {# podpowiedzi} many {# podpowiedzi} other {# podpowiedzi}}",
|
|
257
|
+
"surface.helpOpen": "Otwórz w karcie",
|
|
258
|
+
"surface.helpPlaceholder": "{kind, select, hint {Napisz podpowiedź...} explanation {Napisz wyjaśnienie...} other {Napisz informację zwrotną...}}",
|
|
256
259
|
"surface.pageCheck": "Sprawdź tę stronę",
|
|
257
260
|
"surface.pageCheckOn": "Strona {page} ma teraz własne sprawdzanie.",
|
|
258
261
|
"surface.pageCheckOff": "Strona {page} nie ma już własnego sprawdzania.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astl/editor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Editor-agnostic authoring kit: templates, ids, inspector, issues, insert menu and preview over an EditorAdapter. Bring any WYSIWYG editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrolabe",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@astl/core": "0.2.
|
|
52
|
-
"@astl/engine": "0.2.
|
|
53
|
-
"@astl/player": "0.2.
|
|
54
|
-
"@astl/tokens": "0.2.
|
|
51
|
+
"@astl/core": "0.2.2",
|
|
52
|
+
"@astl/engine": "0.2.2",
|
|
53
|
+
"@astl/player": "0.2.2",
|
|
54
|
+
"@astl/tokens": "0.2.2",
|
|
55
55
|
"lit": "3.3.3"
|
|
56
56
|
}
|
|
57
57
|
}
|