@khanacademy/perseus-editor 11.6.0 → 12.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/es/index.js +1410 -1464
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +24 -84
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/dist/content-preview.d.ts +0 -24
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "12.0.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -34,11 +34,10 @@
|
|
|
34
34
|
"test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@khanacademy/kas": "^0.3.
|
|
38
|
-
"@khanacademy/keypad-context": "^1.0.0",
|
|
37
|
+
"@khanacademy/kas": "^0.3.12",
|
|
39
38
|
"@khanacademy/kmath": "^0.1.13",
|
|
40
|
-
"@khanacademy/math-input": "^21.0.
|
|
41
|
-
"@khanacademy/perseus": "^
|
|
39
|
+
"@khanacademy/math-input": "^21.0.1",
|
|
40
|
+
"@khanacademy/perseus": "^30.0.1",
|
|
42
41
|
"@khanacademy/perseus-core": "1.5.0"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Renderer, type APIOptions, type DeviceType, type PerseusRenderer } from "@khanacademy/perseus";
|
|
3
|
-
import type { LinterContextProps } from "@khanacademy/perseus-linter";
|
|
4
|
-
import type { PropsFor } from "@khanacademy/wonder-blocks-core";
|
|
5
|
-
/**
|
|
6
|
-
* The `ContentPreview` component provides a simple preview system for Perseus
|
|
7
|
-
* Content. Due to how Persus styles are built, the preview styling matches the
|
|
8
|
-
* current device based on the viewport width (using `@media` queries for
|
|
9
|
-
* `min-width` and `max-width`).
|
|
10
|
-
*
|
|
11
|
-
* The preview will render the mobile variant (styling and layout) when the
|
|
12
|
-
* `previewDevice` is phone or tablet. Note that the styling cannot be matched
|
|
13
|
-
* 100% due to the above `@media` query limitation.
|
|
14
|
-
*/
|
|
15
|
-
declare function ContentPreview({ question, apiOptions, seamless, linterContext, legacyPerseusLint, previewDevice, strings, }: {
|
|
16
|
-
question?: PerseusRenderer;
|
|
17
|
-
apiOptions?: APIOptions;
|
|
18
|
-
seamless?: boolean;
|
|
19
|
-
linterContext?: LinterContextProps;
|
|
20
|
-
legacyPerseusLint?: ReadonlyArray<string>;
|
|
21
|
-
previewDevice: DeviceType;
|
|
22
|
-
strings: PropsFor<typeof Renderer>["strings"];
|
|
23
|
-
}): import("react").JSX.Element;
|
|
24
|
-
export default ContentPreview;
|