@khanacademy/perseus-core 0.0.0-PR3108-20251210232635 → 0.0.0-PR3108-20251211165934
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,3 +1,16 @@
|
|
|
1
|
-
import type { PerseusRadioWidgetOptions, RadioWidget } from "../../data-schema";
|
|
1
|
+
import type { PerseusItem, PerseusRadioChoice, PerseusRadioWidgetOptions, RadioWidget } from "../../data-schema";
|
|
2
2
|
export declare function generateRadioOptions(options?: Partial<PerseusRadioWidgetOptions>): PerseusRadioWidgetOptions;
|
|
3
3
|
export declare function generateRadioWidget(radioWidgetProperties?: Partial<Omit<RadioWidget, "type">>): RadioWidget;
|
|
4
|
+
export declare function generateRadioChoice(text: string, options?: Partial<PerseusRadioChoice>): PerseusRadioChoice;
|
|
5
|
+
/**
|
|
6
|
+
* A simple question (PerseusRenderer) with a single radio widget,
|
|
7
|
+
* in which the `content` is only "[[☃ radio 1]]" and the widget has
|
|
8
|
+
* no properties other than the options.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateSimpleRadioQuestion(options?: Partial<PerseusRadioWidgetOptions>): import("../..").PerseusRenderer;
|
|
11
|
+
/**
|
|
12
|
+
* A simple item (PerseusItem) with a single radio widget,
|
|
13
|
+
* in which the `content` is only "[[☃ radio 1]]" and the widget has
|
|
14
|
+
* no properties other than the options.
|
|
15
|
+
*/
|
|
16
|
+
export declare function generateSimpleRadioItem(options?: Partial<PerseusRadioWidgetOptions>): PerseusItem;
|