@khanacademy/perseus 90.0.0 → 90.0.1

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as ButtonGroup, G as Graphie, H as HUD, I as Icon, a as InlineIcon, M as MathInput, b as MultiButtonGroup, N as NumberInput, R as RangeInput, S as SvgImage, T as TextInput, r as registerWidgets, c as basicWidgets, e as extraWidgets, d as replaceDeprecatedWidgets, P as PerseusI18nContext, A as ApiOptions, C as ClassNames, j as jsxRuntimeExports, U as UserInputManager, f as Renderer, D as DependenciesContext, g as Util, h as getDependencies, J as JiptParagraphs, i as hintPaddingInlineStart, k as hintBorderWidth, m as mediaQueries, s as sharedStyles, l as context$1, n as getWidgetTypeByWidgetId, o as getWidgetExport, p as PerseusMarkdown, t as typeToButton, q as getEquationString, u as defaultPlotProps, v as chooseType, w as DEFAULT_GRAPHER_PROPS } from './chunk-register-all-widgets-for-testing-osawsgz8.js';
2
- export { L as Categorizer, $ as Dependencies, E as Expression, X as GrapherWidget, z as InputNumber, O as InteractiveGraphWidget, a5 as KhanColors, a0 as Log, a1 as MathRenderingContext, Q as MatrixWidget, F as NumericInput, a3 as PerseusI18nContextProvider, W as PlotterWidget, K as Radio, V as TableWidget, x as Widgets, _ as bodyXsmallBold, a8 as containerSizeClass, ac as contentHasWidgetType, at as deriveUserInputFromSerializedState, af as getAbsoluteValueCoords, as as getAngleCoords, ag as getCircleCoords, ah as getExponentialCoords, a9 as getInteractiveBoxFromSizeClass, aj as getLineCoords, ak as getLinearSystemCoords, ai as getLogarithmCoords, al as getPointCoords, am as getPolygonCoords, ar as getQuadraticCoords, an as getSegmentCoords, ao as getSinusoidCoords, ap as getTangentCoords, aq as getVectorCoords, ad as getWidgetFromWidgetMap, ab as getWidgetSubTypeByWidgetId, ae as getWidgetsFromWidgetMap, Y as iconChevronDown, Z as iconTrash, a2 as interactiveSizes, aa as mathOnlyParser, au as parseDataFromJSONP, a6 as preprocessTex, a7 as registerAllWidgetsForTesting, a4 as usePerseusI18n, y as widgets } from './chunk-register-all-widgets-for-testing-osawsgz8.js';
1
+ import { B as ButtonGroup, G as Graphie, H as HUD, I as Icon, a as InlineIcon, M as MathInput, b as MultiButtonGroup, N as NumberInput, R as RangeInput, S as SvgImage, T as TextInput, r as registerWidgets, c as basicWidgets, e as extraWidgets, d as replaceDeprecatedWidgets, P as PerseusI18nContext, A as ApiOptions, C as ClassNames, j as jsxRuntimeExports, U as UserInputManager, f as Renderer, D as DependenciesContext, g as Util, h as getDependencies, J as JiptParagraphs, i as hintPaddingInlineStart, k as hintBorderWidth, m as mediaQueries, s as sharedStyles, l as context$1, n as getWidgetTypeByWidgetId, o as getWidgetExport, p as PerseusMarkdown, t as typeToButton, q as getEquationString, u as defaultPlotProps, v as chooseType, w as DEFAULT_GRAPHER_PROPS } from './chunk-register-all-widgets-for-testing-BTFpfYiU.js';
2
+ export { L as Categorizer, $ as Dependencies, E as Expression, X as GrapherWidget, z as InputNumber, O as InteractiveGraphWidget, a5 as KhanColors, a0 as Log, a1 as MathRenderingContext, Q as MatrixWidget, F as NumericInput, a3 as PerseusI18nContextProvider, W as PlotterWidget, K as Radio, V as TableWidget, x as Widgets, _ as bodyXsmallBold, a8 as containerSizeClass, ac as contentHasWidgetType, at as deriveUserInputFromSerializedState, af as getAbsoluteValueCoords, as as getAngleCoords, ag as getCircleCoords, ah as getExponentialCoords, a9 as getInteractiveBoxFromSizeClass, aj as getLineCoords, ak as getLinearSystemCoords, ai as getLogarithmCoords, al as getPointCoords, am as getPolygonCoords, ar as getQuadraticCoords, an as getSegmentCoords, ao as getSinusoidCoords, ap as getTangentCoords, aq as getVectorCoords, ad as getWidgetFromWidgetMap, ab as getWidgetSubTypeByWidgetId, ae as getWidgetsFromWidgetMap, Y as iconChevronDown, Z as iconTrash, a2 as interactiveSizes, aa as mathOnlyParser, au as parseDataFromJSONP, a6 as preprocessTex, a7 as registerAllWidgetsForTesting, a4 as usePerseusI18n, y as widgets } from './chunk-register-all-widgets-for-testing-BTFpfYiU.js';
3
3
  import { addLibraryVersionToPerseusDebug } from '@khanacademy/perseus-utils';
4
4
  import * as React from 'react';
5
5
  import { createElement } from 'react';
