@mui/internal-markdown 1.0.23 → 1.0.25

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/index.d.ts CHANGED
@@ -6,10 +6,11 @@ interface TableOfContentsEntry {
6
6
  }
7
7
 
8
8
  export function createRender(context: {
9
- headingHashes: Record<string, string>;
10
- toc: TableOfContentsEntry[];
11
- userLanguage: string;
12
- ignoreLanguagePages: (path: string) => boolean;
9
+ headingHashes?: Record<string, string>;
10
+ toc?: TableOfContentsEntry[];
11
+ userLanguage?: string;
12
+ ignoreLanguagePages?: (path: string) => boolean;
13
+ options: object;
13
14
  }): (markdown: string) => string;
14
15
 
15
16
  export interface MarkdownHeaders {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-markdown",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI markdown parser. This is an internal package not meant for general use.",
6
6
  "main": "./index.js",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.26.0",
20
20
  "lodash": "^4.17.21",
21
- "marked": "^15.0.4",
21
+ "marked": "^15.0.6",
22
22
  "prismjs": "^1.29.0"
23
23
  },
24
24
  "devDependencies": {
package/parseMarkdown.js CHANGED
@@ -291,13 +291,13 @@ const noSEOadvantage = [
291
291
  * @property {number} level
292
292
  * @property {string} text
293
293
  * @param {object} context
294
- * @param {Record<string, string>} context.headingHashes - WILL BE MUTATED
295
- * @param {TableOfContentsEntry[]} context.toc - WILL BE MUTATED
296
- * @param {string} context.userLanguage
294
+ * @param {Record<string, string>} [context.headingHashes] - WILL BE MUTATED
295
+ * @param {TableOfContentsEntry[]} [context.toc] - WILL BE MUTATED
296
+ * @param {string} [context.userLanguage]
297
297
  * @param {object} context.options
298
298
  */
299
299
  function createRender(context) {
300
- const { headingHashes, toc, userLanguage, options } = context;
300
+ const { headingHashes = {}, toc = [], userLanguage = 'en', options } = context;
301
301
  const headingHashesFallbackTranslated = {};
302
302
  let headingIndex = -1;
303
303
 
@@ -36,6 +36,9 @@ function resolveComponentApiUrl(productId, componentPkg, component) {
36
36
  if (productId === 'x-tree-view') {
37
37
  return `/x/api/tree-view/${kebabCase(component)}/`;
38
38
  }
39
+ if (productId === 'x-data-grid') {
40
+ return `/x/api/data-grid/${kebabCase(component)}/`;
41
+ }
39
42
  if (componentPkg === 'mui-base' || BaseUIReexportedComponents.includes(component)) {
40
43
  return `/base-ui/react-${kebabCase(component)}/components-api/#${kebabCase(component)}`;
41
44
  }