@khanacademy/perseus-editor 46.1.2 → 46.1.4
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/components/alignment-select.d.ts +2 -2
- package/dist/components/util.d.ts +1 -1
- package/dist/components/widget-editor-container.d.ts +1 -2
- package/dist/components/widget-editor-settings.d.ts +2 -2
- package/dist/index.js +906 -922
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +2 -1
- package/dist/widgets/cs-program-editor/cs-program-editor.d.ts +0 -1
- package/dist/widgets/interaction-editor/line-editor.d.ts +0 -1
- package/package.json +7 -7
- package/dist/mixins/changeable.d.ts +0 -28
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { Alignment, PerseusWidget } from "@khanacademy/perseus-core";
|
|
2
|
+
import type { Alignment, PerseusWidget, SupportedAlignments } from "@khanacademy/perseus-core";
|
|
3
3
|
import type { StyleType } from "@khanacademy/wonder-blocks-core";
|
|
4
4
|
interface Props {
|
|
5
|
-
supportedAlignments:
|
|
5
|
+
supportedAlignments: SupportedAlignments;
|
|
6
6
|
widgetInfo: PerseusWidget;
|
|
7
7
|
isEditingDisabled: boolean;
|
|
8
8
|
onChange: (newAlignment: Alignment) => void;
|
|
@@ -10,4 +10,4 @@ import type { Alignment } from "@khanacademy/perseus-core";
|
|
|
10
10
|
* in the alignment select, they're only used as default alignments
|
|
11
11
|
* within the Exercise editor.
|
|
12
12
|
*/
|
|
13
|
-
export declare const alignmentInfoMap: Record<Exclude<Alignment, "
|
|
13
|
+
export declare const alignmentInfoMap: Record<Exclude<Alignment, "inline-block" | "inline">, string>;
|
|
@@ -11,12 +11,11 @@ interface Props {
|
|
|
11
11
|
}
|
|
12
12
|
type State = {
|
|
13
13
|
showWidget: boolean;
|
|
14
|
-
widgetInfo: PerseusWidget;
|
|
15
14
|
};
|
|
16
|
-
export declare function _upgradeWidgetInfo(widgetInfo: PerseusWidget): PerseusWidget;
|
|
17
15
|
declare class WidgetEditorContainer extends React.Component<Props, State> {
|
|
18
16
|
constructor(props: Props);
|
|
19
17
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
18
|
+
getWidgetInfo(): PerseusWidget;
|
|
20
19
|
_toggleWidget: (e: React.SyntheticEvent) => void;
|
|
21
20
|
_handleWidgetChange: (newOptions: PerseusWidget["options"]) => void;
|
|
22
21
|
_setStatic: (value: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "./widget-editor-settings.css";
|
|
3
|
-
import type { Alignment, PerseusWidget } from "@khanacademy/perseus-core";
|
|
3
|
+
import type { Alignment, PerseusWidget, SupportedAlignments } from "@khanacademy/perseus-core";
|
|
4
4
|
interface BestPracticesLink {
|
|
5
5
|
url: string;
|
|
6
6
|
label: string;
|
|
@@ -13,7 +13,7 @@ interface WidgetEditorSettingsProps {
|
|
|
13
13
|
supportsGradedToggle: boolean;
|
|
14
14
|
isGraded: boolean;
|
|
15
15
|
onGradedChange: (value: boolean) => unknown;
|
|
16
|
-
supportedAlignments:
|
|
16
|
+
supportedAlignments: SupportedAlignments;
|
|
17
17
|
widgetInfo: PerseusWidget;
|
|
18
18
|
onAlignmentChange: (newAlignment: Alignment) => unknown;
|
|
19
19
|
isEditingDisabled: boolean;
|