@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "1.123.0",
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": "3c83585389c9e8c4e8449ae090dad74640cfaf23"
68
+ "gitHead": "ff2c20e23c4cf3a03725bd4b5f293d9f121174a3"
69
69
  }
@@ -250,15 +250,19 @@ const TableOfContentsComponent = ({
250
250
  return input;
251
251
  }]}
252
252
  components={{
253
- a: ({ children }) => (
254
- <StyledTOCLink
255
- forwardedAs={Link}
256
- to={`#${slugifyHeadingChildren(children)}`}
257
- py={'space4'}
258
- >
259
- {children}
260
- </StyledTOCLink>
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, theme } from '../../index.js';
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 = {