@apify/ui-library 1.87.0 → 1.87.2-fixactorissuescomponentsoncl-2f1509.12

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.
Files changed (109) hide show
  1. package/dist/src/components/action_link.d.ts +1 -1
  2. package/dist/src/components/action_link.d.ts.map +1 -1
  3. package/dist/src/components/actor_template_card.d.ts +1 -1
  4. package/dist/src/components/actor_template_card.d.ts.map +1 -1
  5. package/dist/src/components/badge.d.ts +1 -1
  6. package/dist/src/components/badge.d.ts.map +1 -1
  7. package/dist/src/components/badge.js.map +1 -1
  8. package/dist/src/components/banner.d.ts +1 -1
  9. package/dist/src/components/banner.d.ts.map +1 -1
  10. package/dist/src/components/blog_article.d.ts +1 -1
  11. package/dist/src/components/blog_article.d.ts.map +1 -1
  12. package/dist/src/components/box.d.ts +1 -1
  13. package/dist/src/components/box.d.ts.map +1 -1
  14. package/dist/src/components/box.js.map +1 -1
  15. package/dist/src/components/button.d.ts +1 -1
  16. package/dist/src/components/button.d.ts.map +1 -1
  17. package/dist/src/components/button.js.map +1 -1
  18. package/dist/src/components/chip.d.ts +1 -1
  19. package/dist/src/components/chip.d.ts.map +1 -1
  20. package/dist/src/components/chip.js.map +1 -1
  21. package/dist/src/components/code/action_button.d.ts +1 -1
  22. package/dist/src/components/code/action_button.d.ts.map +1 -1
  23. package/dist/src/components/code/code_block/code_block.d.ts +1 -1
  24. package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
  25. package/dist/src/components/code/code_block/code_block.js.map +1 -1
  26. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +1 -1
  27. package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
  28. package/dist/src/components/code/code_block/code_block_with_tabs.js +3 -2
  29. package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
  30. package/dist/src/components/code/inline_code/inline_code.d.ts +1 -1
  31. package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
  32. package/dist/src/components/floating/menu.d.ts +1 -1
  33. package/dist/src/components/floating/menu.d.ts.map +1 -1
  34. package/dist/src/components/floating/menu.js.map +1 -1
  35. package/dist/src/components/link.d.ts +1 -1
  36. package/dist/src/components/link.d.ts.map +1 -1
  37. package/dist/src/components/link.js.map +1 -1
  38. package/dist/src/components/message.d.ts +1 -1
  39. package/dist/src/components/message.d.ts.map +1 -1
  40. package/dist/src/components/simple_markdown/simple_markdown.d.ts +1 -1
  41. package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
  42. package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
  43. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +1 -1
  44. package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
  45. package/dist/src/components/tabs/tab.d.ts +1 -1
  46. package/dist/src/components/tabs/tab.d.ts.map +1 -1
  47. package/dist/src/components/tabs/tabs.d.ts +1 -1
  48. package/dist/src/components/tabs/tabs.d.ts.map +1 -1
  49. package/dist/src/components/tabs/tabs.js.map +1 -1
  50. package/dist/src/components/tag.d.ts +2 -1
  51. package/dist/src/components/tag.d.ts.map +1 -1
  52. package/dist/src/components/tag.js.map +1 -1
  53. package/dist/src/components/text/heading_content.d.ts +1 -1
  54. package/dist/src/components/text/heading_content.d.ts.map +1 -1
  55. package/dist/src/components/text/heading_marketing.d.ts +1 -1
  56. package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
  57. package/dist/src/components/text/heading_shared.d.ts +1 -1
  58. package/dist/src/components/text/heading_shared.d.ts.map +1 -1
  59. package/dist/src/components/text/text_base.d.ts +1 -1
  60. package/dist/src/components/text/text_base.d.ts.map +1 -1
  61. package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
  62. package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
  63. package/dist/src/components/tile/vertical_tile.d.ts +1 -1
  64. package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
  65. package/dist/src/components/to_consolidate/card.d.ts +1 -1
  66. package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
  67. package/dist/src/components/to_consolidate/card.js.map +1 -1
  68. package/dist/src/components/to_consolidate/tab_number_chip.d.ts +1 -1
  69. package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -1
  70. package/dist/src/design_system/colors/colors.stories.d.ts.map +1 -1
  71. package/dist/src/design_system/colors/colors.stories.js +0 -1
  72. package/dist/src/design_system/colors/colors.stories.js.map +1 -1
  73. package/dist/src/ui_dependency_provider.d.ts +1 -1
  74. package/dist/src/ui_dependency_provider.d.ts.map +1 -1
  75. package/dist/src/ui_dependency_provider.js.map +1 -1
  76. package/dist/tsconfig.build.tsbuildinfo +1 -1
  77. package/package.json +3 -3
  78. package/src/components/action_link.tsx +1 -1
  79. package/src/components/actor_template_card.tsx +1 -1
  80. package/src/components/badge.stories.jsx +6 -3
  81. package/src/components/badge.tsx +2 -1
  82. package/src/components/banner.tsx +1 -1
  83. package/src/components/blog_article.tsx +1 -1
  84. package/src/components/box.tsx +2 -1
  85. package/src/components/button.stories.jsx +6 -3
  86. package/src/components/button.tsx +2 -1
  87. package/src/components/chip.tsx +2 -1
  88. package/src/components/code/action_button.tsx +1 -1
  89. package/src/components/code/code_block/code_block.tsx +2 -1
  90. package/src/components/code/code_block/code_block_with_tabs.tsx +4 -9
  91. package/src/components/code/inline_code/inline_code.tsx +1 -1
  92. package/src/components/floating/menu.tsx +2 -1
  93. package/src/components/link.tsx +2 -1
  94. package/src/components/message.tsx +1 -1
  95. package/src/components/simple_markdown/simple_markdown.tsx +2 -1
  96. package/src/components/simple_markdown/simple_markdown_components.tsx +1 -1
  97. package/src/components/tabs/tab.tsx +1 -1
  98. package/src/components/tabs/tabs.tsx +2 -1
  99. package/src/components/tag.tsx +2 -1
  100. package/src/components/text/heading_content.tsx +1 -1
  101. package/src/components/text/heading_marketing.tsx +1 -1
  102. package/src/components/text/heading_shared.tsx +1 -1
  103. package/src/components/text/text_base.tsx +1 -1
  104. package/src/components/tile/horizontal_tile.tsx +1 -1
  105. package/src/components/tile/vertical_tile.tsx +1 -1
  106. package/src/components/to_consolidate/card.tsx +2 -1
  107. package/src/components/to_consolidate/tab_number_chip.tsx +1 -1
  108. package/src/design_system/colors/colors.stories.tsx +0 -1
  109. package/src/ui_dependency_provider.tsx +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "1.87.0",
