@khanacademy/perseus-editor 2.6.2 → 2.6.4
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/CHANGELOG.md +20 -0
- package/dist/components/section-control-button.d.ts +2 -1
- package/dist/es/index.js +9 -0
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/widgets/input-number-editor.d.ts +7 -6
- package/dist/widgets/interactive-graph-editor.d.ts +140 -139
- package/package.json +2 -2
- package/src/components/section-control-button.tsx +3 -4
- package/src/multirenderer-editor.tsx +6 -0
- package/src/widgets/input-number-editor.tsx +8 -23
- package/src/widgets/interactive-graph-editor.tsx +2 -5
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @khanacademy/perseus-editor
|
|
2
2
|
|
|
3
|
+
## 2.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- aea86eec: Convert all usages of JSX.LibraryManagedAttributes to WB Core's PropsFor type
|
|
8
|
+
- Updated dependencies [aea86eec]
|
|
9
|
+
- Updated dependencies [9eb50ae1]
|
|
10
|
+
- @khanacademy/perseus@10.0.0
|
|
11
|
+
|
|
12
|
+
## 2.6.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [ec50a510]
|
|
17
|
+
- Updated dependencies [dd800c22]
|
|
18
|
+
- Updated dependencies [2c69b0dc]
|
|
19
|
+
- Updated dependencies [2b99fbda]
|
|
20
|
+
- Updated dependencies [673f61b3]
|
|
21
|
+
- @khanacademy/perseus@9.0.0
|
|
22
|
+
|
|
3
23
|
## 2.6.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import type { PropsFor } from "@khanacademy/wonder-blocks-core";
|
|
2
3
|
declare const InlineIcon: ({ path, width, height, style, title, }: {
|
|
3
4
|
path: string;
|
|
4
5
|
height: number;
|
|
@@ -6,7 +7,7 @@ declare const InlineIcon: ({ path, width, height, style, title, }: {
|
|
|
6
7
|
style?: React.CSSProperties | undefined;
|
|
7
8
|
title?: string | undefined;
|
|
8
9
|
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
-
type InlineIconProps =
|
|
10
|
+
type InlineIconProps = PropsFor<typeof InlineIcon>;
|
|
10
11
|
type SectionControlButtonProps = {
|
|
11
12
|
icon: InlineIconProps;
|
|
12
13
|
onClick: () => unknown;
|
package/dist/es/index.js
CHANGED
|
@@ -25413,6 +25413,15 @@ class MultiRendererEditor extends React.Component {
|
|
|
25413
25413
|
item: item,
|
|
25414
25414
|
shape: itemShape,
|
|
25415
25415
|
apiOptions: apiOptions
|
|
25416
|
+
// Today, with analytics being the only thing in
|
|
25417
|
+
// dependencies, we send in a dummy function as we don't
|
|
25418
|
+
// want to gather analytics events from within the editor.
|
|
25419
|
+
,
|
|
25420
|
+
dependencies: {
|
|
25421
|
+
analytics: {
|
|
25422
|
+
onAnalyticsEvent: async function () {}
|
|
25423
|
+
}
|
|
25424
|
+
}
|
|
25416
25425
|
}, ({
|
|
25417
25426
|
renderers
|
|
25418
25427
|
}) => /*#__PURE__*/React.createElement(NodeContainer, {
|