@khanacademy/perseus 6.5.1 → 6.6.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/CHANGELOG.md +15 -0
- package/dist/es/index.js +1 -12
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -13
- package/dist/index.js.flow +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction-tracker.d.ts +3 -3
- package/dist/interaction-tracker.js.flow +3 -3
- package/dist/perseus-api.d.ts +1 -1
- package/dist/perseus-api.js.flow +6 -3
- package/dist/types.d.ts +1 -1
- package/dist/types.js.flow +6 -3
- package/dist/widgets/sequence.d.ts +16 -51
- package/dist/widgets/sequence.js.flow +16 -63
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/interaction-tracker.ts +3 -3
- package/src/types.ts +18 -10
- package/src/widgets/sequence.tsx +21 -24
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 6.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d0f28dbd: Add story for ExpressionEditor
|
|
8
|
+
- 077b125e: Extend argument object type for APIOptions.trackInteraction callback to support the arbitrary data each widget may add
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [04e68d1c]
|
|
13
|
+
- Updated dependencies [d0f28dbd]
|
|
14
|
+
- Updated dependencies [acafa72d]
|
|
15
|
+
- Updated dependencies [54590cc7]
|
|
16
|
+
- @khanacademy/math-input@7.0.0
|
|
17
|
+
|
|
3
18
|
## 6.5.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -17702,8 +17702,7 @@ class InteractionTracker {
|
|
|
17702
17702
|
|
|
17703
17703
|
// @ts-expect-error [FEI-5003] - TS2564 - Property 'widgetType' has no initializer and is not definitely assigned in the constructor.
|
|
17704
17704
|
|
|
17705
|
-
constructor(trackApi, widgetType, widgetID, setting
|
|
17706
|
-
) {
|
|
17705
|
+
constructor(trackApi, widgetType, widgetID, setting) {
|
|
17707
17706
|
this._tracked = void 0;
|
|
17708
17707
|
this.setting = void 0;
|
|
17709
17708
|
this.track = void 0;
|
|
@@ -39129,16 +39128,6 @@ class Sequence extends React.Component {
|
|
|
39129
39128
|
}));
|
|
39130
39129
|
}
|
|
39131
39130
|
}
|
|
39132
|
-
Sequence.propTypes = _extends({}, propTypes, {
|
|
39133
|
-
apiOptions: ApiOptions.propTypes,
|
|
39134
|
-
json: PropTypes.arrayOf(PropTypes.shape({
|
|
39135
|
-
content: PropTypes.string,
|
|
39136
|
-
images: PropTypes.objectOf(PropTypes.any),
|
|
39137
|
-
widgets: PropTypes.objectOf(PropTypes.any)
|
|
39138
|
-
})),
|
|
39139
|
-
trackInteraction: PropTypes.func.isRequired,
|
|
39140
|
-
linterContext: linterContextProps
|
|
39141
|
-
});
|
|
39142
39131
|
Sequence.defaultProps = {
|
|
39143
39132
|
json: [{
|
|
39144
39133
|
content: "",
|