@dotcms/react
Advanced tools
+1
-1
| { | ||
| "name": "@dotcms/react", | ||
| "version": "1.2.1-next.13", | ||
| "version": "1.2.1-next.14", | ||
| "peerDependencies": { | ||
@@ -5,0 +5,0 @@ "react": ">=18", |
| import { DotCMSBasicContentlet } from '@dotcms/types'; | ||
| /** | ||
| * CSS class name for contentlet elements | ||
| */ | ||
| export declare const CONTENTLET_CLASS = "dotcms-contentlet"; | ||
| /** | ||
| * @internal | ||
@@ -4,0 +8,0 @@ * |
| /** | ||
| * @internal | ||
| * React hook that checks whether DotCMS Analytics is active. | ||
| * | ||
| * Uses useSyncExternalStore to subscribe to analytics state changes via custom events: | ||
| * - `dotcms:analytics:ready`: Fired when Analytics initializes | ||
| * - `dotcms:analytics:cleanup`: Fired on page unload | ||
| * | ||
| * Components automatically re-render when analytics state changes. Works regardless | ||
| * of initialization order and returns false during SSR. | ||
| * | ||
| * @returns {boolean} True if analytics is active, false otherwise | ||
| * | ||
| * @example | ||
| * ```tsx | ||
| * function Contentlet({ item }) { | ||
| * const isAnalyticsActive = useIsAnalyticsActive() | ||
| * | ||
| * const attrs = isAnalyticsActive | ||
| * ? { 'data-dot-analytics-id': item.id } | ||
| * : {} | ||
| * | ||
| * return <div {...attrs}>{item.title}</div> | ||
| * } | ||
| * ``` | ||
| */ | ||
| export declare const useIsAnalyticsActive: () => boolean; |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
55
-5.17%297790
-5.54%35
-2.78%7240
-6.45%