@khanacademy/perseus 28.0.0 → 28.1.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/es/index.js +21 -23
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export type { ILogger, LogErrorOptions } from "./logging/log";
|
|
|
87
87
|
export type { ServerItemRenderer as ServerItemRendererComponent } from "./server-item-renderer";
|
|
88
88
|
export type { Alignment, APIOptions, APIOptionsWithDefaults, ChangeHandler, DeviceType, DomInsertCheckFn, EditorMode, FocusPath, ImageDict, ImageUploader, JiptLabelStore, JiptRenderer, PerseusDependencies, PerseusScore, Version, VideoData, VideoKind, WidgetDict, WidgetExports, } from "./types";
|
|
89
89
|
export type { ParsedValue } from "./util";
|
|
90
|
-
export type { Hint, LockedFigure, LockedFigureColor, LockedFigureFillType, LockedFigureType, LockedPointType, LockedLineType, LockedVectorType, LockedEllipseType, LockedPolygonType, LockedFunctionType, PerseusGraphType, PerseusAnswerArea, PerseusExpressionWidgetOptions, Range, Size, CollinearTuple, MathFormat, InputNumberWidget, // TODO(jeremy): remove?
|
|
90
|
+
export type { Hint, LegacyButtonSets, LockedFigure, LockedFigureColor, LockedFigureFillType, LockedFigureType, LockedPointType, LockedLineType, LockedVectorType, LockedEllipseType, LockedPolygonType, LockedFunctionType, PerseusGraphType, PerseusAnswerArea, PerseusExpressionWidgetOptions, Range, Size, CollinearTuple, MathFormat, InputNumberWidget, // TODO(jeremy): remove?
|
|
91
91
|
PerseusImageBackground, PerseusInputNumberWidgetOptions, PerseusInteractiveGraphWidgetOptions, PerseusItem, PerseusPlotterWidgetOptions, PerseusPythonProgramWidgetOptions, PerseusRadioWidgetOptions, PerseusExampleWidgetOptions, PerseusExampleGraphieWidgetOptions, PerseusSimpleMarkdownTesterWidgetOptions, PerseusRenderer, PerseusWidget, PerseusWidgetsMap, } from "./perseus-types";
|
|
92
92
|
export type { Coord } from "./interactive2/types";
|
|
93
93
|
export type { MarkerType } from "./widgets/label-image/types";
|
package/dist/index.js
CHANGED
|
@@ -772,9 +772,11 @@ const styles$D = aphrodite.StyleSheet.create({
|
|
|
772
772
|
borderRadius: 1
|
|
773
773
|
},
|
|
774
774
|
iconInactive: {
|
|
775
|
+
border: "2px solid transparent",
|
|
775
776
|
backgroundColor: wonderBlocksTokens.color.offBlack8
|
|
776
777
|
},
|
|
777
778
|
iconActive: {
|
|
779
|
+
border: `2px solid ${wonderBlocksTokens.color.white}`,
|
|
778
780
|
backgroundColor: wonderBlocksTokens.color.offBlack64
|
|
779
781
|
},
|
|
780
782
|
outerWrapper: {
|
|
@@ -21265,28 +21267,24 @@ class TextInput extends React__namespace.Component {
|
|
|
21265
21267
|
style
|
|
21266
21268
|
} = this.props;
|
|
21267
21269
|
const formattedValue = value === null ? "" : value.toString();
|
|
21268
|
-
return (
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
|
|
21272
|
-
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
autoCapitalize: "off",
|
|
21287
|
-
autoComplete: "off"
|
|
21288
|
-
})
|
|
21289
|
-
);
|
|
21270
|
+
return /*#__PURE__*/React__namespace.createElement(wonderBlocksForm.TextField, {
|
|
21271
|
+
style: style,
|
|
21272
|
+
disabled: disabled,
|
|
21273
|
+
id: this.id,
|
|
21274
|
+
value: formattedValue,
|
|
21275
|
+
type: "text",
|
|
21276
|
+
"aria-label": labelText,
|
|
21277
|
+
onChange: value => this.props.onChange(value),
|
|
21278
|
+
placeholder: placeholder,
|
|
21279
|
+
onFocus: onFocus,
|
|
21280
|
+
onBlur: onBlur,
|
|
21281
|
+
onKeyDown: onKeyDown
|
|
21282
|
+
// @ts-expect-error - TS2322 - Type '{ style: StyleType; disabled: boolean | undefined; id: string; value: string; type: "text"; "aria-label": string | undefined; onChange: (value: string) => void; placeholder: string | undefined; ... 5 more ...; autoComplete: string; }' is not assignable to type 'IntrinsicAttributes & ExportProps & RefAttributes<HTMLInputElement>'.
|
|
21283
|
+
,
|
|
21284
|
+
autoCorrect: "off",
|
|
21285
|
+
autoCapitalize: "off",
|
|
21286
|
+
autoComplete: "off"
|
|
21287
|
+
});
|
|
21290
21288
|
}
|
|
21291
21289
|
focus = () => {
|
|
21292
21290
|
// @ts-expect-error - TS2531 - Object is possibly 'null'. | TS2339 - Property 'focus' does not exist on type 'Element | Text'.
|
|
@@ -44605,7 +44603,7 @@ const init = function (options) {
|
|
|
44605
44603
|
|
|
44606
44604
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
44607
44605
|
const libName = "@khanacademy/perseus";
|
|
44608
|
-
const libVersion = "28.
|
|
44606
|
+
const libVersion = "28.1.0";
|
|
44609
44607
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
44610
44608
|
|
|
44611
44609
|
const apiVersion = {
|