@khanacademy/perseus-editor 17.6.1 → 17.7.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/es/index.js CHANGED
@@ -47,7 +47,7 @@ import arrowCounterClockwise from '@phosphor-icons/core/bold/arrow-counter-clock
47
47
 
48
48
  // This file is processed by a Rollup plugin (replace) to inject the production
49
49
  const libName = "@khanacademy/perseus-editor";
50
- const libVersion = "17.6.1";
50
+ const libVersion = "17.7.0";
51
51
  addLibraryVersionToPerseusDebug(libName, libVersion);
52
52
 
53
53
  function _extends() {
@@ -26413,15 +26413,6 @@ class GroupEditor extends React.Component {
26413
26413
  constructor(..._args) {
26414
26414
  super(..._args);
26415
26415
  this.editor = /*#__PURE__*/React.createRef();
26416
- this._renderMetadataEditor = () => {
26417
- const GroupMetadataEditor = this.props.apiOptions.GroupMetadataEditor;
26418
- return /*#__PURE__*/React.createElement(GroupMetadataEditor, {
26419
- value: this.props.metadata
26420
- // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
26421
- ,
26422
- onChange: this.change("metadata")
26423
- });
26424
- };
26425
26416
  this.change = (...args) => {
26426
26417
  return Changeable.change.apply(this, args);
26427
26418
  };
@@ -26431,15 +26422,13 @@ class GroupEditor extends React.Component {
26431
26422
  };
26432
26423
  this.serialize = () => {
26433
26424
  var _this$editor$current2;
26434
- return _.extend({}, (_this$editor$current2 = this.editor.current) == null ? void 0 : _this$editor$current2.serialize(), {
26435
- metadata: this.props.metadata
26436
- });
26425
+ return _.extend({}, (_this$editor$current2 = this.editor.current) == null ? void 0 : _this$editor$current2.serialize());
26437
26426
  };
26438
26427
  }
26439
26428
  render() {
26440
26429
  return /*#__PURE__*/React.createElement("div", {
26441
26430
  className: "perseus-group-editor"
26442
- }, /*#__PURE__*/React.createElement("div", null, this._renderMetadataEditor()), /*#__PURE__*/React.createElement(Editor, {
26431
+ }, /*#__PURE__*/React.createElement(Editor, {
26443
26432
  ref: this.editor,
26444
26433
  content: this.props.content,
26445
26434
  widgets: this.props.widgets,
@@ -26455,7 +26444,6 @@ GroupEditor.propTypes = _extends({}, Changeable.propTypes, {
26455
26444
  content: PropTypes.string,
26456
26445
  widgets: PropTypes.object,
26457
26446
  images: PropTypes.object,
26458
- metadata: PropTypes.any,
26459
26447
  apiOptions: ApiOptions.propTypes
26460
26448
  });
26461
26449
  GroupEditor.widgetName = "group";