scoobie 13.0.6 → 13.0.7
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
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "13.0.
|
|
7
|
+
"version": "13.0.7",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@capsizecss/core": "^3.0.0",
|
|
10
10
|
"@mdx-js/loader": "^1.6.22",
|
|
11
11
|
"@mdx-js/react": "^1.6.22",
|
|
12
|
-
"@types/mdx-js__react": "^1.5.
|
|
12
|
+
"@types/mdx-js__react": "^1.5.5",
|
|
13
13
|
"@types/react-router-hash-link": "^2.4.1",
|
|
14
14
|
"@vanilla-extract/css": "^1.2.3",
|
|
15
15
|
"@vanilla-extract/css-utils": "^0.1.1",
|
|
@@ -34,17 +34,16 @@
|
|
|
34
34
|
"@mermaid-js/mermaid-cli": "9.0.2",
|
|
35
35
|
"@storybook/addon-essentials": "6.4.22",
|
|
36
36
|
"@storybook/storybook-deployer": "2.8.11",
|
|
37
|
-
"@types/react": "
|
|
38
|
-
"@types/react-dom": "
|
|
39
|
-
"
|
|
40
|
-
"braid-design-system": "31.12.0",
|
|
37
|
+
"@types/react": "18.0.9",
|
|
38
|
+
"@types/react-dom": "18.0.5",
|
|
39
|
+
"braid-design-system": "31.13.0",
|
|
41
40
|
"loki": "0.29.0",
|
|
42
41
|
"react": "18.0.0",
|
|
43
42
|
"react-dom": "18.0.0",
|
|
44
|
-
"react-helmet": "
|
|
43
|
+
"react-helmet-async": "1.3.0",
|
|
45
44
|
"react-router-dom": "6.3.0",
|
|
46
45
|
"semantic-release": "19.0.2",
|
|
47
|
-
"sku": "11.4.
|
|
46
|
+
"sku": "11.4.2",
|
|
48
47
|
"webpack": "5.72.0"
|
|
49
48
|
},
|
|
50
49
|
"files": [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MDXProvider } from '@mdx-js/react';
|
|
1
|
+
import { MDXProvider, MDXProviderComponents } from '@mdx-js/react';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
import { GraphQLPlaygroundProvider } from '../private/hooks/graphqlPlayground';
|
|
@@ -30,7 +30,10 @@ export const MdxProvider = ({
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<GraphQLPlaygroundProvider value={graphqlPlayground}>
|
|
33
|
-
|
|
33
|
+
{/* `@types/mdx-js__react` does not play nicely with React 18 */}
|
|
34
|
+
<MDXProvider components={components as MDXProviderComponents}>
|
|
35
|
+
{children}
|
|
36
|
+
</MDXProvider>
|
|
34
37
|
</GraphQLPlaygroundProvider>
|
|
35
38
|
);
|
|
36
39
|
};
|
|
@@ -30,11 +30,16 @@ const isHeading = (component: unknown): component is HeadingElement =>
|
|
|
30
30
|
const wrapperToToc = ({ children }: StackChildrenProps): Toc =>
|
|
31
31
|
Children.toArray(children)
|
|
32
32
|
.filter(isHeading)
|
|
33
|
-
.map((
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
.map((incorrectlyTypedChild) => {
|
|
34
|
+
// TypeScript isn't respecting our `isHeading` type guard here ☹️
|
|
35
|
+
const child = incorrectlyTypedChild as unknown as HeadingElement;
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
children: child.props.children,
|
|
39
|
+
id: child.props.id,
|
|
40
|
+
level: headingToLevel(child),
|
|
41
|
+
};
|
|
42
|
+
});
|
|
38
43
|
|
|
39
44
|
export const TocRenderer = ({
|
|
40
45
|
children: render,
|