@khanacademy/perseus 12.0.0 → 12.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 +26 -0
- package/dist/es/index.css +2 -2
- package/dist/es/index.js +9 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/__tests__/item-renderer.test.tsx +1 -19
- package/src/styles/widgets/image.less +2 -6
- package/src/widgets/__stories__/image.stories.tsx +1 -0
- package/src/widgets/__tests__/__snapshots__/group.test.tsx.snap +1 -0
- package/src/widgets/__tests__/__snapshots__/image.test.ts.snap +2 -0
- package/src/widgets/image.tsx +12 -2
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 12.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6dbc58c6: Fix image centering for widget
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- c4ae088f: Upgrades MathQuill to fix Android keyboard error
|
|
12
|
+
- Updated dependencies [c4ae088f]
|
|
13
|
+
- Updated dependencies [aea0387f]
|
|
14
|
+
- @khanacademy/math-input@14.2.0
|
|
15
|
+
|
|
16
|
+
## 12.0.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [22a9c408]
|
|
21
|
+
- @khanacademy/perseus-core@1.1.2
|
|
22
|
+
- @khanacademy/kas@0.3.3
|
|
23
|
+
- @khanacademy/kmath@0.1.4
|
|
24
|
+
- @khanacademy/math-input@14.1.1
|
|
25
|
+
- @khanacademy/perseus-linter@0.3.6
|
|
26
|
+
- @khanacademy/pure-markdown@0.2.8
|
|
27
|
+
- @khanacademy/simple-markdown@0.10.2
|
|
28
|
+
|
|
3
29
|
## 12.0.0
|
|
4
30
|
|
|
5
31
|
### Major Changes
|
package/dist/es/index.css
CHANGED
|
@@ -2793,7 +2793,8 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
|
|
|
2793
2793
|
margin-left: -20px;
|
|
2794
2794
|
}
|
|
2795
2795
|
.perseus-image-widget {
|
|
2796
|
-
margin:
|
|
2796
|
+
margin-left: auto;
|
|
2797
|
+
margin-right: auto;
|
|
2797
2798
|
}
|
|
2798
2799
|
.perseus-image-widget .perseus-image-title {
|
|
2799
2800
|
text-align: center;
|
|
@@ -2802,7 +2803,6 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
|
|
|
2802
2803
|
color: rgba(33, 36, 44, 0.7);
|
|
2803
2804
|
padding-left: 16px;
|
|
2804
2805
|
position: relative;
|
|
2805
|
-
top: -12px;
|
|
2806
2806
|
}
|
|
2807
2807
|
.perseus-image-widget .perseus-image-caption::before {
|
|
2808
2808
|
content: "";
|
package/dist/es/index.js
CHANGED
|
@@ -26579,7 +26579,10 @@ class ImageWidget extends React.Component {
|
|
|
26579
26579
|
})));
|
|
26580
26580
|
}
|
|
26581
26581
|
return /*#__PURE__*/React.createElement("figure", {
|
|
26582
|
-
className: "perseus-image-widget"
|
|
26582
|
+
className: "perseus-image-widget",
|
|
26583
|
+
style: {
|
|
26584
|
+
maxWidth: backgroundImage.width
|
|
26585
|
+
}
|
|
26583
26586
|
}, image, alt, titleAndCaption);
|
|
26584
26587
|
}
|
|
26585
26588
|
let title;
|
|
@@ -26606,7 +26609,10 @@ class ImageWidget extends React.Component {
|
|
|
26606
26609
|
}));
|
|
26607
26610
|
}
|
|
26608
26611
|
return /*#__PURE__*/React.createElement("figure", {
|
|
26609
|
-
className: "perseus-image-widget"
|
|
26612
|
+
className: "perseus-image-widget",
|
|
26613
|
+
style: {
|
|
26614
|
+
maxWidth: backgroundImage.width
|
|
26615
|
+
}
|
|
26610
26616
|
}, title, image, alt, caption);
|
|
26611
26617
|
}
|
|
26612
26618
|
static validate(userInput, rubric) {
|
|
@@ -43742,7 +43748,7 @@ const init = function init(options) {
|
|
|
43742
43748
|
|
|
43743
43749
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
43744
43750
|
const libName = "@khanacademy/perseus";
|
|
43745
|
-
const libVersion = "12.
|
|
43751
|
+
const libVersion = "12.1.0";
|
|
43746
43752
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
43747
43753
|
|
|
43748
43754
|
const apiVersion = {
|