@apify/docs-theme 1.0.201 → 1.0.202

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.201",
3
+ "version": "1.0.202",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -1,10 +1,9 @@
1
- import type React from 'react';
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 }: { isLoading: boolean; isCopied: boolean }) {
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 ((window as any).analytics) {
23
- (window as any).analytics.track('Clicked', {
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 ((window as any).analytics) {
8
- (window as any).analytics.track('Clicked', {
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',
File without changes