@v-tilt/browser 1.10.2 → 1.10.6
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/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/autocapture-types.d.ts +33 -0
- package/dist/core/capture.d.ts +3 -3
- package/dist/extensions/vtd-overlay.d.ts +73 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +87 -0
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +87 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/utils/index.d.ts +7 -1
- package/dist/vtilt.d.ts +3 -0
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -268,6 +268,19 @@ interface AutocaptureOptions {
|
|
|
268
268
|
* Example: ['[data-track]', '.track-click']
|
|
269
269
|
*/
|
|
270
270
|
css_selector_allowlist?: string[];
|
|
271
|
+
/**
|
|
272
|
+
* CSS selectors to exclude from autocapture.
|
|
273
|
+
* If any element in the tree matches, the event is NOT captured.
|
|
274
|
+
*
|
|
275
|
+
* By default, common cookie consent banner patterns are excluded:
|
|
276
|
+
* - Elements with 'cookie', 'consent', 'gdpr', 'privacy' in id/class
|
|
277
|
+
* - Known consent management platforms (CookieBot, OneTrust, Iubenda, etc.)
|
|
278
|
+
*
|
|
279
|
+
* Set to empty array [] to disable default filtering.
|
|
280
|
+
*
|
|
281
|
+
* Example: ['#my-custom-banner', '[data-no-track]']
|
|
282
|
+
*/
|
|
283
|
+
css_selector_ignorelist?: string[];
|
|
271
284
|
/**
|
|
272
285
|
* Element attributes to exclude from capture
|
|
273
286
|
* Example: ['data-secret', 'aria-label']
|
|
@@ -1441,6 +1454,78 @@ declare class ChatWrapper implements Feature {
|
|
|
1441
1454
|
private _onScriptLoaded;
|
|
1442
1455
|
}
|
|
1443
1456
|
|
|
1457
|
+
/**
|
|
1458
|
+
* VTD Overlay Feature
|
|
1459
|
+
*
|
|
1460
|
+
* Displays destination content in a fullscreen iframe overlay when vtd= URL parameter is present.
|
|
1461
|
+
* Used for tracking links that redirect to specific content (video, page, etc.).
|
|
1462
|
+
*
|
|
1463
|
+
* Example: https://example.com/?vt=person_id&vtd=https://youtube.com/watch?v=abc123
|
|
1464
|
+
*
|
|
1465
|
+
* @see docs/architecture/proposals/vt-vtd-tracking-links.md
|
|
1466
|
+
*/
|
|
1467
|
+
|
|
1468
|
+
interface VtdOverlayConfig {
|
|
1469
|
+
/** Whether the overlay feature is enabled */
|
|
1470
|
+
enabled?: boolean;
|
|
1471
|
+
}
|
|
1472
|
+
declare class VtdOverlay implements Feature {
|
|
1473
|
+
readonly name = "VtdOverlay";
|
|
1474
|
+
private _instance;
|
|
1475
|
+
private _config;
|
|
1476
|
+
private _isStarted;
|
|
1477
|
+
private _destinationUrl;
|
|
1478
|
+
private _originalUrl;
|
|
1479
|
+
private _isLoading;
|
|
1480
|
+
private _container;
|
|
1481
|
+
private _iframe;
|
|
1482
|
+
private _loadingEl;
|
|
1483
|
+
constructor(instance: VTilt, config?: VtdOverlayConfig);
|
|
1484
|
+
static extractConfig(config: VTiltConfig): VtdOverlayConfig;
|
|
1485
|
+
get isEnabled(): boolean;
|
|
1486
|
+
get isStarted(): boolean;
|
|
1487
|
+
startIfEnabled(): void;
|
|
1488
|
+
stop(): void;
|
|
1489
|
+
onConfigUpdate(config: VTiltConfig): void;
|
|
1490
|
+
/**
|
|
1491
|
+
* Set the destination URL and show the overlay.
|
|
1492
|
+
* Called by vtilt.ts when vtd= parameter is detected.
|
|
1493
|
+
*
|
|
1494
|
+
* @param url - The destination URL (can be URL-encoded)
|
|
1495
|
+
*/
|
|
1496
|
+
setDestinationUrl(url: string): void;
|
|
1497
|
+
/**
|
|
1498
|
+
* Get the current destination URL.
|
|
1499
|
+
*/
|
|
1500
|
+
getDestinationUrl(): string | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Close the overlay with animation.
|
|
1503
|
+
*/
|
|
1504
|
+
close(): void;
|
|
1505
|
+
private _isValidUrl;
|
|
1506
|
+
/**
|
|
1507
|
+
* Transform URLs to embeddable format for known platforms.
|
|
1508
|
+
* Many sites block iframe embedding but provide dedicated embed URLs.
|
|
1509
|
+
*/
|
|
1510
|
+
private _toEmbedUrl;
|
|
1511
|
+
private _getHostname;
|
|
1512
|
+
private _getFaviconUrl;
|
|
1513
|
+
private _showOverlay;
|
|
1514
|
+
private _destroyOverlay;
|
|
1515
|
+
private _attachEventListeners;
|
|
1516
|
+
private _getBackdropStyles;
|
|
1517
|
+
private _getModalStyles;
|
|
1518
|
+
private _getHeaderStyles;
|
|
1519
|
+
private _getHeaderHTML;
|
|
1520
|
+
private _getIframeWrapperStyles;
|
|
1521
|
+
private _getLoadingStyles;
|
|
1522
|
+
private _getLoadingHTML;
|
|
1523
|
+
private _getIframeStyles;
|
|
1524
|
+
private _getGlobalStyles;
|
|
1525
|
+
private _truncateUrl;
|
|
1526
|
+
private _escapeHtml;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1444
1529
|
/**
|
|
1445
1530
|
* Request Queue - Event Batching (PostHog-style)
|
|
1446
1531
|
*
|
|
@@ -1609,6 +1694,7 @@ declare class VTilt {
|
|
|
1609
1694
|
sessionRecording?: SessionRecordingWrapper;
|
|
1610
1695
|
chat?: ChatWrapper;
|
|
1611
1696
|
webVitals?: WebVitalsManager;
|
|
1697
|
+
vtdOverlay?: VtdOverlay;
|
|
1612
1698
|
private configManager;
|
|
1613
1699
|
sessionManager: SessionManager;
|
|
1614
1700
|
userManager: UserManager;
|
|
@@ -1665,6 +1751,7 @@ declare class VTilt {
|
|
|
1665
1751
|
private _setup_unload_handler;
|
|
1666
1752
|
private _start_queue_if_opted_in;
|
|
1667
1753
|
private _read_vt_param_from_url;
|
|
1754
|
+
private _initVtdOverlay;
|
|
1668
1755
|
_execute_array(array: any[]): void;
|
|
1669
1756
|
_dom_loaded(): void;
|
|
1670
1757
|
}
|