@temps-sdk/react-analytics 0.0.1-beta.3 → 0.0.1-beta.31

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.
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ import { useEffect, useRef } from "react";
3
+ import { EngagementTracker } from "./EngagementTracker";
4
+ import { useTempsAnalytics } from "./Provider";
5
+ /**
6
+ * Hook to manually control engagement tracking for specific components or pages.
7
+ * This is useful when you want fine-grained control over engagement tracking
8
+ * or need to track engagement for specific sections of your app.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * function ArticlePage() {
13
+ * const { engagementData } = useEngagementTracking({
14
+ * heartbeatInterval: 15000, // Send heartbeat every 15 seconds
15
+ * engagementThreshold: 5000, // Consider engaged after 5 seconds
16
+ * onEngagementUpdate: (data) => {
17
+ * console.log('Engagement updated:', data);
18
+ * }
19
+ * });
20
+ *
21
+ * return <article>...</article>;
22
+ * }
23
+ * ```
24
+ */
25
+ export function useEngagementTracking(options = {}) {
26
+ const analytics = useTempsAnalytics();
27
+ const trackerRef = useRef(null);
28
+ const engagementDataRef = useRef({
29
+ engagement_time_seconds: 0,
30
+ total_time_seconds: 0,
31
+ heartbeat_count: 0,
32
+ is_engaged: false,
33
+ is_visible: true,
34
+ time_since_last_activity: 0,
35
+ });
36
+ const { enabled = true, onEngagementUpdate, onPageLeave, ...trackerOptions } = options;
37
+ useEffect(() => {
38
+ if (!enabled || !analytics.enabled) {
39
+ return;
40
+ }
41
+ // Create tracker instance
42
+ trackerRef.current = new EngagementTracker({
43
+ ...trackerOptions,
44
+ onHeartbeat: (data) => {
45
+ engagementDataRef.current = data;
46
+ onEngagementUpdate?.(data);
47
+ },
48
+ onPageLeave: (data) => {
49
+ engagementDataRef.current = data;
50
+ onPageLeave?.(data);
51
+ },
52
+ });
53
+ // Cleanup on unmount
54
+ return () => {
55
+ if (trackerRef.current) {
56
+ trackerRef.current.destroy();
57
+ trackerRef.current = null;
58
+ }
59
+ };
60
+ }, [enabled, analytics.enabled]);
61
+ return {
62
+ engagementData: engagementDataRef.current,
63
+ isTracking: Boolean(trackerRef.current),
64
+ };
65
+ }
@@ -0,0 +1,13 @@
1
+ import type { JsonValue } from "./types";
2
+ export interface UsePageLeaveOptions {
3
+ /** Custom event name. Defaults to "page_leave" */
4
+ eventName?: string;
5
+ /** Additional data to send with the page leave event */
6
+ eventData?: Record<string, JsonValue>;
7
+ /** Whether to enable page leave tracking. Defaults to true */
8
+ enabled?: boolean;
9
+ }
10
+ export declare function usePageLeave(options?: UsePageLeaveOptions): {
11
+ triggerPageLeave: () => Promise<void> | undefined;
12
+ };
13
+ //# sourceMappingURL=usePageLeave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePageLeave.d.ts","sourceRoot":"","sources":["../src/usePageLeave.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB;;EA2E7D"}
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import { useEffect, useRef } from "react";
3
+ import { useTempsAnalytics } from "./Provider";
4
+ import { sendAnalyticsReliable } from "./utils";
5
+ import { DEFAULT_BASE_PATH } from "./constants";
6
+ export function usePageLeave(options = {}) {
7
+ const { eventName = "page_leave", eventData = {}, enabled = true } = options;
8
+ const { enabled: analyticsEnabled, trackEvent } = useTempsAnalytics();
9
+ const hasTrackedRef = useRef(false);
10
+ const startTimeRef = useRef();
11
+ useEffect(() => {
12
+ startTimeRef.current = Date.now();
13
+ hasTrackedRef.current = false;
14
+ }, []);
15
+ useEffect(() => {
16
+ if (!enabled || !analyticsEnabled)
17
+ return;
18
+ const trackPageLeave = () => {
19
+ if (hasTrackedRef.current)
20
+ return;
21
+ hasTrackedRef.current = true;
22
+ const timeOnPage = startTimeRef.current ? Date.now() - startTimeRef.current : 0;
23
+ const finalEventData = {
24
+ ...eventData,
25
+ time_on_page_ms: timeOnPage,
26
+ timestamp: new Date().toISOString(),
27
+ url: window.location.href,
28
+ referrer: document.referrer,
29
+ };
30
+ // Use reliable sending method that tries sendBeacon first
31
+ sendAnalyticsReliable("event", {
32
+ event_name: eventName,
33
+ request_query: window.location.search,
34
+ request_path: window.location.pathname,
35
+ domain: window.location.hostname,
36
+ event_data: finalEventData,
37
+ }, DEFAULT_BASE_PATH);
38
+ };
39
+ // Use pagehide as primary (most reliable), with beforeunload as fallback
40
+ const handlePageLeave = () => trackPageLeave();
41
+ // pagehide is the most reliable for modern browsers
42
+ window.addEventListener("pagehide", handlePageLeave);
43
+ // beforeunload as fallback for older browsers
44
+ window.addEventListener("beforeunload", handlePageLeave);
45
+ return () => {
46
+ window.removeEventListener("pagehide", handlePageLeave);
47
+ window.removeEventListener("beforeunload", handlePageLeave);
48
+ };
49
+ }, [enabled, analyticsEnabled, eventName, eventData]);
50
+ // Manual trigger function
51
+ const triggerPageLeave = () => {
52
+ if (!enabled || !analyticsEnabled || hasTrackedRef.current)
53
+ return;
54
+ hasTrackedRef.current = true;
55
+ const timeOnPage = startTimeRef.current ? Date.now() - startTimeRef.current : 0;
56
+ return trackEvent(eventName, {
57
+ ...eventData,
58
+ time_on_page_ms: timeOnPage,
59
+ timestamp: new Date().toISOString(),
60
+ url: window.location.href,
61
+ referrer: document.referrer,
62
+ manual_trigger: true,
63
+ });
64
+ };
65
+ return { triggerPageLeave };
66
+ }
@@ -0,0 +1,23 @@
1
+ import type React from "react";
2
+ interface SessionRecordingContextValue {
3
+ isRecordingEnabled: boolean;
4
+ enableRecording: () => void;
5
+ disableRecording: () => void;
6
+ toggleRecording: () => void;
7
+ sessionId: string | null;
8
+ }
9
+ interface SessionRecordingProviderProps {
10
+ children: React.ReactNode;
11
+ defaultEnabled?: boolean;
12
+ persistPreference?: boolean;
13
+ }
14
+ export declare function SessionRecordingProvider({ children, defaultEnabled, persistPreference }: SessionRecordingProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function useSessionRecording(): SessionRecordingContextValue;
16
+ export declare function useSessionRecordingControl(defaultEnabled?: boolean): {
17
+ isEnabled: boolean;
18
+ enable: () => void;
19
+ disable: () => void;
20
+ toggle: () => void;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=useSessionRecording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSessionRecording.d.ts","sourceRoot":"","sources":["../src/useSessionRecording.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,4BAA4B;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAID,UAAU,6BAA6B;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,cAAsB,EACtB,iBAAwB,EACzB,EAAE,6BAA6B,2CA8D/B;AAED,wBAAgB,mBAAmB,IAAI,4BAA4B,CAMlE;AAGD,wBAAgB,0BAA0B,CAAC,cAAc,UAAQ;;;;;EAyChE"}
@@ -0,0 +1,99 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useState, useEffect, useCallback, createContext, useContext, useMemo } from "react";
4
+ const SessionRecordingContext = createContext(undefined);
5
+ export function SessionRecordingProvider({ children, defaultEnabled = false, persistPreference = true }) {
6
+ const [isRecordingEnabled, setIsRecordingEnabled] = useState(() => {
7
+ if (!persistPreference)
8
+ return defaultEnabled;
9
+ if (typeof window !== "undefined" && typeof localStorage !== "undefined") {
10
+ const stored = localStorage.getItem("temps_session_recording_enabled");
11
+ if (stored !== null) {
12
+ return stored === "true";
13
+ }
14
+ }
15
+ return defaultEnabled;
16
+ });
17
+ const [sessionId, setSessionId] = useState(null);
18
+ useEffect(() => {
19
+ if (typeof localStorage !== "undefined") {
20
+ const storedSessionId = localStorage.getItem("currentRecordingSessionId");
21
+ setSessionId(storedSessionId);
22
+ }
23
+ }, [isRecordingEnabled]);
24
+ const enableRecording = useCallback(() => {
25
+ setIsRecordingEnabled(true);
26
+ if (persistPreference && typeof localStorage !== "undefined") {
27
+ localStorage.setItem("temps_session_recording_enabled", "true");
28
+ }
29
+ }, [persistPreference]);
30
+ const disableRecording = useCallback(() => {
31
+ setIsRecordingEnabled(false);
32
+ if (persistPreference && typeof localStorage !== "undefined") {
33
+ localStorage.setItem("temps_session_recording_enabled", "false");
34
+ }
35
+ }, [persistPreference]);
36
+ const toggleRecording = useCallback(() => {
37
+ setIsRecordingEnabled(prev => {
38
+ const newValue = !prev;
39
+ if (persistPreference && typeof localStorage !== "undefined") {
40
+ localStorage.setItem("temps_session_recording_enabled", String(newValue));
41
+ }
42
+ return newValue;
43
+ });
44
+ }, [persistPreference]);
45
+ const value = useMemo(() => ({
46
+ isRecordingEnabled,
47
+ enableRecording,
48
+ disableRecording,
49
+ toggleRecording,
50
+ sessionId,
51
+ }), [isRecordingEnabled, enableRecording, disableRecording, toggleRecording, sessionId]);
52
+ return (_jsx(SessionRecordingContext.Provider, { value: value, children: children }));
53
+ }
54
+ export function useSessionRecording() {
55
+ const context = useContext(SessionRecordingContext);
56
+ if (!context) {
57
+ throw new Error("useSessionRecording must be used within a SessionRecordingProvider");
58
+ }
59
+ return context;
60
+ }
61
+ // Standalone hook for controlling session recording without provider
62
+ export function useSessionRecordingControl(defaultEnabled = false) {
63
+ const [isEnabled, setIsEnabled] = useState(() => {
64
+ if (typeof window !== "undefined" && typeof localStorage !== "undefined") {
65
+ const stored = localStorage.getItem("temps_session_recording_enabled");
66
+ if (stored !== null) {
67
+ return stored === "true";
68
+ }
69
+ }
70
+ return defaultEnabled;
71
+ });
72
+ const enable = useCallback(() => {
73
+ setIsEnabled(true);
74
+ if (typeof localStorage !== "undefined") {
75
+ localStorage.setItem("temps_session_recording_enabled", "true");
76
+ }
77
+ }, []);
78
+ const disable = useCallback(() => {
79
+ setIsEnabled(false);
80
+ if (typeof localStorage !== "undefined") {
81
+ localStorage.setItem("temps_session_recording_enabled", "false");
82
+ }
83
+ }, []);
84
+ const toggle = useCallback(() => {
85
+ setIsEnabled(prev => {
86
+ const newValue = !prev;
87
+ if (typeof localStorage !== "undefined") {
88
+ localStorage.setItem("temps_session_recording_enabled", String(newValue));
89
+ }
90
+ return newValue;
91
+ });
92
+ }, []);
93
+ return {
94
+ isEnabled,
95
+ enable,
96
+ disable,
97
+ toggle,
98
+ };
99
+ }
@@ -0,0 +1,8 @@
1
+ export interface UseSpeedAnalyticsOptions {
2
+ /** Base endpoint path. Defaults to `/_temps`. */
3
+ basePath?: string;
4
+ /** Set to true to disable speed analytics. Defaults to false. */
5
+ disabled?: boolean;
6
+ }
7
+ export declare function useSpeedAnalytics(options?: UseSpeedAnalyticsOptions): void;
8
+ //# sourceMappingURL=useSpeedAnalytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSpeedAnalytics.d.ts","sourceRoot":"","sources":["../src/useSpeedAnalytics.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,wBAAwB;IACxC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,QAoFvE"}
@@ -0,0 +1,79 @@
1
+ 'use client';
2
+ import { useEffect } from 'react';
3
+ import { onCLS, onFID, onLCP, onTTFB, onFCP, onINP } from 'web-vitals';
4
+ import { sendAnalytics } from './utils';
5
+ export function useSpeedAnalytics(options = {}) {
6
+ const { basePath = '/_temps', disabled = false } = options;
7
+ useEffect(() => {
8
+ if (disabled || typeof window === 'undefined')
9
+ return;
10
+ const allMetrics = {
11
+ ttfb: null,
12
+ lcp: null,
13
+ fid: null,
14
+ fcp: null,
15
+ cls: null,
16
+ inp: null,
17
+ };
18
+ let hasSent = false;
19
+ let timeout = null;
20
+ const sendAllMetrics = () => {
21
+ if (hasSent)
22
+ return;
23
+ hasSent = true;
24
+ if (timeout) {
25
+ clearTimeout(timeout);
26
+ timeout = null;
27
+ }
28
+ const metricsPayload = {
29
+ event_name: 'web_vitals',
30
+ ttfb: allMetrics.ttfb,
31
+ lcp: allMetrics.lcp,
32
+ fid: allMetrics.fid,
33
+ fcp: allMetrics.fcp,
34
+ cls: allMetrics.cls,
35
+ inp: allMetrics.inp,
36
+ request_path: window.location.pathname,
37
+ request_query: window.location.search,
38
+ };
39
+ sendAnalytics('event', metricsPayload, 'POST', basePath);
40
+ };
41
+ const collectMetric = (metric) => {
42
+ if (hasSent)
43
+ return;
44
+ const metricName = metric.name.toLowerCase();
45
+ allMetrics[metricName] = metric.value;
46
+ // Check if all metrics are collected
47
+ const allCollected = Object.values(allMetrics).every((value) => value !== null);
48
+ if (allCollected) {
49
+ sendAllMetrics();
50
+ }
51
+ };
52
+ // Set timeout to send metrics even if not all are collected
53
+ timeout = setTimeout(() => {
54
+ if (!hasSent) {
55
+ sendAllMetrics();
56
+ }
57
+ }, 20000);
58
+ // Send on page unload
59
+ const handleBeforeUnload = () => {
60
+ if (!hasSent) {
61
+ sendAllMetrics();
62
+ }
63
+ };
64
+ window.addEventListener('beforeunload', handleBeforeUnload);
65
+ // Track all metrics
66
+ onTTFB(collectMetric);
67
+ onLCP(collectMetric);
68
+ onFID(collectMetric);
69
+ onFCP(collectMetric);
70
+ onCLS(collectMetric);
71
+ onINP(collectMetric);
72
+ return () => {
73
+ if (timeout) {
74
+ clearTimeout(timeout);
75
+ }
76
+ window.removeEventListener('beforeunload', handleBeforeUnload);
77
+ };
78
+ }, [basePath, disabled]);
79
+ }
package/dist/utils.d.ts CHANGED
@@ -2,5 +2,6 @@ import type { JsonValue } from "./types";
2
2
  export declare function getRequestId(): string | undefined;
3
3
  export declare function isLocalhostLike(): boolean;
4
4
  export declare function isTestEnvironment(): boolean;
5
- export declare function sendAnalytics(endpoint: string, data: Record<string, JsonValue>, method?: "POST" | "PUT" | "PATCH", basePath?: string): Promise<void>;
5
+ export declare function sendAnalytics(endpoint: string, data: Record<string, JsonValue>, method: "POST" | "PUT" | "PATCH" | undefined, basePath: string): Promise<void>;
6
+ export declare function sendAnalyticsReliable(endpoint: string, data: Record<string, JsonValue>, basePath: string): boolean;
6
7
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAcjD;AAED,wBAAgB,eAAe,IAAI,OAAO,CASzC;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAY3C;AAED,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,MAAM,GAAE,MAAM,GAAG,KAAK,GAAG,OAAgB,EACzC,QAAQ,SAAgB,GACvB,OAAO,CAAC,IAAI,CAAC,CAoBf"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAcjD;AAED,wBAAgB,eAAe,IAAI,OAAO,CASzC;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAY3C;AAED,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,YAAS,EACzC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAoBf;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,QAAQ,EAAE,MAAM,GACf,OAAO,CAqCT"}
package/dist/utils.js CHANGED
@@ -41,7 +41,7 @@ export function isTestEnvironment() {
41
41
  const allowTemps = Boolean(window.__temps);
42
42
  return (isPhantom || isNightmare || isWebdriver || isCypress) && !allowTemps;
43
43
  }
