@khanacademy/perseus-core 20.0.0 → 20.1.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/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +4 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/widgets/core-widget-registry.d.ts +5 -0
- package/package.json +4 -4
|
@@ -31,6 +31,11 @@ export declare const getSupportedAlignments: (type: string) => ReadonlyArray<Ali
|
|
|
31
31
|
* the exports of a widget's module.
|
|
32
32
|
*/
|
|
33
33
|
export declare const getDefaultAlignment: (type: string) => Alignment;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the CSS class name corresponding to the specified widget alignment.
|
|
36
|
+
* Uses explicit mapping to make it easy to locate related CSS style definitions.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getAlignmentClassName: (type: string, alignment: Alignment) => string;
|
|
34
39
|
/**
|
|
35
40
|
* We use a function here rather than registering widgets
|
|
36
41
|
* at the top-level of the file to avoid circular dependencies.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared Perseus infrastructure",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "20.
|
|
6
|
+
"version": "20.1.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"tiny-invariant": "1.3.1",
|
|
40
|
-
"@khanacademy/kas": "2.1.
|
|
41
|
-
"@khanacademy/perseus-utils": "2.1.
|
|
42
|
-
"@khanacademy/pure-markdown": "2.2.
|
|
40
|
+
"@khanacademy/kas": "2.1.3",
|
|
41
|
+
"@khanacademy/perseus-utils": "2.1.1",
|
|
42
|
+
"@khanacademy/pure-markdown": "2.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@khanacademy/wonder-stuff-core": "1.5.5",
|