3
+ "version": "1.87.2-fixactorissuescomponentsoncl-2f1509.12+95cb0678c7c",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "It's not nice, but helps us to get around the problem of multiple react instances."
27
27
  ],
28
28
  "dependencies": {
29
- "@apify/ui-icons": "^1.15.0",
29
+ "@apify/ui-icons": "^1.15.1",
30
30
  "@floating-ui/react": "^0.26.2",
31
31
  "@react-hook/resize-observer": "^2.0.2",
32
32
  "clsx": "^2.0.0",
@@ -66,5 +66,5 @@
66
66
  "src",
67
67
  "style"
68
68
  ],
69
- "gitHead": "c80be45a31239ca261a853575b916283723a252a"
69
+ "gitHead": "95cb0678c7c6b046e97e7d2dc3f55395dbe0276e"
70
70
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { ArrowLeftIcon, ArrowRightIcon } from '@apify/ui-icons';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../design_system/theme.js';
@@ -1,9 +1,12 @@
1
- import { PeopleIcon } from '@apify/ui-icons';
1
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
2
  import PropTypes from 'prop-types';
3
3
  import React from 'react';
4
4
  import styled from 'styled-components';
5
- import { Badge, BADGE_SIZES, BADGE_VARIANTS } from './badge';
6
- import { SHARED_TEXT_TYPES } from './text';
5
+
6
+ import { PeopleIcon } from '@apify/ui-icons';
7
+
8
+ import { Badge, BADGE_SIZES, BADGE_VARIANTS } from './badge.jsx';
9
+ import { SHARED_TEXT_TYPES } from './text.jsx';
7
10
 