@@ -83,7 +83,7 @@ var components = /*#__PURE__*/Object.freeze({
83
83
 
84
84
  const init=function(){registerWidgets(basicWidgets);registerWidgets(extraWidgets);replaceDeprecatedWidgets();};
85
85
 
86
- const libName="@khanacademy/perseus";const libVersion="90.0.0";addLibraryVersionToPerseusDebug(libName,libVersion);
86
+ const libName="@khanacademy/perseus";const libVersion="90.0.1";addLibraryVersionToPerseusDebug(libName,libVersion);
87
87
 
88
88
  const apiVersion={major:12,minor:0};
89
89
 
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a7 as registerAllWidgetsForTesting, j as jsxRuntimeExports } from './chunk-register-all-widgets-for-testing-osawsgz8.js';
1
+ import { a7 as registerAllWidgetsForTesting, j as jsxRuntimeExports } from './chunk-register-all-widgets-for-testing-BTFpfYiU.js';
2
2
  import React__default from 'react';
3
3
  import { View } from '@khanacademy/wonder-blocks-core';
4
4
  import { spacing } from '@khanacademy/wonder-blocks-tokens';
@@ -1,17 +1,9 @@
1
- import React from "react";
2
- import { PerseusI18nContext } from "../../components/i18n-context";
1
+ import * as React from "react";
3
2
  import type { Widget } from "../../types";
4
- type Props = object;
5
- declare class DeprecatedStandin extends React.Component<Props> implements Widget {
6
- static contextType: React.Context<import("../../components/i18n-context").I18nContextType>;
7
- context: React.ContextType<typeof PerseusI18nContext>;
8
- isWidget: true;
9
- render(): React.JSX.Element;
10
- }
11
3
  declare const _default: {
12
4
  name: string;
13
5
  displayName: string;
14
- widget: typeof DeprecatedStandin;
6
+ widget: React.ForwardRefExoticComponent<React.RefAttributes<Widget>>;
15
7
  hidden: true;
16
8
  };
17
9
  export default _default;
@@ -5,19 +5,9 @@
5
5
  * is "short answer" type questions.
6
6
  */
7
7
  import * as React from "react";
8
- import { PerseusI18nContext } from "../../components/i18n-context";
9
8
  import type { Widget, WidgetExports, WidgetProps } from "../../types";
10
9
  import type { PerseusFreeResponseUserInput, PerseusFreeResponseWidgetOptions } from "@khanacademy/perseus-core";
11
10
  type Props = WidgetProps<PerseusFreeResponseWidgetOptions, PerseusFreeResponseUserInput>;
12
- export declare class FreeResponse extends React.Component<Props> implements Widget {
13
- static contextType: React.Context<import("../../components/i18n-context").I18nContextType>;
14
- context: React.ContextType<typeof PerseusI18nContext>;
15
- isWidget: true;
16
- announceCharacterCount: (message: string, isOverLimit: boolean) => void;
17
- characterCount: () => number;
18
- _handleUserInput: (newValue: string) => void;
19
- isOverLimit(): boolean;
20
- render(): React.ReactNode;
21
- }
11
+ export declare const FreeResponse: React.ForwardRefExoticComponent<Props & React.RefAttributes<Widget>>;
22
12
  declare const _default: WidgetExports<typeof FreeResponse>;
23
13
  export default _default;
@@ -11,8 +11,7 @@ import Marker from "./marker";
11
11
  import type { DependencyProps } from "../../dependencies";
12
12
  import type { Widget, WidgetProps } from "../../types";
13
13
  import type { LabelImagePromptJSON } from "../../widget-ai-utils/label-image/label-image-ai-utils";
14
- import type { InteractiveMarkerType, PerseusLabelImageWidgetOptions, PerseusLabelImageUserInput, LabelImagePublicWidgetOptions, ShowSolutions, PerseusLabelImageUserInputMarker } from "@khanacademy/perseus-core";
15
- type PreferredPopoverDirection = "NONE" | "UP" | "DOWN" | "LEFT" | "RIGHT";
14
+ import type { InteractiveMarkerType, PerseusLabelImageWidgetOptions, PerseusLabelImageUserInput, LabelImagePublicWidgetOptions, ShowSolutions, PerseusLabelImageUserInputMarker, PreferredPopoverDirection } from "@khanacademy/perseus-core";
16
15
  /**
17
16
  * Represents a direction vector.
18
17
  * No diagonals allowed.
@@ -36,7 +35,6 @@ export type OptionalAnswersMarkerType = Omit<InteractiveMarkerType, "answers"> &
36
35
  };
37
36
  type Options = Omit<PerseusLabelImageWidgetOptions, "markers"> & {
38
37
  markers: ReadonlyArray<OptionalAnswersMarkerType>;
39
- preferredPopoverDirection?: PreferredPopoverDirection;
40
38
  };
41
39
  type Props = WidgetProps<Options, PerseusLabelImageUserInput> & {
42
40
  analytics: DependencyProps["analytics"];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "90.0.0",
6
+ "version": "90.0.1",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,12 +35,12 @@
35
35
  "tiny-invariant": "1.3.1",
36
36
  "uuid": "^10.0.0",
37
37
  "@khanacademy/kas": "3.0.0",
38
- "@khanacademy/keypad-context": "6.0.1",
39
- "@khanacademy/kmath": "3.0.2",
40
- "@khanacademy/math-input": "30.0.1",
41
- "@khanacademy/perseus-core": "40.1.0",
42
- "@khanacademy/perseus-linter": "6.0.2",
43
- "@khanacademy/perseus-score": "9.0.2",
38
+ "@khanacademy/keypad-context": "6.0.2",
39
+ "@khanacademy/kmath": "3.0.3",
40
+ "@khanacademy/math-input": "30.0.2",
41
+ "@khanacademy/perseus-core": "41.0.0",
42
+ "@khanacademy/perseus-linter": "6.0.3",
43
+ "@khanacademy/perseus-score": "9.0.3",
44
44
  "@khanacademy/perseus-utils": "3.0.0",
45
45
  "@khanacademy/pure-markdown": "3.0.0",
46
46
  "@khanacademy/simple-markdown": "4.0.0"