@khanacademy/perseus 7.0.2 → 7.1.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/index.js CHANGED
@@ -38192,11 +38192,10 @@ class Passage extends React__namespace.Component {
38192
38192
  const parsedContent = PassageMarkdown.parse(doubleQuoteParsedContent, parseState);
38193
38193
  // Check if the title has any non-empty text in it.
38194
38194
  const hasTitle = /\S/.test(this.props.passageTitle);
38195
- const joinedTitle = joinString(this.props.passageTitle);
38196
38195
  return /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement("div", {
38197
- id: "perseus-widget-passage-container" + joinedTitle
38196
+ className: "perseus-widget-passage-container"
38198
38197
  }, this._renderInstructions(parseState), /*#__PURE__*/React__namespace.createElement("div", {
38199
- id: "perseus-widget-passage" + joinedTitle
38198
+ className: "perseus-widget-passage"
38200
38199
  }, hasTitle && /*#__PURE__*/React__namespace.createElement("h3", {
38201
38200
  className: "passage-title"
38202
38201
  }, /*#__PURE__*/React__namespace.createElement(Renderer, {
@@ -38227,8 +38226,6 @@ class Passage extends React__namespace.Component {
38227
38226
  }, i18n__namespace._("End of reading passage.")))));
38228
38227
  }
38229
38228
  }
38230
-
38231
- // That's All, Folks! => -thats-all-folks
38232
38229
  _defineProperty(Passage, "defaultProps", {
38233
38230
  passageTitle: "",
38234
38231
  passageText: "",
@@ -38237,7 +38234,6 @@ _defineProperty(Passage, "defaultProps", {
38237
38234
  highlights: {},
38238
38235
  linterContext: PerseusLinter.linterContextDefault
38239
38236
  });
38240
- const joinString = title => "-" + title.toLowerCase().replace(/[^\w\s]/gi, "").trim().split(/\s+/).join("-");
38241
38237
  var Passage$1 = {
38242
38238
  name: "passage",
38243
38239
  displayName: "Passage (SAT only)",
@@ -44366,7 +44362,6 @@ class ArticleRenderer extends React__namespace.Component {
44366
44362
  const classes = classNames__default["default"]({
44367
44363
  "framework-perseus": true,
44368
44364
  "perseus-article": true,
44369
- "bibliotron-article": this.props.useNewStyles,
44370
44365
  // NOTE(charlie): For exercises, this is applied outside of Perseus
44371
44366
  // (in webapp).
44372
44367
  [ClassNames.MOBILE]: apiOptions.isMobile
@@ -44409,6 +44404,9 @@ _defineProperty(ArticleRenderer, "propTypes", {
44409
44404
  }),
44410
44405
  json: PropTypes__default["default"].oneOfType([rendererProps, PropTypes__default["default"].arrayOf(rendererProps)]).isRequired,
44411
44406
  // Whether to use the new Bibliotron styles for articles
44407
+ /**
44408
+ * @deprecated Does nothing
44409
+ */
44412
44410
  useNewStyles: PropTypes__default["default"].bool,
44413
44411
  linterContext: PerseusLinter__namespace.linterContextProps,
44414
44412
  legacyPerseusLint: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string)