@khanacademy/perseus-core 39.2.1 → 39.2.2
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/data-schema.d.ts +5 -7
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-schema.d.ts
CHANGED
|
@@ -559,12 +559,7 @@ export type PerseusExpressionWidgetOptions = {
|
|
|
559
559
|
visibleLabel?: string;
|
|
560
560
|
/** Aria label for screen readers attached to MathQuill field */
|
|
561
561
|
ariaLabel?: string;
|
|
562
|
-
/**
|
|
563
|
-
* Controls when buttons for special characters are visible when using a
|
|
564
|
-
* desktop browser. Defaults to "focused".
|
|
565
|
-
* NOTE: This isn't listed in perseus-format.js or perseus_data.go, but
|
|
566
|
-
* appears in item data in the datastore.
|
|
567
|
-
*/
|
|
562
|
+
/** @deprecated buttonsVisible has no effect. */
|
|
568
563
|
buttonsVisible?: "always" | "never" | "focused";
|
|
569
564
|
};
|
|
570
565
|
export declare const PerseusExpressionAnswerFormConsidered: readonly ["correct", "wrong", "ungraded"];
|
|
@@ -730,7 +725,10 @@ export type PerseusGrapherWidgetOptions = {
|
|
|
730
725
|
};
|
|
731
726
|
/** The [width, height] of the graph canvas in pixels. */
|
|
732
727
|
box?: [number, number];
|
|
733
|
-
/**
|
|
728
|
+
/**
|
|
729
|
+
* Which graph settings are editable in the editor UI.
|
|
730
|
+
* @deprecated - not used
|
|
731
|
+
*/
|
|
734
732
|
editableSettings?: Array<"graph" | "snap" | "image" | "measure">;
|
|
735
733
|
/** The [x, y] spacing between grid lines. */
|
|
736
734
|
gridStep?: [number, number];
|
package/dist/es/index.js
CHANGED
|
@@ -232,7 +232,7 @@ const parseUserInputMap=(rawValue,ctx)=>{if(!isPlainObject(rawValue)){return ctx
|
|
|
232
232
|
|
|
233
233
|
function parseAndMigratePerseusItem(data){const object=typeof data==="string"?JSON.parse(data):data;const result=parse(object,parsePerseusItem);if(isFailure(result)){return failure({message:result.detail,invalidObject:object})}return result}function parseAndMigratePerseusArticle(data){const object=typeof data==="string"?JSON.parse(data):data;const result=parse(object,parsePerseusArticle);if(isFailure(result)){return failure({message:result.detail,invalidObject:object})}return result}function parseAndMigrateUserInputMap(data){const object=typeof data==="string"?JSON.parse(data):data;const result=parse(object,parseUserInputMap);if(isFailure(result)){return failure({message:result.detail,invalidObject:object})}return result}function parseAndMigratePerseusRenderer(data){const object=typeof data==="string"?JSON.parse(data):data;const result=parse(object,parsePerseusRenderer);if(isFailure(result)){return failure({message:result.detail,invalidObject:object})}return result}
|
|
234
234
|
|
|
235
|
-
const libName="@khanacademy/perseus-core";const libVersion="39.2.
|
|
235
|
+
const libName="@khanacademy/perseus-core";const libVersion="39.2.2";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
236
236
|
|
|
237
237
|
const Errors=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",NotAllowed:"NotAllowed",TransientService:"TransientService",Service:"Service"});
|
|
238
238
|
|