@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR2089-20250109204545 to 0.0.0-PR2091-20250113054228
@@ -99,2 +99,3 @@ /** | ||
measurer: MeasurerWidget; | ||
"mock-widget": MockWidget; | ||
"molecule-renderer": MoleculeRendererWidget; | ||
@@ -231,2 +232,3 @@ "number-line": NumberLineWidget; | ||
export type MeasurerWidget = WidgetOptions<'measurer', PerseusMeasurerWidgetOptions>; | ||
export type MockWidget = WidgetOptions<'mock-widget', MockWidgetOptions>; | ||
export type NumberLineWidget = WidgetOptions<'number-line', PerseusNumberLineWidgetOptions>; | ||
@@ -248,3 +250,3 @@ export type NumericInputWidget = WidgetOptions<'numeric-input', PerseusNumericInputWidgetOptions>; | ||
export type DeprecatedStandinWidget = WidgetOptions<'deprecated-standin', object>; | ||
export type PerseusWidget = CategorizerWidget | CSProgramWidget | DefinitionWidget | DropdownWidget | ExplanationWidget | ExpressionWidget | GradedGroupSetWidget | GradedGroupWidget | GrapherWidget | GroupWidget | IFrameWidget | ImageWidget | InputNumberWidget | InteractionWidget | InteractiveGraphWidget | LabelImageWidget | MatcherWidget | MatrixWidget | MeasurerWidget | MoleculeRendererWidget | NumberLineWidget | NumericInputWidget | OrdererWidget | PassageRefWidget | PassageWidget | PhetSimulationWidget | PlotterWidget | PythonProgramWidget | RadioWidget | RefTargetWidget | SorterWidget | TableWidget | VideoWidget | DeprecatedStandinWidget; | ||
export type PerseusWidget = CategorizerWidget | CSProgramWidget | DefinitionWidget | DropdownWidget | ExplanationWidget | ExpressionWidget | GradedGroupSetWidget | GradedGroupWidget | GrapherWidget | GroupWidget | IFrameWidget | ImageWidget | InputNumberWidget | InteractionWidget | InteractiveGraphWidget | LabelImageWidget | MatcherWidget | MatrixWidget | MeasurerWidget | MockWidget | MoleculeRendererWidget | NumberLineWidget | NumericInputWidget | OrdererWidget | PassageRefWidget | PassageWidget | PhetSimulationWidget | PlotterWidget | PythonProgramWidget | RadioWidget | RefTargetWidget | SorterWidget | TableWidget | VideoWidget | DeprecatedStandinWidget; | ||
/** | ||
@@ -338,29 +340,23 @@ * A background image applied to various widgets. | ||
type: "absolute_value"; | ||
coords: [ | ||
Coord, | ||
Coord | ||
]; | ||
coords: null | [vertex: Coord, secondPoint: Coord]; | ||
} | { | ||
type: "exponential"; | ||
asymptote: [Coord, Coord]; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "linear"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "logarithm"; | ||
asymptote: [Coord, Coord]; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "quadratic"; | ||
coords: [ | ||
Coord, | ||
Coord | ||
]; | ||
coords: null | [vertex: Coord, secondPoint: Coord]; | ||
} | { | ||
type: "sinusoid"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
} | { | ||
type: "tangent"; | ||
coords: [Coord, Coord]; | ||
coords: null | [Coord, Coord]; | ||
}; | ||
@@ -936,3 +932,2 @@ export type PerseusGrapherWidgetOptions = { | ||
showButtons: boolean; | ||
width: number; | ||
height: number; | ||
@@ -951,3 +946,3 @@ static: boolean; | ||
url: string; | ||
settings: ReadonlyArray<PerseusCSProgramSetting>; | ||
settings?: ReadonlyArray<PerseusCSProgramSetting>; | ||
width: number | string; | ||
@@ -967,2 +962,6 @@ height: number | string; | ||
}; | ||
export type MockWidgetOptions = { | ||
static?: boolean; | ||
value: string; | ||
}; | ||
export type PerseusInputNumberWidgetOptions = { | ||
@@ -969,0 +968,0 @@ answerType?: "number" | "decimal" | "integer" | "rational" | "improper" | "mixed" | "percent" | "pi"; |
@@ -9,4 +9,1 @@ export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export * from "./data-schema"; | ||
export { pluck, mapObject, clone } from "./utils/object-utils"; | ||
export { default as Util } from "./utils/util"; | ||
export type { GridDimensions, Position } from "./utils/util"; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR2089-20250109204545", | ||
"version": "0.0.0-PR2091-20250113054228", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
217706
14
1678
1