44
- export async function sendAnalytics(endpoint, data, method = "POST", basePath = "/api/_temps") {
44
+ export async function sendAnalytics(endpoint, data, method = "POST", basePath) {
45
45
  try {
46
46
  const enrichedData = {
47
47
  ...data,
@@ -61,3 +61,37 @@ export async function sendAnalytics(endpoint, data, method = "POST", basePath =
61
61
  console.error("Failed to send analytics:", error);
62
62
  }
63
63
  }
64
+ export function sendAnalyticsReliable(endpoint, data, basePath) {
65
+ try {
66
+ const enrichedData = {
67
+ ...data,
68
+ request_id: getRequestId(),
69
+ session_id: typeof localStorage !== "undefined"
70
+ ? localStorage.getItem("session_id") || undefined
71
+ : undefined,
72
+ };
73
+ const url = `${basePath}/${endpoint}`;
74
+ const payload = JSON.stringify(enrichedData);
75
+ // Try sendBeacon first (most reliable for page unload)
76
+ if (navigator.sendBeacon && typeof navigator.sendBeacon === "function") {
77
+ const blob = new Blob([payload], { type: "application/json" });
78
+ return navigator.sendBeacon(url, blob);
79
+ }
80
+ // Fallback to synchronous fetch with keepalive
81
+ fetch(url, {
82
+ method: "POST",
83
+ headers: { "Content-Type": "application/json" },
84
+ body: payload,
85
+ keepalive: true,
86
+ }).catch((error) => {
87
+ // eslint-disable-next-line no-console
88
+ console.error("Failed to send analytics (reliable):", error);
89
+ });
90
+ return true;
91
+ }
92
+ catch (error) {
93
+ // eslint-disable-next-line no-console
94
+ console.error("Failed to send analytics (reliable):", error);
95
+ return false;
96
+ }
97
+ }
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@temps-sdk/react-analytics",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1-beta.31",
4
4
  "private": false,
5
- "type": "module",
6
5
  "main": "./dist/index.js",
7
6
  "types": "./dist/index.d.ts",
8
7
  "exports": {
@@ -19,24 +18,38 @@
19
18
  "build:types": "tsc -p tsconfig.types.json",
20
19
  "build": "bun run build:js && bun run build:types",
21
20
  "clean": "rm -rf dist",
22
- "prepublishOnly": "bun run clean && bun run build"
21
+ "prepublishOnly": "bun run clean && bun run build",
22
+ "test": "vitest",
23
+ "test:coverage": "vitest run --coverage"
23
24
  },
24
25
  "publishConfig": {
25
26
  "access": "public"
26
27
  },
27
28
  "peerDependencies": {
28
- "react": "^18.0.0 || ^19.0.0",
29
- "react-dom": "^18.0.0 || ^19.0.0"
29
+ "react": "^18.0.0 || ^19.0.0-rc || ^19.0.0",
30
+ "react-dom": "^18.0.0 || ^19.0.0-rc || ^19.0.0"
30
31
  },
31
32
  "peerDependenciesMeta": {
32
33
  "react-dom": {
33
34
  "optional": true
34
35
  }
35
36
  },
37
+ "dependencies": {
38
+ "@rrweb/packer": "^2.0.0-alpha.17",
39
+ "rrweb": "^2.0.0-alpha.17",
40
+ "web-vitals": "^4.2.4"
41
+ },
36
42
  "devDependencies": {
43
+ "@testing-library/react": "^14.2.1",
44
+ "@testing-library/react-hooks": "^8.0.1",
37
45
  "@types/react": "^18.2.56",
38
46
  "@types/react-dom": "^18.2.19",
39
- "typescript": "^5.5.4"
47
+ "@vitest/coverage-v8": "^1.3.1",
48
+ "jsdom": "^24.0.0",
49
+ "react": "^18.2.0",
50
+ "react-dom": "^18.2.0",
51
+ "typescript": "^5.5.4",
52
+ "vitest": "^1.3.1"
40
53
  },
41
54
  "sideEffects": false
42
55
  }