scoobie 13.0.6 → 13.0.9
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 +9 -10
- package/remark/mermaid/style.css +5 -5
- package/src/components/TocRenderer.tsx +10 -5
- package/styles/index.ts +3 -2
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.9",
|
|
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.14.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
|
-
"semantic-release": "19.0.
|
|
47
|
-
"sku": "11.4.
|
|
45
|
+
"semantic-release": "19.0.3",
|
|
46
|
+
"sku": "11.4.3",
|
|
48
47
|
"webpack": "5.72.0"
|
|
49
48
|
},
|
|
50
49
|
"files": [
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
],
|
|
58
57
|
"peerDependencies": {
|
|
59
58
|
"@mermaid-js/mermaid-cli": ">= 8.13.7 < 10",
|
|
60
|
-
"braid-design-system": ">= 31.
|
|
59
|
+
"braid-design-system": ">= 31.14.0",
|
|
61
60
|
"react": ">= 17 < 19",
|
|
62
61
|
"react-router-dom": ">= 5.3.0",
|
|
63
62
|
"sku": ">= 10.13.4 < 12"
|
package/remark/mermaid/style.css
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
/* https://github.com/mermaid-js/mermaid/blob/8.11.5/src/diagrams/er/erRenderer.js#L405-L406 */
|
|
9
9
|
--mermaid-er-label-fill: rgba(255, 255, 255, 0.85);
|
|
10
10
|
|
|
11
|
-
/* https://github.com/seek-oss/braid-design-system/blob/
|
|
12
|
-
--braid-grey-50: #
|
|
13
|
-
--braid-grey-100: #
|
|
11
|
+
/* https://github.com/seek-oss/braid-design-system/blob/v31.14.0/lib/color/palette.ts */
|
|
12
|
+
--braid-grey-50: #f7f8fb;
|
|
13
|
+
--braid-grey-100: #eaecf1;
|
|
14
14
|
--braid-grey-300: #abb3c1;
|
|
15
|
-
--braid-grey-500: #
|
|
15
|
+
--braid-grey-500: #5a6881;
|
|
16
16
|
--braid-yellow-100: #fef8de;
|
|
17
|
-
--braid-yellow-500: #
|
|
17
|
+
--braid-yellow-500: #fdc221;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* shared */
|
|
@@ -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,
|
package/styles/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
1
|
+
// Braid grey.50
|
|
2
|
+
// https://github.com/seek-oss/braid-design-system/blob/v31.14.0/lib/color/palette.ts
|
|
3
|
+
export const codeBackgroundColor = '#F7F8FB';
|
|
3
4
|
|
|
4
5
|
// SEEK's corporate font + GitHub defaults
|
|
5
6
|
export const monospaceFontFamily =
|