@khanacademy/perseus 0.0.1

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/.babelrc.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * HACK(kevinb): Due to https://github.com/facebook/jest/issues/11741,
3
+ * we need to have this file, or updating inline snapshots can fail rather
4
+ * cryptically.
5
+ *
6
+ * We should remove this when jest is fixed.
7
+ */
8
+ module.exports = require("../../build-settings/babel.config.js");
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @khanacademy/perseus
2
+
3
+ TODO(FEI-4467): write README for perseus
@@ -0,0 +1,2 @@
1
+ import*as o from"@khanacademy/wonder-blocks-i18n";var a=()=>o._("foo");export{a as foo};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/index.js"],"sourcesContent":["// @flow\nimport * as i18n from \"@khanacademy/wonder-blocks-i18n\";\n\nexport const foo = (): string => i18n._(\"foo\");\n"],"names":["foo","i18n","_"],"mappings":"kDAGO,IAAMA,EAAM,IAAcC,EAAKC,EAAE"}
@@ -0,0 +1,2 @@
1
+ // @flow
2
+ export * from "../src/index.js";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("@khanacademy/wonder-blocks-i18n"));exports.foo=()=>r._("foo");
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ // @flow
2
+ export * from "../src/index.js";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["// @flow\nimport * as i18n from \"@khanacademy/wonder-blocks-i18n\";\n\nexport const foo = (): string => i18n._(\"foo\");\n"],"names":["i18n","_"],"mappings":"maAGmB,IAAcA,EAAKC,EAAE"}
@@ -0,0 +1,54 @@
1
+ // @noflow
2
+ /**
3
+ * WARNING: This is an autogenerated file. Do not edit by hand.
4
+ * To regenerate, run: yarn extract-strings.
5
+ */
6
+
7
+ module.exports = [
8
+ i18n._("Cosine", {}),
9
+ i18n._("Cube", {}),
10
+ i18n._("Cube root", {}),
11
+ i18n._("Custom exponent", {}),
12
+ i18n._("Decimal", {}),
13
+ i18n._("Delete", {}),
14
+ i18n._("Dismiss", {}),
15
+ i18n._("Divide", {}),
16
+ i18n._("Down arrow", {}),
17
+ i18n._("Equals sign", {}),
18
+ i18n._("foo", {}),
19
+ i18n._("Fraction, excluding the current expression", {}),
20
+ i18n._("Fraction, with current expression in numerator", {}),
21
+ i18n._("Greater than or equal to sign", {}),
22
+ i18n._("Greater than sign", {}),
23
+ i18n._("Left arrow", {}),
24
+ i18n._("Left parenthesis", {}),
25
+ i18n._("Less than or equal to sign", {}),
26
+ i18n._("Less than sign", {}),
27
+ i18n._("Logarithm with base 10", {}),
28
+ i18n._("Logarithm with custom base", {}),
29
+ i18n._("Math input box", {}),
30
+ i18n._("Minus", {}),
31
+ i18n._("Multiply", {}),
32
+ i18n._("Natural logarithm", {}),
33
+ i18n._("Navigate right into the numerator of a fraction", {}),
34
+ i18n._("Navigate right out of a base", {}),
35
+ i18n._("Navigate right out of a set of parentheses", {}),
36
+ i18n._("Navigate right out of an exponent", {}),
37
+ i18n._("Navigate right out of the denominator of a fraction", {}),
38
+ i18n._("Navigate right out of the numerator and into the denominator", {}),
39
+ i18n._("Negative", {}),
40
+ i18n._("Not-equals sign", {}),
41
+ i18n._("Percent", {}),
42
+ i18n._("Pi", {}),
43
+ i18n._("Plus", {}),
44
+ i18n._("Radical with custom root", {}),
45
+ i18n._("Right arrow", {}),
46
+ i18n._("Right parenthesis", {}),
47
+ i18n._("Sine", {}),
48
+ i18n._("Square", {}),
49
+ i18n._("Square root", {}),
50
+ i18n._("Tangent", {}),
51
+ i18n._("Tap with one or two fingers to open keyboard", {}),
52
+ i18n._("Theta", {}),
53
+ i18n._("Up arrow", {}),
54
+ ];
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "publishConfig": {
3
+ "access": "public"
4
+ },
5
+ "name": "@khanacademy/perseus",
6
+ "version": "0.0.1",
7
+ "description": "Core Perseus API (includes renderers and widgets)",
8
+ "module": "dist/es/index.js",
9
+ "main": "dist/index.js",
10
+ "source": "src/index.js",
11
+ "scripts": {
12
+ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
13
+ },
14
+ "dependencies": {
15
+ "@khanacademy/math-input": "^0.4.1"
16
+ },
17
+ "devDependencies": {
18
+ "@khanacademy/wonder-blocks-i18n": "^1.2.3",
19
+ "eslint-import-resolver-alias": "^1.1.2",
20
+ "eslint-plugin-import": "^2.26.0",
21
+ "perseus-build-settings": "^0.0.1",
22
+ "react": "16.14.0",
23
+ "react-dom": "16.14.0"
24
+ },
25
+ "peerDependencies": {
26
+ "@khanacademy/wonder-blocks-i18n": "^1.2.3",
27
+ "react": "16.14.0",
28
+ "react-dom": "16.14.0"
29
+ },
30
+ "author": "",
31
+ "license": "MIT"
32
+ }
@@ -0,0 +1,14 @@
1
+ // @flow
2
+ import {foo} from "../index.js";
3
+
4
+ describe("#foo", () => {
5
+ it("should return foo", () => {
6
+ // Arrange
7
+
8
+ // Act
9
+ const result = foo();
10
+
11
+ // Assert
12
+ expect(result).toEqual("foo");
13
+ });
14
+ });
package/src/index.js ADDED
@@ -0,0 +1,4 @@
1
+ // @flow
2
+ import * as i18n from "@khanacademy/wonder-blocks-i18n";
3
+
4
+ export const foo = (): string => i18n._("foo");