@khanacademy/perseus 0.2.5 → 0.2.8
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 +23 -0
- package/README.md +5 -0
- package/dist/es/index.js +3094 -5319
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +13596 -15827
- package/dist/index.js.map +1 -1
- package/package.json +16 -12
- package/src/__tests__/jipt-paragraphs_test.js +34 -0
- package/src/__tests__/perseus-markdown_test.jsx +4 -4
- package/src/article-renderer.jsx +3 -4
- package/src/components/input-with-examples.jsx +3 -4
- package/src/components/sortable.jsx +4 -5
- package/src/hint-renderer.jsx +2 -3
- package/src/hints-renderer.jsx +2 -3
- package/src/item-renderer.jsx +2 -3
- package/src/jipt-paragraphs.js +16 -8
- package/src/not-gorgon.js +1 -2
- package/src/perseus-markdown.jsx +1 -2
- package/src/renderer.jsx +2 -3
- package/src/widget-container.jsx +1 -1
- package/src/widgets/categorizer.jsx +1 -1
- package/src/widgets/dropdown.jsx +29 -31
- package/src/widgets/explanation.jsx +1 -1
- package/src/widgets/expression.jsx +1 -1
- package/src/widgets/graded-group-set.jsx +1 -1
- package/src/widgets/graded-group.jsx +1 -1
- package/src/widgets/group.jsx +1 -1
- package/src/widgets/image.jsx +1 -1
- package/src/widgets/input-number.jsx +1 -1
- package/src/widgets/matcher.jsx +4 -1
- package/src/widgets/matrix.jsx +1 -1
- package/src/widgets/numeric-input.jsx +1 -1
- package/src/widgets/orderer.jsx +4 -1
- package/src/widgets/passage-ref-target.jsx +4 -1
- package/src/widgets/passage.jsx +1 -1
- package/src/widgets/radio/widget.jsx +1 -1
- package/src/widgets/sequence.jsx +4 -1
- package/src/widgets/sorter.jsx +4 -1
- package/src/widgets/table.jsx +4 -1
- package/src/README.md +0 -35
- package/src/__tests__/__snapshots__/pure-markdown_test.js.snap +0 -113
- package/src/__tests__/pure-markdown_test.js +0 -552
- package/src/gorgon/README +0 -40
- package/src/gorgon/__tests__/matcher_test.js +0 -497
- package/src/gorgon/__tests__/rule_test.js +0 -101
- package/src/gorgon/__tests__/rules_test.js +0 -487
- package/src/gorgon/__tests__/selector-parser_test.js +0 -52
- package/src/gorgon/__tests__/tree-transformer_test.js +0 -446
- package/src/gorgon/gorgon.js +0 -290
- package/src/gorgon/proptypes.js +0 -29
- package/src/gorgon/rule.js +0 -413
- package/src/gorgon/rules/absolute-url.js +0 -24
- package/src/gorgon/rules/all-rules.js +0 -72
- package/src/gorgon/rules/blockquoted-math.js +0 -10
- package/src/gorgon/rules/blockquoted-widget.js +0 -10
- package/src/gorgon/rules/double-spacing-after-terminal.js +0 -12
- package/src/gorgon/rules/extra-content-spacing.js +0 -12
- package/src/gorgon/rules/heading-level-1.js +0 -14
- package/src/gorgon/rules/heading-level-skip.js +0 -20
- package/src/gorgon/rules/heading-sentence-case.js +0 -11
- package/src/gorgon/rules/heading-title-case.js +0 -63
- package/src/gorgon/rules/image-alt-text.js +0 -21
- package/src/gorgon/rules/image-in-table.js +0 -10
- package/src/gorgon/rules/image-spaces-around-urls.js +0 -35
- package/src/gorgon/rules/image-widget.js +0 -50
- package/src/gorgon/rules/link-click-here.js +0 -11
- package/src/gorgon/rules/lint-utils.js +0 -48
- package/src/gorgon/rules/long-paragraph.js +0 -14
- package/src/gorgon/rules/math-adjacent.js +0 -10
- package/src/gorgon/rules/math-align-extra-break.js +0 -11
- package/src/gorgon/rules/math-align-linebreaks.js +0 -43
- package/src/gorgon/rules/math-empty.js +0 -10
- package/src/gorgon/rules/math-font-size.js +0 -12
- package/src/gorgon/rules/math-frac.js +0 -10
- package/src/gorgon/rules/math-nested.js +0 -11
- package/src/gorgon/rules/math-starts-with-space.js +0 -12
- package/src/gorgon/rules/math-text-empty.js +0 -10
- package/src/gorgon/rules/math-without-dollars.js +0 -14
- package/src/gorgon/rules/nested-lists.js +0 -11
- package/src/gorgon/rules/profanity.js +0 -10
- package/src/gorgon/rules/table-missing-cells.js +0 -20
- package/src/gorgon/rules/unbalanced-code-delimiters.js +0 -14
- package/src/gorgon/rules/unescaped-dollar.js +0 -10
- package/src/gorgon/rules/widget-in-table.js +0 -10
- package/src/gorgon/selector.js +0 -506
- package/src/gorgon/tree-transformer.js +0 -588
- package/src/pure-markdown.js +0 -347
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 0.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a4f10ace: Move Gorgon, PerseusError, PureMarkdown into their own packages
|
|
8
|
+
- Updated dependencies [a4f10ace]
|
|
9
|
+
- @khanacademy/perseus-linter@0.1.0
|
|
10
|
+
- @khanacademy/pure-markdown@0.1.0
|
|
11
|
+
|
|
12
|
+
## 0.2.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 3921a385: Fix bug where JIPT integration parsing rules returned incorrect type
|
|
17
|
+
- Updated dependencies [3921a385]
|
|
18
|
+
- @khanacademy/simple-markdown@0.8.3
|
|
19
|
+
|
|
20
|
+
## 0.2.6
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 5d67bb03: Add missing deps to peer/dev deps in package.json files
|
|
25
|
+
|
|
3
26
|
## 0.2.5
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# @khanacademy/perseus
|
|
2
|
+
|
|
3
|
+
Perseus is the set of components that we use at Khan Academy to power our Exercises and Articles.
|
|
4
|
+
|
|
5
|
+
The [perseus monorepo](https://www.github.com/Khan/perseus) is home to several packages, and this is the main one! Import this to render perseus items. Currently, UI that's outside of a perseus item (check answer button, anything at the higher-than-assessment-item level) is left as an exercise for the client.
|