@apify/docs-theme 1.0.213 → 1.0.215

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/docs-theme",
3
- "version": "1.0.213",
3
+ "version": "1.0.215",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -20,6 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@apify/docs-search-modal": "^1.2.2",
23
+ "@apify/ui-library": "^1.97.2",
24
+ "@apify/ui-icons": "^1.19.0",
23
25
  "@docusaurus/theme-common": "^3.7.0",
24
26
  "@stackql/docusaurus-plugin-hubspot": "^1.1.0",
25
27
  "algoliasearch": "^5.19.0",
@@ -2,7 +2,6 @@ import clsx from 'clsx';
2
2
  import React, { useCallback, useState } from 'react';
3
3
 
4
4
  import {
5
- AnthropicIcon,
6
5
  ChatGptIcon,
7
6
  CheckIcon,
8
7
  ChevronDownIcon,
@@ -38,13 +37,6 @@ const DROPDOWN_OPTIONS = [
38
37
  Icon: ChatGptIcon,
39
38
  value: 'openInChatGPT',
40
39
  },
41
- {
42
- label: 'Open in Claude',
43
- description: 'Ask questions about this page',
44
- showExternalIcon: true,
45
- Icon: AnthropicIcon,
46
- value: 'openInClaude',
47
- },
48
40
  {
49
41
  label: 'Open in Perplexity',
50
42
  description: 'Ask questions about this page',
@@ -78,27 +70,6 @@ const onOpenInChatGPTClick = () => {
78
70
  }
79
71
  };
80
72
 
81
- const onOpenInClaudeClick = () => {
82
- if (window.analytics) {
83
- window.analytics.track('Clicked', {
84
- app: 'docs',
85
- button_text: 'Open in Claude',
86
- element: 'llm-buttons.openInClaude',
87
- });
88
- }
89
-
90
- const prompt = getPrompt(window.location.href);
91
-
92
- try {
93
- window.open(
94
- `https://claude.ai/new?q=${encodeURIComponent(prompt)}`,
95
- '_blank',
96
- );
97
- } catch (error) {
98
- console.error('Error opening Claude:', error);
99
- }
100
- };
101
-
102
73
  const onOpenInPerplexityClick = () => {
103
74
  if (window.analytics) {
104
75
  window.analytics.track('Clicked', {
@@ -256,9 +227,6 @@ export default function LLMButtons({ isApiReferencePage = false }) {
256
227
  case 'openInChatGPT':
257
228
  onOpenInChatGPTClick();
258
229
  break;
259
- case 'openInClaude':
260
- onOpenInClaudeClick();
261
- break;
262
230
  case 'openInPerplexity':
263
231
  onOpenInPerplexityClick();
264
232
  break;