@astl/editor 0.2.3 → 0.3.1

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/authoring.d.ts +50 -14
  3. package/dist/authoring.d.ts.map +1 -1
  4. package/dist/authoring.js +211 -18
  5. package/dist/authoring.js.map +1 -1
  6. package/dist/elements/color-control.d.ts +4 -1
  7. package/dist/elements/color-control.d.ts.map +1 -1
  8. package/dist/elements/color-control.js +6 -2
  9. package/dist/elements/color-control.js.map +1 -1
  10. package/dist/elements/insert-menu.d.ts +8 -1
  11. package/dist/elements/insert-menu.d.ts.map +1 -1
  12. package/dist/elements/insert-menu.js +25 -3
  13. package/dist/elements/insert-menu.js.map +1 -1
  14. package/dist/elements/inspector.d.ts.map +1 -1
  15. package/dist/elements/inspector.js +68 -4
  16. package/dist/elements/inspector.js.map +1 -1
  17. package/dist/elements/issues.d.ts.map +1 -1
  18. package/dist/elements/issues.js +11 -3
  19. package/dist/elements/issues.js.map +1 -1
  20. package/dist/elements/picture-dialog.d.ts +1 -0
  21. package/dist/elements/picture-dialog.d.ts.map +1 -1
  22. package/dist/elements/picture-dialog.js +16 -3
  23. package/dist/elements/picture-dialog.js.map +1 -1
  24. package/dist/elements/preview.d.ts.map +1 -1
  25. package/dist/elements/preview.js +11 -2
  26. package/dist/elements/preview.js.map +1 -1
  27. package/dist/elements/style-popups.js +3 -3
  28. package/dist/elements/styles.d.ts +36 -1
  29. package/dist/elements/styles.d.ts.map +1 -1
  30. package/dist/elements/styles.js +97 -1
  31. package/dist/elements/styles.js.map +1 -1
  32. package/dist/elements/toolbar.d.ts.map +1 -1
  33. package/dist/elements/toolbar.js +40 -16
  34. package/dist/elements/toolbar.js.map +1 -1
  35. package/dist/index.d.ts +3 -3
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/inspect.d.ts +33 -3
  40. package/dist/inspect.d.ts.map +1 -1
  41. package/dist/inspect.js +2 -2
  42. package/dist/inspect.js.map +1 -1
  43. package/dist/messages/en.json +18 -0
  44. package/dist/messages/pl.json +18 -0
  45. package/package.json +5 -5
  46. package/src/authoring.ts +283 -30
  47. package/src/elements/color-control.ts +6 -2
  48. package/src/elements/insert-menu.ts +34 -3
  49. package/src/elements/inspector.ts +80 -5
  50. package/src/elements/issues.ts +11 -3
  51. package/src/elements/picture-dialog.ts +17 -3
  52. package/src/elements/preview.ts +11 -2
  53. package/src/elements/style-popups.ts +3 -3
  54. package/src/elements/styles.ts +111 -1
  55. package/src/elements/toolbar.ts +42 -16
  56. package/src/index.ts +4 -1
  57. package/src/inspect.ts +33 -3
  58. package/src/messages/en.json +18 -0
  59. package/src/messages/pl.json +18 -0
@@ -13,6 +13,8 @@
13
13
  "insert.explanation.description": "Why the answer is right, shown once it is checked",
14
14
  "insert.feedback": "Feedback",
15
15
  "insert.feedback.description": "A text by the verdict, shown once the answer is checked",
16
+ "insert.check": "Check button",
17
+ "insert.check.description": "One Check for the questions in the text above it",
16
18
  "insert.text": "Text",
17
19
  "insert.text.description": "A paragraph after this block",
18
20
  "insert.noMatch": "Nothing matches “{query}”.",
@@ -40,6 +42,7 @@
40
42
  "toolbar.search": "Search",
41
43
  "block.text": "Text",
42
44
  "block.gap": "Gap",
45
+ "block.check": "Check button",
43
46
  "issue.onPage": "{n} on page {page}",
44
47
  "picture.title": "Add a picture",
45
48
  "picture.editTitle": "Edit the picture",
@@ -117,6 +120,21 @@
117
120
  "inspector.uploaded": "Uploaded.",
118
121
  "inspector.uploadFailed": "The upload failed. Try again, or type its address.",
