@khanacademy/perseus-core 39.2.0 → 39.2.2

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.
@@ -1,5 +1,13 @@
1
1
  import type { Parser } from "../parser-types";
2
- export declare function parseWidget<Type extends string, Options extends object>(parseType: Parser<Type>, parseOptions: Parser<Options>): Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
2
+ type WidgetParserOptions = {
3
+ /**
4
+ * Whether `static` is meaningful for this widget. Defaults to `true`; pass
5
+ * `false` for presentational widgets so that `static` parses to
6
+ * `undefined`. See `parseUnsupportedStatic`.
7
+ */
8
+ supportsStatic?: boolean;
9
+ };
10
+ export declare function parseWidget<Type extends string, Options extends object>(parseType: Parser<Type>, parseOptions: Parser<Options>, { supportsStatic }?: WidgetParserOptions): Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
3
11
  type: Type;
4
12
  static: boolean | undefined;
5
13
  graded: boolean | undefined;
@@ -14,7 +22,7 @@ export declare function parseWidget<Type extends string, Options extends object>
14
22
  export declare function parseWidgetWithVersion<Type extends string, Options extends object>(parseVersion: Parser<{
15
23
  major: number;
16
24
  minor: number;
17
- } | undefined>, parseType: Parser<Type>, parseOptions: Parser<Options>): Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
25
+ } | undefined>, parseType: Parser<Type>, parseOptions: Parser<Options>, { supportsStatic }?: WidgetParserOptions): Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
18
26
  type: Type;
19
27
  static: boolean | undefined;
20
28
  graded: boolean | undefined;
@@ -26,3 +34,4 @@ export declare function parseWidgetWithVersion<Type extends string, Options exte
26
34
  minor: number;
27
35
  } | undefined;
28
36
  }>>;
37
+ export {};
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": "39.2.0",
6
+ "version": "39.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },