@khanacademy/perseus 23.5.0 → 23.6.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/components/input-with-examples.d.ts +0 -4
- package/dist/es/index.css +0 -17
- package/dist/es/index.js +214 -327
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -17
- package/dist/index.js +214 -324
- package/dist/index.js.map +1 -1
- package/dist/perseus-api.d.ts +1 -0
- package/dist/server-item-renderer.d.ts +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/widgets/expression.d.ts +6 -0
- package/dist/widgets/interactive-graphs/graphs/sinusoid.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/use-draggable.d.ts +13 -0
- package/dist/widgets/interactive-graphs/{locked-ellipse.d.ts → locked-figures/locked-ellipse.d.ts} +1 -1
- package/dist/widgets/interactive-graphs/{locked-line.d.ts → locked-figures/locked-line.d.ts} +1 -1
- package/dist/widgets/interactive-graphs/{locked-point.d.ts → locked-figures/locked-point.d.ts} +1 -1
- package/dist/widgets/interactive-graphs/{locked-polygon.d.ts → locked-figures/locked-polygon.d.ts} +1 -1
- package/dist/widgets/interactive-graphs/{locked-vector.d.ts → locked-figures/locked-vector.d.ts} +1 -1
- package/dist/widgets/label-image.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/math-output.d.ts +0 -27
|
@@ -3,7 +3,6 @@ import { PerseusI18nContext } from "./i18n-context";
|
|
|
3
3
|
import type { LinterContextProps } from "@khanacademy/perseus-linter";
|
|
4
4
|
import type { StyleType } from "@khanacademy/wonder-blocks-core";
|
|
5
5
|
type Props = {
|
|
6
|
-
type: "math" | "text" | "tex";
|
|
7
6
|
value: string;
|
|
8
7
|
onChange: any;
|
|
9
8
|
className: string;
|
|
@@ -21,7 +20,6 @@ type Props = {
|
|
|
21
20
|
linterContext: LinterContextProps;
|
|
22
21
|
};
|
|
23
22
|
type DefaultProps = {
|
|
24
|
-
type: Props["type"];
|
|
25
23
|
shouldShowExamples: Props["shouldShowExamples"];
|
|
26
24
|
onFocus: Props["onFocus"];
|
|
27
25
|
onBlur: Props["onBlur"];
|
|
@@ -43,8 +41,6 @@ declare class InputWithExamples extends React.Component<Props, State> {
|
|
|
43
41
|
state: State;
|
|
44
42
|
_getUniqueId: () => string;
|
|
45
43
|
_getInputClassName: () => string;
|
|
46
|
-
_getPropsForInputType: () => any;
|
|
47
|
-
_getComponentForInputType: () => any;
|
|
48
44
|
_renderInput: () => any;
|
|
49
45
|
render(): React.ReactNode;
|
|
50
46
|
_handleFocus: () => void;
|
package/dist/es/index.css
CHANGED
|
@@ -2430,17 +2430,6 @@ img.zoom-img {
|
|
|
2430
2430
|
.framework-perseus .number-input.normal {
|
|
2431
2431
|
width: 80px;
|
|
2432
2432
|
}
|
|
2433
|
-
.framework-perseus .math-output {
|
|
2434
|
-
display: inline-block;
|
|
2435
|
-
min-width: 80px;
|
|
2436
|
-
min-height: 36px;
|
|
2437
|
-
border-radius: 5px;
|
|
2438
|
-
padding: 0;
|
|
2439
|
-
margin-top: 4px;
|
|
2440
|
-
margin-bottom: 4px;
|
|
2441
|
-
background: white;
|
|
2442
|
-
border: 1px solid #a4a4a4;
|
|
2443
|
-
}
|
|
2444
2433
|
.framework-perseus .graph-settings .graph-settings-axis-label {
|
|
2445
2434
|
border: 1px solid #ccc;
|
|
2446
2435
|
border-radius: 5px;
|
|
@@ -2943,12 +2932,6 @@ body.mobile .perseus-matrix .matrix-row {
|
|
|
2943
2932
|
body.mobile .perseus-matrix .matrix-input-field {
|
|
2944
2933
|
display: table-cell;
|
|
2945
2934
|
}
|
|
2946
|
-
body.mobile .perseus-matrix .math-output {
|
|
2947
|
-
margin: 4px 4px 2px 4px;
|
|
2948
|
-
max-height: 36px;
|
|
2949
|
-
max-width: 80px;
|
|
2950
|
-
overflow: hidden;
|
|
2951
|
-
}
|
|
2952
2935
|
.perseus-matrix-editor .perseus-single-editor {
|
|
2953
2936
|
width: 338px;
|
|
2954
2937
|
}
|