@m13v/seo-components 0.7.0 → 0.7.1
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": "@m13v/seo-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "39 animated React components for programmatic SEO pages. Remotion video, Magic UI style animations, trust signals, JSON-LD helpers. Teal/cyan brand, light-theme only.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -17,7 +17,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
|
|
17
17
|
/* ------------------------------------------------------------------ */
|
|
18
18
|
|
|
19
19
|
function capture(event: string, props?: Record<string, unknown>) {
|
|
20
|
-
const w = typeof window !== "undefined" ? (window as Record<string, unknown>) : null;
|
|
20
|
+
const w = typeof window !== "undefined" ? (window as unknown as Record<string, unknown>) : null;
|
|
21
21
|
const ph = w?.posthog as
|
|
22
22
|
| { capture?: (e: string, p?: Record<string, unknown>) => void; __loaded?: boolean }
|
|
23
23
|
| undefined;
|
|
@@ -26,7 +26,7 @@ function capture(event: string, props?: Record<string, unknown>) {
|
|
|
26
26
|
|
|
27
27
|
function onPosthogLoaded(fn: () => void) {
|
|
28
28
|
if (typeof window === "undefined") return;
|
|
29
|
-
const w = window as Record<string, unknown>;
|
|
29
|
+
const w = window as unknown as Record<string, unknown>;
|
|
30
30
|
const ph = w.posthog as { __loaded?: boolean } | undefined;
|
|
31
31
|
if (ph?.__loaded) {
|
|
32
32
|
fn();
|