@khanacademy/perseus-core 36.1.0 → 37.0.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/data-schema.d.ts +0 -24
- package/dist/es/index.item-splitting.js +10 -10
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +17 -15
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.item-splitting.js +10 -10
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/categorizer-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/definition-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/dropdown-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/explanation-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/graded-group-set-widget.d.ts +0 -3
- package/dist/parse-perseus-json/perseus-parsers/graded-group-widget.d.ts +0 -6
- package/dist/parse-perseus-json/perseus-parsers/iframe-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/interaction-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/label-image-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/number-line-widget.d.ts +0 -1
- package/dist/parse-perseus-json/perseus-parsers/video-widget.d.ts +0 -1
- package/dist/utils/widget-prop-denylist.d.ts +5 -0
- package/dist/widgets/categorizer/categorizer-util.d.ts +0 -1
- package/dist/widgets/dropdown/dropdown-util.d.ts +0 -1
- package/dist/widgets/label-image/label-image-util.d.ts +0 -1
- package/dist/widgets/number-line/number-line-util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,6 @@ export declare const parseDefinitionWidget: import("../parser-types").Parser<imp
|
|
|
6
6
|
options: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
7
7
|
togglePrompt: string;
|
|
8
8
|
definition: string;
|
|
9
|
-
static: boolean;
|
|
10
9
|
}>;
|
|
11
10
|
key: number | null | undefined;
|
|
12
11
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -7,7 +7,6 @@ export declare const parseDropdownWidget: import("../parser-types").Parser<impor
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
ariaLabel: string | undefined;
|
|
9
9
|
visibleLabel: string | undefined;
|
|
10
|
-
static: boolean;
|
|
11
10
|
choices: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
12
11
|
content: string;
|
|
13
12
|
correct: boolean;
|
|
@@ -8,7 +8,6 @@ export declare const parseExplanationWidget: import("../parser-types").Parser<im
|
|
|
8
8
|
hidePrompt: string;
|
|
9
9
|
explanation: string;
|
|
10
10
|
widgets: import("../..").MakeWidgetMap<import("../..").PerseusWidgetTypes>;
|
|
11
|
-
static: boolean;
|
|
12
11
|
}>;
|
|
13
12
|
key: number | null | undefined;
|
|
14
13
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -6,12 +6,9 @@ export declare const parseGradedGroupSetWidget: import("../parser-types").Parser
|
|
|
6
6
|
options: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
7
7
|
gradedGroups: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
8
8
|
title: string;
|
|
9
|
-
hasHint: boolean | null | undefined;
|
|
10
9
|
hint: import("../..").PerseusRenderer | null | undefined;
|
|
11
10
|
content: string;
|
|
12
11
|
widgets: import("../..").MakeWidgetMap<import("../..").PerseusWidgetTypes>;
|
|
13
|
-
widgetEnabled: boolean | null | undefined;
|
|
14
|
-
immutableWidgets: boolean | null | undefined;
|
|
15
12
|
images: Record<string, import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
16
13
|
width: number;
|
|
17
14
|
height: number;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export declare const parseGradedGroupWidgetOptions: import("../parser-types").Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
2
2
|
title: string;
|
|
3
|
-
hasHint: boolean | null | undefined;
|
|
4
3
|
hint: import("../..").PerseusRenderer | null | undefined;
|
|
5
4
|
content: string;
|
|
6
5
|
widgets: import("../..").MakeWidgetMap<import("../..").PerseusWidgetTypes>;
|
|
7
|
-
widgetEnabled: boolean | null | undefined;
|
|
8
|
-
immutableWidgets: boolean | null | undefined;
|
|
9
6
|
images: Record<string, import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
10
7
|
width: number;
|
|
11
8
|
height: number;
|
|
@@ -18,12 +15,9 @@ export declare const parseGradedGroupWidget: import("../parser-types").Parser<im
|
|
|
18
15
|
alignment: "default" | "block" | "inline-block" | "inline" | "wrap-left" | "wrap-right" | "full-width" | undefined;
|
|
19
16
|
options: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
20
17
|
title: string;
|
|
21
|
-
hasHint: boolean | null | undefined;
|
|
22
18
|
hint: import("../..").PerseusRenderer | null | undefined;
|
|
23
19
|
content: string;
|
|
24
20
|
widgets: import("../..").MakeWidgetMap<import("../..").PerseusWidgetTypes>;
|
|
25
|
-
widgetEnabled: boolean | null | undefined;
|
|
26
|
-
immutableWidgets: boolean | null | undefined;
|
|
27
21
|
images: Record<string, import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
28
22
|
width: number;
|
|
29
23
|
height: number;
|
|
@@ -13,7 +13,6 @@ export declare const parseIframeWidget: import("../parser-types").Parser<import(
|
|
|
13
13
|
height: string | number;
|
|
14
14
|
allowFullScreen: boolean;
|
|
15
15
|
allowTopNavigation: boolean | undefined;
|
|
16
|
-
static: boolean;
|
|
17
16
|
}>;
|
|
18
17
|
key: number | null | undefined;
|
|
19
18
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -4,7 +4,6 @@ export declare const parseInteractionWidget: import("../parser-types").Parser<im
|
|
|
4
4
|
graded: boolean | undefined;
|
|
5
5
|
alignment: "default" | "block" | "inline-block" | "inline" | "wrap-left" | "wrap-right" | "full-width" | undefined;
|
|
6
6
|
options: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
7
|
-
static: boolean;
|
|
8
7
|
graph: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
9
8
|
editableSettings: ("graph" | "canvas")[] | undefined;
|
|
10
9
|
box: [number, number];
|
|
@@ -17,7 +17,6 @@ export declare const parseLabelImageWidget: import("../parser-types").Parser<imp
|
|
|
17
17
|
}>[];
|
|
18
18
|
hideChoicesFromInstructions: boolean;
|
|
19
19
|
multipleAnswers: boolean;
|
|
20
|
-
static: boolean;
|
|
21
20
|
}>;
|
|
22
21
|
key: number | null | undefined;
|
|
23
22
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -18,7 +18,6 @@ export declare const parseNumberLineWidget: import("../parser-types").Parser<imp
|
|
|
18
18
|
correctX: number | null;
|
|
19
19
|
initialX: number | null | undefined;
|
|
20
20
|
showTooltips: boolean | undefined;
|
|
21
|
-
static: boolean;
|
|
22
21
|
}>;
|
|
23
22
|
key: number | null | undefined;
|
|
24
23
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -5,7 +5,6 @@ export declare const parseVideoWidget: import("../parser-types").Parser<import("
|
|
|
5
5
|
alignment: "default" | "block" | "inline-block" | "inline" | "wrap-left" | "wrap-right" | "full-width" | undefined;
|
|
6
6
|
options: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
7
7
|
location: string;
|
|
8
|
-
static: boolean | undefined;
|
|
9
8
|
}>;
|
|
10
9
|
key: number | null | undefined;
|
|
11
10
|
version: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
@@ -7,7 +7,6 @@ export type CategorizerPublicWidgetOptions = {
|
|
|
7
7
|
items: PerseusCategorizerWidgetOptions["items"];
|
|
8
8
|
categories: PerseusCategorizerWidgetOptions["categories"];
|
|
9
9
|
randomizeItems: PerseusCategorizerWidgetOptions["randomizeItems"];
|
|
10
|
-
static: PerseusCategorizerWidgetOptions["static"];
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
12
|
* Given a PerseusCategorizerWidgetOptions object, return a new object with only
|
|
@@ -8,7 +8,6 @@ export type DropdownPublicWidgetOptions = {
|
|
|
8
8
|
content: string;
|
|
9
9
|
}>;
|
|
10
10
|
placeholder: PerseusDropdownWidgetOptions["placeholder"];
|
|
11
|
-
static: PerseusDropdownWidgetOptions["static"];
|
|
12
11
|
visibleLabel?: PerseusDropdownWidgetOptions["visibleLabel"];
|
|
13
12
|
ariaLabel?: PerseusDropdownWidgetOptions["ariaLabel"];
|
|
14
13
|
};
|
|
@@ -12,7 +12,6 @@ export type LabelImagePublicWidgetOptions = {
|
|
|
12
12
|
markers: ReadonlyArray<LabelImageMarkerPublicData>;
|
|
13
13
|
hideChoicesFromInstructions: PerseusLabelImageWidgetOptions["hideChoicesFromInstructions"];
|
|
14
14
|
multipleAnswers: PerseusLabelImageWidgetOptions["multipleAnswers"];
|
|
15
|
-
static: PerseusLabelImageWidgetOptions["static"];
|
|
16
15
|
};
|
|
17
16
|
export type LabelImageMarkerPublicData = Pick<PerseusLabelImageMarker, "x" | "y" | "label">;
|
|
18
17
|
export declare function getLabelImagePublicWidgetOptions(options: PerseusLabelImageWidgetOptions): LabelImagePublicWidgetOptions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PerseusNumberLineWidgetOptions } from "../../data-schema";
|
|
2
|
-
export type NumberLinePublicWidgetOptions = Pick<PerseusNumberLineWidgetOptions, "range" | "labelRange" | "labelStyle" | "labelTicks" | "isTickCtrl" | "isInequality" | "divisionRange" | "numDivisions" | "snapDivisions" | "tickStep" | "initialX" | "showTooltips"
|
|
2
|
+
export type NumberLinePublicWidgetOptions = Pick<PerseusNumberLineWidgetOptions, "range" | "labelRange" | "labelStyle" | "labelTicks" | "isTickCtrl" | "isInequality" | "divisionRange" | "numDivisions" | "snapDivisions" | "tickStep" | "initialX" | "showTooltips">;
|
|
3
3
|
export declare function getNumberLinePublicWidgetOptions(options: PerseusNumberLineWidgetOptions): NumberLinePublicWidgetOptions;
|