@khanacademy/perseus-editor 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "access": "public"
4
4
  },
5
5
  "name": "@khanacademy/perseus-editor",
6
- "version": "0.1.2",
6
+ "version": "0.1.3",
7
7
  "description": "Perseus editors",
8
8
  "module": "dist/es/index.js",
9
9
  "main": "dist/index.js",
@@ -12,7 +12,7 @@
12
12
  "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
13
13
  },
14
14
  "dependencies": {
15
- "@khanacademy/perseus": "^0.2.1"
15
+ "@khanacademy/perseus": "^0.2.2"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@khanacademy/wonder-blocks-i18n": "^1.2.3",
@@ -8,13 +8,13 @@
8
8
  import {StyleSheet, css} from "aphrodite";
9
9
  import * as React from "react";
10
10
 
11
+ import type {CSSProperties} from "aphrodite";
12
+
11
13
  // TODO(diedra): This is terrible! If we don't have a href for a link, it should
12
14
  // be a button instead. We just need to make sure we override the default browser
13
15
  // button styling (backgroundColor, border, and padding).
14
16
  const DEFAULT_HREF = "javascript:void(0)";
15
17
 
16
- type AphroditeStyle = any;
17
-
18
18
  type DefaultProps = {|
19
19
  element: string | React.AbstractComponent<any>,
20
20
  // Whether the link should appear in a 'highlighted' state. In
@@ -22,7 +22,7 @@ type DefaultProps = {|
22
22
  highlighted: boolean,
23
23
  href: string,
24
24
  // Pass through styles but also add our own to normalize
25
- style: AphroditeStyle | Array<AphroditeStyle>,
25
+ style: CSSProperties | Array<CSSProperties>,
26
26
  |};
27
27
 
28
28
  type LinkProps = {|
@@ -70,7 +70,7 @@ class Link extends React.Component<LinkProps> {
70
70
  static defaultProps: DefaultProps = {
71
71
  highlighted: false,
72
72
  href: DEFAULT_HREF,
73
- style: ([]: Array<AphroditeStyle>),
73
+ style: ([]: Array<CSSProperties>),
74
74
  element: "a",
75
75
  };
76
76