@apify/docs-theme 1.0.201 → 1.0.203
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,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useState } from 'react';
|
|
1
|
+
import React, { useState } from 'react';
|
|
3
2
|
|
|
4
3
|
import styles from '../styles.module.css';
|
|
5
4
|
|
|
6
5
|
// Custom component for button text
|
|
7
|
-
function ButtonText({ isLoading, isCopied }
|
|
6
|
+
function ButtonText({ isLoading, isCopied }) {
|
|
8
7
|
if (isLoading) {
|
|
9
8
|
return 'Copying...';
|
|
10
9
|
}
|
|
@@ -19,8 +18,8 @@ export default function CopyForLLM() {
|
|
|
19
18
|
const [isCopied, setIsCopied] = useState(false);
|
|
20
19
|
|
|
21
20
|
const handleCopy = async () => {
|
|
22
|
-
if (
|
|
23
|
-
|
|
21
|
+
if (window.analytics) {
|
|
22
|
+
window.analytics.track('Clicked', {
|
|
24
23
|
app: 'docs',
|
|
25
24
|
button_text: 'Copy for LLM',
|
|
26
25
|
element: 'llm-buttons.copyForLLM',
|
|
@@ -4,8 +4,8 @@ import styles from '../styles.module.css';
|
|
|
4
4
|
|
|
5
5
|
export default function ViewAsMarkdown() {
|
|
6
6
|
const handleClick = () => {
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (window.analytics) {
|
|
8
|
+
window.analytics.track('Clicked', {
|
|
9
9
|
app: 'docs',
|
|
10
10
|
button_text: 'View as Markdown',
|
|
11
11
|
element: 'llm-buttons.viewAsMarkdown',
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.llmButtonIconBackgroundMarkdown {
|
|
38
|
-
background-image: url('/img/markdown.svg');
|
|
38
|
+
background-image: url('https://docs.apify.com/img/markdown.svg');
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.llmButtonIconBackgroundCopy {
|
|
43
|
-
background-image: url('/img/copy.svg');
|
|
43
|
+
background-image: url('https://docs.apify.com/img/copy.svg');
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* Dark theme adjustments */
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
[data-theme='dark'] .llmButtonIconBackgroundMarkdown {
|
|
52
|
-
background-image: url('/img/markdown-dark-theme.svg');
|
|
52
|
+
background-image: url('https://docs.apify.com/img/markdown-dark-theme.svg');
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
[data-theme='dark'] .llmButtonIconBackgroundCopy {
|
|
56
|
-
background-image: url('/img/copy-dark-theme.svg');
|
|
57
|
-
}
|
|
56
|
+
background-image: url('https://docs.apify.com/img/copy-dark-theme.svg');
|
|
57
|
+
}
|
|
File without changes
|