@fileverse-dev/dsheet 1.3.2 → 1.3.3-right

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,21 @@
1
+ /**
2
+ * Context about the embedding environment for error reporting (e.g. Sentry).
3
+ * Helps debug issues when dsheet runs inside iframes or different referrers.
4
+ */
5
+ export type EmbedContext = {
6
+ /** Whether the app is running inside an iframe */
7
+ isInIframe: boolean;
8
+ /** Parent window URL (or "[cross-origin]" when not readable) */
9
+ parentUrl: string | null;
10
+ /** document.referrer */
11
+ referrer: string;
12
+ /** Current window location href */
13
+ currentUrl: string;
14
+ /** User agent string (may be truncated for privacy) */
15
+ userAgent?: string;
16
+ };
17
+ /**
18
+ * Safely gathers embed context for Sentry/error reports.
19
+ * Handles cross-origin iframes (parent.location not readable) and SSR (no window).
20
+ */
21
+ export declare function getEmbedContext(): EmbedContext;