8
11
  export default {
9
12
  title: 'UI-Library/Badge',
@@ -1,4 +1,5 @@
1
- import React, { forwardRef } from 'react';
1
+ import type React from 'react';
2
+ import { forwardRef } from 'react';
2
3
  import styled, { css, type FlattenSimpleInterpolation } from 'styled-components';
3
4
 
4
5
  import type { IconComponent, IconSize } from '@apify/ui-icons';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import { theme } from '../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { ArrowRightIcon } from '@apify/ui-icons';
@@ -1,4 +1,5 @@
1
- import React, { forwardRef } from 'react';
1
+ import type React from 'react';
2
+ import { forwardRef } from 'react';
2
3
  import styled, { css } from 'styled-components';
3
4
 
4
5
  import { theme } from '../design_system/theme.js';
@@ -1,8 +1,11 @@
1
- import { X16 } from '@apify/icons';
2
1
  import React from 'react';
3
2
  import styled from 'styled-components';
4
- import { Button } from './button';
5
- import { theme } from '../design_system/theme';
3
+
4
+ // eslint-disable-next-line import/no-extraneous-dependencies
5
+ import { X16 } from '@apify/icons';
6
+
7
+ import { theme } from '../design_system/theme.jsx';
8
+ import { Button } from './button.jsx';
6
9
 
7
10
  export default {
8
11
  title: 'UI-Library/Button',
@@ -1,5 +1,6 @@
1
1
  import type { AriaAttributes } from 'react';
2
- import React, { forwardRef } from 'react';
2
+ import type React from 'react';
3
+ import { forwardRef } from 'react';
3
4
  import styled, { css } from 'styled-components';
4
5
 
5
6
  import { ExternalLinkIcon } from '@apify/ui-icons';
@@ -1,6 +1,7 @@
1
1
  import clsx from 'clsx';
2
2
  import type { FC } from 'react';
3
- import React, { forwardRef } from 'react';
3
+ import type React from 'react';
4
+ import { forwardRef } from 'react';
4
5
  import styled, { css } from 'styled-components';
5
6
 
6
7
  import type { ValueOf } from '@apify-packages/types';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import { CheckIcon, CopyIcon } from '@apify/ui-icons';
@@ -1,5 +1,6 @@
1
1
  import clsx from 'clsx';
2
- import React, { useMemo, useRef, useState } from 'react';
2
+ import type React from 'react';
3
+ import { useMemo, useRef, useState } from 'react';
3
4
 
4
5
  import type { RegularBoxProps } from '../../box.js';
5
6
  import { ColorWheelGradient } from '../../color_wheel_gradient.js';
@@ -1,5 +1,6 @@
1
1
  import clsx from 'clsx';
2
- import React from 'react';
2
+ import _ from 'lodash';
3
+ import type React from 'react';
3
4
  import styled from 'styled-components';
4
5
 
5
6
  import { theme } from '../../../design_system/theme.js';
@@ -206,7 +207,7 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
206
207
  const commonProps = {
207
208
  className: clsx(CODE_BLOCK_WITH_TABS_CLASSNAMES.TAB, { selected }),
208
209
  'data-test': `code-block-tab-${tab.key}`,
209
- onClick: tab.onClick,
210
+ ..._.omit(tab, ['bashCommandsStart', 'content', 'languageOverride']),
210
211
  };
211
212
  const children = (
212
213
  <>
@@ -221,13 +222,7 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
221
222
  // if the tab has a 'to' prop, render a Link component
222
223
  if (tab.to) {
223
224
  return (
224
- <Link
225
- {...commonProps}
226
- to={tab.to}
227
- rel={tab.rel}
228
- target={tab.target}
229
- key={tab.key}
230
- >
225
+ <Link {...commonProps} key={tab.key} to={tab.to}>
231
226
  {children}
232
227
  </Link>
233
228
  );
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import { CheckIcon, CopyIcon } from '@apify/ui-icons';
@@ -9,7 +9,8 @@ import {
9
9
  useTypeahead,
10
10
  } from '@floating-ui/react';
11
11
  import clsx from 'clsx';
12
- import React, {
12
+ import type React from 'react';
13
+ import {
13
14
  useMemo,
14
15
  useRef,
15
16
  useState,
@@ -1,6 +1,7 @@
1
1
  import clsx from 'clsx';
2
2
  import { createPath, type Path } from 'history';
3
- import React, { forwardRef } from 'react';
3
+ import type React from 'react';
4
+ import { forwardRef } from 'react';
4
5
  import styled from 'styled-components';
5
6
 
6
7
  import { ExternalLinkIcon } from '@apify/ui-icons';
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import type { ReactNode } from 'react';
3
- import React from 'react';
3
+ import type React from 'react';
4
4
  import styled, { css } from 'styled-components';
5
5
 
6
6
  import type { IconComponent as IconComponentType } from '@apify/ui-icons';
@@ -1,5 +1,6 @@
1
1
  import type { Element, Root, Text as TextNode } from 'hast';
2
- import React, { useCallback, useMemo, useRef } from 'react';
2
+ import type React from 'react';
3
+ import { useCallback, useMemo, useRef } from 'react';
3
4
  import type { Components } from 'react-markdown';
4
5
  import ReactMarkdown, { uriTransformer } from 'react-markdown';
5
6
  import type { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown.js';
@@ -1,5 +1,5 @@
1
1
  import qs from 'query-string';
2
- import React from 'react';
2
+ import type React from 'react';
3
3
  import type { CodeProps, ReactMarkdownProps } from 'react-markdown/lib/ast-to-react.js';
4
4
  import styled from 'styled-components';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import { createPath } from 'history';
3
- import React from 'react';
3
+ import type React from 'react';
4
4
  import type { FlattenSimpleInterpolation } from 'styled-components';
5
5
  import styled, { css } from 'styled-components';
6
6
 
@@ -1,4 +1,5 @@
1
- import React, { useCallback, useRef, useState } from 'react';
1
+ import type React from 'react';
2
+ import { useCallback, useRef, useState } from 'react';
2
3
  import type { FlattenSimpleInterpolation } from 'styled-components';
3
4
  import styled, { css } from 'styled-components';
4
5
 
@@ -1,4 +1,5 @@
1
- import React, { type ForwardedRef, forwardRef } from 'react';
1
+ import type React from 'react';
2
+ import { type ForwardedRef, forwardRef } from 'react';
2
3
  import styled, { css, type FlattenSimpleInterpolation } from 'styled-components';
3
4
 
4
5
  import type { IconComponent, IconSize } from '@apify/ui-icons';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
4
  import type { WithTransientProps } from '../../type_utils.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,5 +1,6 @@
1
1
  import clsx from 'clsx';
2
- import React, { forwardRef } from 'react';
2
+ import type React from 'react';
3
+ import { forwardRef } from 'react';
3
4
  import styled, { css } from 'styled-components';
4
5
 
5
6
  import { theme } from '../../design_system/theme.js';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { theme } from '../../design_system/theme.js';
@@ -1,6 +1,5 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- // eslint-disable-next-line import/no-default-export
4
3
  export default {
5
4
  title: 'Design Tokens/Colors',
6
5
  };
@@ -1,4 +1,5 @@
1
- import React, { createContext, useContext } from 'react';
1
+ import type React from 'react';
2
+ import { createContext, useContext } from 'react';
2
3
 
3
4
  import type { UiThemeOption } from './design_system/theme.js';
4
5