@khanacademy/perseus-core 40.0.1 → 40.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/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/widgets/core-widget-registry.d.ts +5 -0
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export declare const getSupportedAlignments: (type: string) => ReadonlyArray<Ali
|
|
|
30
30
|
* the exports of a widget's module.
|
|
31
31
|
*/
|
|
32
32
|
export declare const getDefaultAlignment: (type: string) => Alignment;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the widget should render inline with surrounding content.
|
|
35
|
+
* Uses the widget's default alignment when no alignment is given.
|
|
36
|
+
*/
|
|
37
|
+
export declare const isInlineWidget: (type: string, alignment?: Alignment) => boolean;
|
|
33
38
|
/**
|
|
34
39
|
* Returns the CSS class name corresponding to the specified widget alignment.
|
|
35
40
|
* Uses explicit mapping to make it easy to locate related CSS style definitions.
|
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": "40.0
|
|
6
|
+
"version": "40.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tiny-invariant": "1.3.1",
|
|
27
27
|
"@khanacademy/kas": "3.0.0",
|
|
28
|
-
"@khanacademy/
|
|
29
|
-
"@khanacademy/
|
|
28
|
+
"@khanacademy/perseus-utils": "3.0.0",
|
|
29
|
+
"@khanacademy/pure-markdown": "3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@khanacademy/wonder-stuff-core": "3.0.0",
|