@khanacademy/perseus-editor 28.4.1 → 28.4.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/__docs__/preview-panel.d.ts +32 -0
- package/dist/es/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type PreviewPanelProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The content to display inside the panel
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Text to display on the "open panel" button
|
|
9
|
+
*/
|
|
10
|
+
openButtonText: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional: Control the panel open state externally
|
|
13
|
+
*/
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Optional: Callback when panel open state changes
|
|
17
|
+
*/
|
|
18
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Optional: Additional CSS class for the open button
|
|
21
|
+
*/
|
|
22
|
+
openButtonClassName?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A reusable component that provides a toggleable preview panel with:
|
|
26
|
+
* - A fixed-position panel on the right side
|
|
27
|
+
* - A button to open the panel when closed
|
|
28
|
+
* - A close button (X) when the panel is open
|
|
29
|
+
* - Accepts any children to render inside the panel
|
|
30
|
+
*/
|
|
31
|
+
declare function PreviewPanel({ children, openButtonText, isOpen: controlledIsOpen, onOpenChange, openButtonClassName, }: PreviewPanelProps): React.JSX.Element;
|
|
32
|
+
export default PreviewPanel;
|
package/dist/es/index.js
CHANGED
|
@@ -61,7 +61,7 @@ import xIcon from '@phosphor-icons/core/regular/x.svg';
|
|
|
61
61
|
import checkIcon from '@phosphor-icons/core/bold/check-bold.svg';
|
|
62
62
|
import minusCircleIcon from '@phosphor-icons/core/bold/minus-circle-bold.svg';
|
|
63
63
|
|
|
64
|
-
const libName="@khanacademy/perseus-editor";const libVersion="28.4.
|
|
64
|
+
const libName="@khanacademy/perseus-editor";const libVersion="28.4.2";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
65
65
|
|
|
66
66
|
var jsxRuntime = {exports: {}};
|
|
67
67
|
|
package/dist/index.js
CHANGED
|
@@ -124,7 +124,7 @@ var xIcon__default = /*#__PURE__*/_interopDefaultCompat(xIcon);
|
|
|
124
124
|
var checkIcon__default = /*#__PURE__*/_interopDefaultCompat(checkIcon);
|
|
125
125
|
var minusCircleIcon__default = /*#__PURE__*/_interopDefaultCompat(minusCircleIcon);
|
|
126
126
|
|
|
127
|
-
const libName="@khanacademy/perseus-editor";const libVersion="28.4.
|
|
127
|
+
const libName="@khanacademy/perseus-editor";const libVersion="28.4.2";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
128
128
|
|
|
129
129
|
var jsxRuntime = {exports: {}};
|
|
130
130
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "28.4.
|
|
6
|
+
"version": "28.4.2",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"mafs": "^0.19.0",
|
|
36
36
|
"tiny-invariant": "1.3.1",
|
|
37
37
|
"@khanacademy/kas": "2.1.2",
|
|
38
|
-
"@khanacademy/
|
|
39
|
-
"@khanacademy/
|
|
40
|
-
"@khanacademy/
|
|
41
|
-
"@khanacademy/perseus": "71.2.
|
|
42
|
-
"@khanacademy/perseus-core": "
|
|
43
|
-
"@khanacademy/perseus-
|
|
38
|
+
"@khanacademy/keypad-context": "3.2.11",
|
|
39
|
+
"@khanacademy/kmath": "2.2.11",
|
|
40
|
+
"@khanacademy/math-input": "26.2.12",
|
|
41
|
+
"@khanacademy/perseus": "71.2.3",
|
|
42
|
+
"@khanacademy/perseus-core": "20.0.0",
|
|
43
|
+
"@khanacademy/perseus-linter": "4.4.1",
|
|
44
|
+
"@khanacademy/perseus-score": "8.0.0",
|
|
44
45
|
"@khanacademy/perseus-utils": "2.1.0",
|
|
45
|
-
"@khanacademy/pure-markdown": "2.2.0"
|
|
46
|
-
"@khanacademy/perseus-linter": "4.4.0"
|
|
46
|
+
"@khanacademy/pure-markdown": "2.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@khanacademy/mathjax-renderer": "3.0.0",
|