@khanacademy/perseus-core 0.0.0-PR2967-20251016231809 → 0.0.0-PR2969-20251024181755
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 +7 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/get-save-warnings-for-item.d.ts +11 -0
- package/dist/widgets/core-widget-registry.d.ts +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PerseusItem } from "../data-schema";
|
|
2
|
+
/**
|
|
3
|
+
* WORK IN PROGRESS: Get the save warnings (blocking issues) for a given PerseusItem.
|
|
4
|
+
*
|
|
5
|
+
* @param item - The PerseusItem that will be fully parsed and checked
|
|
6
|
+
* for blocking changes that should prevent the item from being
|
|
7
|
+
* saved/published.
|
|
8
|
+
* @returns An array of strings, each representing a warning that should prevent
|
|
9
|
+
* the item from being saved/published.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getSaveWarningsForItem(item: PerseusItem): Array<string>;
|
|
@@ -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": "0.0.0-
|
|
6
|
+
"version": "0.0.0-PR2969-20251024181755",
|
|
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": "
|
|
41
|
-
"@khanacademy/perseus-utils": "
|
|
42
|
-
"@khanacademy/pure-markdown": "
|
|
40
|
+
"@khanacademy/kas": "0.0.0-PR2969-20251024181755",
|
|
41
|
+
"@khanacademy/perseus-utils": "0.0.0-PR2969-20251024181755",
|
|
42
|
+
"@khanacademy/pure-markdown": "0.0.0-PR2969-20251024181755"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@khanacademy/wonder-stuff-core": "1.5.5",
|