@khanacademy/perseus 7.0.1 → 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/es/index.js CHANGED
@@ -37994,11 +37994,10 @@ class Passage extends React.Component {
37994
37994
  const parsedContent = PassageMarkdown.parse(doubleQuoteParsedContent, parseState);
37995
37995
  // Check if the title has any non-empty text in it.
37996
37996
  const hasTitle = /\S/.test(this.props.passageTitle);
37997
- const joinedTitle = joinString(this.props.passageTitle);
37998
37997
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
37999
- id: "perseus-widget-passage-container" + joinedTitle
37998
+ className: "perseus-widget-passage-container"
38000
37999
  }, this._renderInstructions(parseState), /*#__PURE__*/React.createElement("div", {
38001
- id: "perseus-widget-passage" + joinedTitle
38000
+ className: "perseus-widget-passage"
38002
38001
  }, hasTitle && /*#__PURE__*/React.createElement("h3", {
38003
38002
  className: "passage-title"
38004
38003
  }, /*#__PURE__*/React.createElement(Renderer, {
@@ -38029,8 +38028,6 @@ class Passage extends React.Component {
38029
38028
  }, i18n._("End of reading passage.")))));
38030
38029
  }
38031
38030
  }
38032
-
38033
- // That's All, Folks! => -thats-all-folks
38034
38031
  Passage.defaultProps = {
38035
38032
  passageTitle: "",
38036
38033
  passageText: "",
@@ -38039,7 +38036,6 @@ Passage.defaultProps = {
38039
38036
  highlights: {},
38040
38037
  linterContext: linterContextDefault
38041
38038
  };
38042
- const joinString = title => "-" + title.toLowerCase().replace(/[^\w\s]/gi, "").trim().split(/\s+/).join("-");
38043
38039
  var Passage$1 = {
38044
38040
  name: "passage",
38045
38041
  displayName: "Passage (SAT only)",
@@ -44131,7 +44127,6 @@ class ArticleRenderer extends React.Component {
44131
44127
  const classes = classNames({
44132
44128
  "framework-perseus": true,
44133
44129
  "perseus-article": true,
44134
- "bibliotron-article": this.props.useNewStyles,
44135
44130
  // NOTE(charlie): For exercises, this is applied outside of Perseus
44136
44131
  // (in webapp).
44137
44132
  [ClassNames.MOBILE]: apiOptions.isMobile
@@ -44172,6 +44167,9 @@ ArticleRenderer.propTypes = _extends({}, ProvideKeypad.propTypes, {
44172
44167
  }),
44173
44168
  json: PropTypes.oneOfType([rendererProps, PropTypes.arrayOf(rendererProps)]).isRequired,
44174
44169
  // Whether to use the new Bibliotron styles for articles
44170
+ /**
44171
+ * @deprecated Does nothing
44172
+ */
44175
44173
  useNewStyles: PropTypes.bool,
44176
44174
  linterContext: PerseusLinter.linterContextProps,
44177
44175
  legacyPerseusLint: PropTypes.arrayOf(PropTypes.string)