@khanacademy/perseus-core 0.0.0-PR3050-20251119185833 → 0.0.0-PR3057-20251120233300

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Take the provided URL and make sure it can be parsed, it's of the
3
+ * expected origin, and has the specified locale.
4
+ *
5
+ * If it can't be parsed or if it's not of the expected origin, return null.
6
+ * Setting URL to null will display an error message in the iframe
7
+ *
8
+ * @param urlString - The URL to make safe.
9
+ * @param locale - The locale to use for the URL.
10
+ * @param expectedOrigin - The expected origin of the URL.
11
+ * @returns The safe URL, or null if the URL is not safe.
12
+ */
13
+ export declare const makeSafeUrl: (urlString: string, locale: string, expectedOrigin: string) => URL | null;
@@ -35,11 +35,7 @@ export declare const getDefaultAlignment: (type: string) => Alignment;
35
35
  * Returns the CSS class name corresponding to the specified widget alignment.
36
36
  * Uses explicit mapping to make it easy to locate related CSS style definitions.
37
37
  */
38
- export declare const getAlignmentClassName: ({ alignment, isMobile, type, }: {
39
- alignment: Alignment;
40
- isMobile: boolean;
41
- type: string;
42
- }) => string;
38
+ export declare const getAlignmentClassName: (type: string, alignment: Alignment) => string;
43
39
  /**
44
40
  * We use a function here rather than registering widgets
45
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-PR3050-20251119185833",
6
+ "version": "0.0.0-PR3057-20251120233300",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },