@khanacademy/perseus 13.0.0 → 13.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 13.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`1d58b887`](https://github.com/Khan/perseus/commit/1d58b887179b129b5027e20484fde5169170f052)]:
12
+ - @khanacademy/math-input@15.0.1
13
+
3
14
  ## 13.0.0
4
15
 
5
16
  ### Major Changes
package/dist/es/index.js CHANGED
@@ -43947,6 +43947,7 @@ const DEFAULT_HEIGHT = 720;
43947
43947
  const KA_EMBED = "{host}/embed_video?slug={slug}" + "&internal_video_only=1";
43948
43948
  const IS_URL = /^https?:\/\//;
43949
43949
  const IS_KA_SITE = /(khanacademy\.org|localhost)/;
43950
+ const IS_VIMEO = /(vimeo\.com)/;
43950
43951
 
43951
43952
  // exports has no 'transform'
43952
43953
 
@@ -43991,6 +43992,16 @@ class Video extends React.Component {
43991
43992
  let url;
43992
43993
  if (IS_URL.test(location)) {
43993
43994
  url = location;
43995
+ if (IS_VIMEO.test(url)) {
43996
+ // If this is a vimeo video, we need to add the query string
43997
+ // parameter "dnt" so that analytics/tracking cookies aren't set.
43998
+ // https://help.vimeo.com/hc/en-us/articles/12426260232977-Player-parameters-overview
43999
+ if (url.indexOf("?") === -1) {
44000
+ url += "?dnt=1";
44001
+ } else {
44002
+ url += "&dnt=1";
44003
+ }
44004
+ }
43994
44005
  } else {
43995
44006
  url = KA_EMBED.replace("{slug}", location);
43996
44007
  let embedHostname = "https://www.khanacademy.org";
@@ -44071,7 +44082,7 @@ const init = function init(options) {
44071
44082
 
44072
44083
  // This file is processed by a Rollup plugin (replace) to inject the production
44073
44084
  const libName = "@khanacademy/perseus";
44074
- const libVersion = "13.0.0";
44085
+ const libVersion = "13.1.0";
44075
44086
  addLibraryVersionToPerseusDebug(libName, libVersion);
44076
44087
 
44077
44088
  const apiVersion = {