@khanacademy/perseus 13.0.0 → 13.2.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 +32 -0
- package/dist/es/index.css +0 -7
- package/dist/es/index.js +13 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -7
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/renderer.d.ts +2 -2
- package/dist/widgets/matcher.d.ts +1 -1
- package/package.json +35 -35
- package/src/__stories__/hints-renderer.stories.tsx +41 -44
- package/src/__tests__/__snapshots__/renderer.test.tsx.snap +9 -33
- package/src/__tests__/renderer-api.test.tsx +35 -52
- package/src/renderer.tsx +2 -2
- package/src/styles/khan-exercise.css +0 -2
- package/src/styles/perseus-renderer.less +0 -7
- package/src/widgets/__stories__/video.stories.tsx +9 -1
- package/src/widgets/__testdata__/video.testdata.ts +40 -0
- package/src/widgets/__tests__/__snapshots__/dropdown.test.ts.snap +6 -22
- package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt.test.ts.snap +3 -3
- package/src/widgets/__tests__/__snapshots__/graded-group-set.test.ts.snap +1 -1
- package/src/widgets/__tests__/__snapshots__/graded-group.test.ts.snap +1 -1
- package/src/widgets/__tests__/__snapshots__/radio.test.ts.snap +4 -4
- package/src/widgets/__tests__/matcher.test.tsx +1 -1
- package/src/widgets/__tests__/video.test.ts +17 -1
- package/src/widgets/matcher.tsx +1 -1
- package/src/widgets/radio/choice.tsx +1 -0
- package/src/widgets/video.tsx +11 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 13.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#797](https://github.com/Khan/perseus/pull/797) [`021f9462`](https://github.com/Khan/perseus/commit/021f946255f423de8df13f6872b0664f79408484) Thanks [@nixterrimus](https://github.com/nixterrimus)! - Change the rational color in radio widget
|
|
8
|
+
|
|
9
|
+
* [#811](https://github.com/Khan/perseus/pull/811) [`bca527ab`](https://github.com/Khan/perseus/commit/bca527abc4d8b29942efec12509f9cf8be401e75) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Bump all Wonder Blocks dependencies to latest
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#808](https://github.com/Khan/perseus/pull/808) [`8358da80`](https://github.com/Khan/perseus/commit/8358da8010dcb8976d8cfb542afa7e303ce4971a) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Removing unnecessary conflicting CSS for #problemarea.
|
|
14
|
+
|
|
15
|
+
* [#813](https://github.com/Khan/perseus/pull/813) [`691d29b4`](https://github.com/Khan/perseus/commit/691d29b4224a523a3dd8d53a7aab28c80118e7ac) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Removing unused CSS from #problemarea.
|
|
16
|
+
|
|
17
|
+
- [#812](https://github.com/Khan/perseus/pull/812) [`6d31e044`](https://github.com/Khan/perseus/commit/6d31e044d6f5b304e63602795e9bbd7ba443dac5) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Fix 'focus' parameter on Renderer's setInputValue function to be optional.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`57e0e18b`](https://github.com/Khan/perseus/commit/57e0e18bd3729cde2e35cfa4ec40b67a5700049c), [`57e0e18b`](https://github.com/Khan/perseus/commit/57e0e18bd3729cde2e35cfa4ec40b67a5700049c), [`bca527ab`](https://github.com/Khan/perseus/commit/bca527abc4d8b29942efec12509f9cf8be401e75)]:
|
|
20
|
+
- @khanacademy/simple-markdown@0.11.0
|
|
21
|
+
- @khanacademy/math-input@15.1.0
|
|
22
|
+
- @khanacademy/pure-markdown@0.2.11
|
|
23
|
+
|
|
24
|
+
## 13.1.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- [#795](https://github.com/Khan/perseus/pull/795) [`2adb82b2`](https://github.com/Khan/perseus/commit/2adb82b22ac17a31aef403b7562191cac06cc13b) Thanks [@ioanacrant](https://github.com/ioanacrant)! - Add "do not track" query parameter to vimeo links in the video widget to ensure tracking/analytics cookies don't get set.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [[`1d58b887`](https://github.com/Khan/perseus/commit/1d58b887179b129b5027e20484fde5169170f052)]:
|
|
33
|
+
- @khanacademy/math-input@15.0.1
|
|
34
|
+
|
|
3
35
|
## 13.0.0
|
|
4
36
|
|
|
5
37
|
### Major Changes
|
package/dist/es/index.css
CHANGED
|
@@ -130,8 +130,6 @@ div.definition {
|
|
|
130
130
|
|
|
131
131
|
#problemarea {
|
|
132
132
|
font-size: 14px;
|
|
133
|
-
width: 70%;
|
|
134
|
-
min-height: 378px;
|
|
135
133
|
position: relative;
|
|
136
134
|
float: left;
|
|
137
135
|
padding-bottom: 38px;
|
|
@@ -2366,11 +2364,6 @@ img.zoom-img {
|
|
|
2366
2364
|
.framework-perseus.perseus-mobile .perseus-input-right-align .keypad-input {
|
|
2367
2365
|
text-align: right;
|
|
2368
2366
|
}
|
|
2369
|
-
.framework-perseus #problemarea input,
|
|
2370
|
-
.framework-perseus #problemarea button {
|
|
2371
|
-
position: relative;
|
|
2372
|
-
z-index: 3;
|
|
2373
|
-
}
|
|
2374
2367
|
.framework-perseus div.paragraph {
|
|
2375
2368
|
font-family: "Lato", sans-serif;
|
|
2376
2369
|
font-weight: 400;
|
package/dist/es/index.js
CHANGED
|
@@ -22900,6 +22900,7 @@ const styles$r = StyleSheet.create({
|
|
|
22900
22900
|
padding: intermediateCheckboxPadding,
|
|
22901
22901
|
paddingTop: 0,
|
|
22902
22902
|
marginLeft: 54,
|
|
22903
|
+
color: Color.offBlack64,
|
|
22903
22904
|
[mediaQueries.smOrSmaller]: {
|
|
22904
22905
|
padding: intermediateCheckboxPaddingPhone,
|
|
22905
22906
|
paddingTop: 0
|
|
@@ -43947,6 +43948,7 @@ const DEFAULT_HEIGHT = 720;
|
|
|
43947
43948
|
const KA_EMBED = "{host}/embed_video?slug={slug}" + "&internal_video_only=1";
|
|
43948
43949
|
const IS_URL = /^https?:\/\//;
|
|
43949
43950
|
const IS_KA_SITE = /(khanacademy\.org|localhost)/;
|
|
43951
|
+
const IS_VIMEO = /(vimeo\.com)/;
|
|
43950
43952
|
|
|
43951
43953
|
// exports has no 'transform'
|
|
43952
43954
|
|
|
@@ -43991,6 +43993,16 @@ class Video extends React.Component {
|
|
|
43991
43993
|
let url;
|
|
43992
43994
|
if (IS_URL.test(location)) {
|
|
43993
43995
|
url = location;
|
|
43996
|
+
if (IS_VIMEO.test(url)) {
|
|
43997
|
+
// If this is a vimeo video, we need to add the query string
|
|
43998
|
+
// parameter "dnt" so that analytics/tracking cookies aren't set.
|
|
43999
|
+
// https://help.vimeo.com/hc/en-us/articles/12426260232977-Player-parameters-overview
|
|
44000
|
+
if (url.indexOf("?") === -1) {
|
|
44001
|
+
url += "?dnt=1";
|
|
44002
|
+
} else {
|
|
44003
|
+
url += "&dnt=1";
|
|
44004
|
+
}
|
|
44005
|
+
}
|
|
43994
44006
|
} else {
|
|
43995
44007
|
url = KA_EMBED.replace("{slug}", location);
|
|
43996
44008
|
let embedHostname = "https://www.khanacademy.org";
|
|
@@ -44071,7 +44083,7 @@ const init = function init(options) {
|
|
|
44071
44083
|
|
|
44072
44084
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44073
44085
|
const libName = "@khanacademy/perseus";
|
|
44074
|
-
const libVersion = "13.
|
|
44086
|
+
const libVersion = "13.2.0";
|
|
44075
44087
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44076
44088
|
|
|
44077
44089
|
const apiVersion = {
|