@apify/ui-library 1.123.0 → 1.124.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/src/components/readme_renderer/table_of_contents.d.ts.map +1 -1
- package/dist/src/components/readme_renderer/table_of_contents.js +5 -1
- package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
- package/dist/src/components/store/store_actor_header.d.ts +1 -1
- package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
- package/dist/src/components/store/store_actor_header.js +2 -1
- package/dist/src/components/store/store_actor_header.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/readme_renderer/table_of_contents.tsx +13 -9
- package/src/components/store/store_actor_header.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.124.0",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"src",
|
|
66
66
|
"style"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ff2c20e23c4cf3a03725bd4b5f293d9f121174a3"
|
|
69
69
|
}
|
|
@@ -250,15 +250,19 @@ const TableOfContentsComponent = ({
|
|
|
250
250
|
return input;
|
|
251
251
|
}]}
|
|
252
252
|
components={{
|
|
253
|
-
a: ({ children }) =>
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
a: ({ children }) => {
|
|
254
|
+
const { search } = window.location;
|
|
255
|
+
const hash = `#${slugifyHeadingChildren(children)}`;
|
|
256
|
+
return (
|
|
257
|
+
<StyledTOCLink
|
|
258
|
+
forwardedAs={Link}
|
|
259
|
+
to={`${search}${hash}`}
|
|
260
|
+
py={'space4'}
|
|
261
|
+
>
|
|
262
|
+
{children}
|
|
263
|
+
</StyledTOCLink>
|
|
264
|
+
);
|
|
265
|
+
},
|
|
262
266
|
code: ({ children }) => (
|
|
263
267
|
<code className="inline-code">{children}</code>
|
|
264
268
|
),
|
|
@@ -2,7 +2,8 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
import { StarEmptyIcon, WarningTriangleIcon } from '@apify/ui-icons';
|
|
4
4
|
|
|
5
|
-
import { Badge, Box, type BoxProps, Heading, Text
|
|
5
|
+
import { Badge, Box, type BoxProps, Heading, Text } from '../../components/index.js';
|
|
6
|
+
import { theme } from '../../design_system/theme.js';
|
|
6
7
|
import { ActorAvatar, actorAvatarClassnames } from '../avatar/actor_avatar.js';
|
|
7
8
|
|
|
8
9
|
const storeActorHeaderClassNames = {
|