@apify/docs-theme 1.0.136 → 1.0.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -6,7 +6,7 @@ export default function MDXDetails(props) {
6
6
  // Split summary item from the rest to pass it as a separate prop to the
7
7
  // Details theme component
8
8
  const summary = items.find(
9
- (item) => React.isValidElement(item) && item.props?.mdxType === 'summary',
9
+ (item) => React.isValidElement(item) && item.type === 'summary',
10
10
  );
11
11
  const children = <>{items.filter((item) => item !== summary)}</>;
12
12
  return (
@@ -17,7 +17,7 @@ const MDXComponents = {
17
17
  code: MDXCode,
18
18
  a: MDXA,
19
19
  pre: MDXPre,
20
- details: MDXDetails,
20
+ Details: MDXDetails,
21
21
  ul: MDXUl,
22
22
  img: MDXImg,
23
23
  h1: (props) => <MDXHeading as="h1" {...props} />,
@@ -445,6 +445,7 @@ html[data-theme="dark"] .DocSearch-Button .DocSearch-Search-Icon {
445
445
  .main-wrapper > div {
446
446
  max-width: var(--max-layout-width);
447
447
  margin: auto;
448
+ width: 100%;
448
449
  }
449
450
 
450
451
  @media (max-width: 960px) {