@khanacademy/perseus-core
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -229,4 +229,11 @@ /** | ||
widgets: PerseusWidgetsMap; | ||
metadata?: ReadonlyArray<string>; | ||
/** | ||
* Formerly used in the PerseusGradedGroup widget. A list of "tags" that | ||
* are keys that represent other content in the system. Not rendered to | ||
* the user. NOTE: perseus_data.go says this is required even though it | ||
* isn't necessary. | ||
* @deprecated | ||
*/ | ||
metadata?: any; | ||
/** | ||
* A dictionary of {[imageUrl]: PerseusImageDetail}. | ||
@@ -262,3 +269,3 @@ */ | ||
options: Options; | ||
key?: number; | ||
key?: number | null; | ||
version?: Version; | ||
@@ -309,3 +316,3 @@ }; | ||
left?: number; | ||
scale?: number | string; | ||
scale?: number; | ||
bottom?: number; | ||
@@ -312,0 +319,0 @@ }; |
@@ -104,1 +104,3 @@ export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export { default as getPlotterPublicWidgetOptions } from "./widgets/plotter/plotter-util"; | ||
export { default as getMatcherPublicWidgetOptions, shuffleMatcher, } from "./widgets/matcher/matcher-util"; | ||
export { shuffle, seededRNG, random } from "./utils/random-util"; |
import type { PerseusGroupWidgetOptions } from "../../data-schema"; | ||
import type { WidgetLogic } from "../logic-export.types"; | ||
export type GroupDefaultWidgetOptions = Pick<PerseusGroupWidgetOptions, "content" | "widgets" | "images" | "metadata">; | ||
export type GroupDefaultWidgetOptions = Pick<PerseusGroupWidgetOptions, "content" | "widgets" | "images">; | ||
declare const groupWidgetLogic: WidgetLogic; | ||
export default groupWidgetLogic; |
@@ -9,2 +9,3 @@ import type getCategorizerPublicWidgetOptions from "./categorizer/categorizer-util"; | ||
import type getLabelImagePublicWidgetOptions from "./label-image/label-image-util"; | ||
import type getMatcherPublicWidgetOptions from "./matcher/matcher-util"; | ||
import type getMatrixPublicWidgetOptions from "./matrix/matrix-util"; | ||
@@ -29,3 +30,3 @@ import type getNumberLinePublicWidgetOptions from "./number-line/number-line-util"; | ||
*/ | ||
export type PublicWidgetOptionsFunction = typeof getPlotterPublicWidgetOptions | typeof getIFramePublicWidgetOptions | typeof getRadioPublicWidgetOptions | typeof getNumericInputPublicWidgetOptions | typeof getDropdownPublicWidgetOptions | typeof getCategorizerPublicWidgetOptions | typeof getOrdererPublicWidgetOptions | typeof getExpressionPublicWidgetOptions | typeof getInteractiveGraphPublicWidgetOptions | typeof getLabelImagePublicWidgetOptions | typeof getSorterPublicWidgetOptions | typeof getCSProgramPublicWidgetOptions | typeof getNumberLinePublicWidgetOptions | typeof getTablePublicWidgetOptions | typeof getGrapherPublicWidgetOptions | typeof getMatrixPublicWidgetOptions; | ||
export type PublicWidgetOptionsFunction = typeof getMatcherPublicWidgetOptions | typeof getPlotterPublicWidgetOptions | typeof getIFramePublicWidgetOptions | typeof getRadioPublicWidgetOptions | typeof getNumericInputPublicWidgetOptions | typeof getDropdownPublicWidgetOptions | typeof getCategorizerPublicWidgetOptions | typeof getOrdererPublicWidgetOptions | typeof getExpressionPublicWidgetOptions | typeof getInteractiveGraphPublicWidgetOptions | typeof getLabelImagePublicWidgetOptions | typeof getSorterPublicWidgetOptions | typeof getCSProgramPublicWidgetOptions | typeof getNumberLinePublicWidgetOptions | typeof getTablePublicWidgetOptions | typeof getGrapherPublicWidgetOptions | typeof getMatrixPublicWidgetOptions; | ||
export type WidgetLogic = { | ||
@@ -32,0 +33,0 @@ name: string; |
@@ -10,2 +10,3 @@ import type { PerseusSorterWidgetOptions } from "@khanacademy/perseus-core"; | ||
layout: PerseusSorterWidgetOptions["layout"]; | ||
isCorrectShuffled: boolean; | ||
}; | ||
@@ -12,0 +13,0 @@ /** |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1592281
160
13261
2
4