119
122
  "inspector.uploadBlocked": "The upload gave an address the URL policy does not allow.",
123
+ "check.labelField": "Button text",
124
+ "check.labelHelp": "Empty: “Check”.",
125
+ "check.targets": "Questions it checks",
126
+ "check.targetsHelp": "The questions on this page. Those ticked have no Check of their own.",
127
+ "check.noQuestions": "This page has no questions yet.",
128
+ "check.target": "{type} {n}",
129
+ "check.name": "Check button {n}",
130
+ "check.named": "“{label}”",
131
+ "check.checkedBy": "Checked by {check}",
132
+ "check.count": "{n, plural, one {# question} other {# questions}}",
133
+ "check.button": "Check",
134
+ "check.none": "No questions",
135
+ "check.auto": "automatic · {n, plural, one {# question} other {# questions}}",
136
+ "check.make": "Make it a button",
137
+ "check.makeHelp": "Where practice checks one question at a time, these questions share this Check. As a button you can pick them and set its text.",
120
138
  "issues.title": "Problems",
121
139
  "issues.errors": "{count, plural, one {# error} other {# errors}}",
122
140
  "issues.warnings": "{count, plural, one {# warning} other {# warnings}}",
@@ -13,6 +13,8 @@
13
13
  "insert.explanation.description": "Dlaczego odpowiedź jest dobra, widoczne po sprawdzeniu",
14
14
  "insert.feedback": "Informacja zwrotna",
15
15
  "insert.feedback.description": "Tekst zależny od wyniku, widoczny po sprawdzeniu",
16
+ "insert.check": "Przycisk Sprawdź",
17
+ "insert.check.description": "Jeden przycisk Sprawdź dla pytań z tekstu nad nim",
16
18
  "insert.text": "Tekst",
17
19
  "insert.text.description": "Akapit po tym bloku",
18
20
  "insert.noMatch": "Nic nie pasuje do „{query}”.",
@@ -40,6 +42,7 @@
40
42
  "toolbar.search": "Szukaj",
41
43
  "block.text": "Tekst",
42
44
  "block.gap": "Luka",
45
+ "block.check": "Przycisk Sprawdź",
43
46
  "issue.onPage": "{n} na stronie {page}",
44
47
  "picture.title": "Dodaj obrazek",
45
48
  "picture.editTitle": "Edytuj obrazek",
@@ -117,6 +120,21 @@
117
120
  "inspector.uploaded": "Wgrano.",
118
121
  "inspector.uploadFailed": "Nie udało się wgrać pliku. Spróbuj ponownie albo wpisz jego adres.",
119
122
  "inspector.uploadBlocked": "Wgrywanie zwróciło adres, na który nie pozwala polityka adresów.",
123
+ "check.labelField": "Tekst przycisku",
124
+ "check.labelHelp": "Puste: „Sprawdź”.",
125
+ "check.targets": "Pytania, które sprawdza",
126
+ "check.targetsHelp": "Pytania z tej strony. Zaznaczone nie mają własnego przycisku Sprawdź.",
127
+ "check.noQuestions": "Na tej stronie nie ma jeszcze pytań.",
128
+ "check.target": "{type} {n}",
129
+ "check.name": "przycisk Sprawdź {n}",
130
+ "check.named": "„{label}”",
131
+ "check.checkedBy": "Sprawdzane przez {check}",
132
+ "check.count": "{n, plural, one {# pytanie} few {# pytania} many {# pytań} other {# pytania}}",
133
+ "check.button": "Sprawdź",
134
+ "check.none": "Brak pytań",
135
+ "check.auto": "automatyczny · {n, plural, one {# pytanie} few {# pytania} many {# pytań} other {# pytania}}",
136
+ "check.make": "Zrób z niego przycisk",
137
+ "check.makeHelp": "Gdy ćwiczenie sprawdza po jednym pytaniu, te pytania mają wspólny przycisk Sprawdź. Jako przycisk możesz wybrać pytania i ustawić jego tekst.",
120
138
  "issues.title": "Problemy",
121
139
  "issues.errors": "{count, plural, one {# błąd} few {# błędy} many {# błędów} other {# błędu}}",
122
140
  "issues.warnings": "{count, plural, one {# ostrzeżenie} few {# ostrzeżenia} many {# ostrzeżeń} other {# ostrzeżenia}}",