@khanacademy/perseus-core 18.8.0 → 18.9.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/data-schema.d.ts +3 -0
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/radio-user-input.d.ts +1 -1
- package/dist/validation.types.d.ts +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -215,7 +215,7 @@ const parseOrdererUserInput=object({current:array(string)});
|
|
|
215
215
|
|
|
216
216
|
const parsePlotterUserInput=array(number);
|
|
217
217
|
|
|
218
|
-
const parseRadioUserInput=object({
|
|
218
|
+
const parseRadioUserInput=object({selectedChoiceIds:array(string)});
|
|
219
219
|
|
|
220
220
|
const parseSorterUserInput=object({options:array(string),changed:boolean});
|
|
221
221
|
|
|
@@ -225,7 +225,7 @@ const parseUserInputMap=(rawValue,ctx)=>{if(!isPlainObject(rawValue)){return ctx
|
|
|
225
225
|
|
|
226
226
|
function parsePerseusItem(json){if(isRealJSONParse(JSON.parse)){return JSON.parse(json)}throw new Error("Something went wrong.")}function parseAndMigratePerseusItem(data){throwErrorIfCheatingDetected();const object=typeof data==="string"?JSON.parse(data):data;const result=parse(object,parsePerseusItem$1);if(isFailure(result)){return failure({message:result.detail,invalidObject:object})}return result}function parseAndMigratePerseusArticle(data){throwErrorIfCheatingDetected();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 throwErrorIfCheatingDetected(){if(!isRealJSONParse(JSON.parse)){throw new Error("Something went wrong.")}}
|
|
227
227
|
|
|
228
|
-
const libName="@khanacademy/perseus-core";const libVersion="18.
|
|
228
|
+
const libName="@khanacademy/perseus-core";const libVersion="18.9.0";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
229
229
|
|
|
230
230
|
const Errors=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",NotAllowed:"NotAllowed",TransientService:"TransientService",Service:"Service"});
|
|
231
231
|
|