@v-tilt/browser 1.10.1 → 1.10.4
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/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 +18 -0
- package/dist/constants.d.ts +2 -2
- 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 +93 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +93 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/vtilt.d.ts +4 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -287,6 +287,24 @@ interface AutocaptureOptions {
|
|
|
287
287
|
* Overrides VTiltConfig.mask_all_element_attributes for autocapture specifically.
|
|
288
288
|
*/
|
|
289
289
|
mask_all_element_attributes?: boolean;
|
|
290
|
+
/**
|
|
291
|
+
* Capture form field values on change events (default: false)
|
|
292
|
+
*
|
|
293
|
+
* When enabled, captures $el_value and $selected_text properties:
|
|
294
|
+
* - $el_value: The programmatic value (input.value, option.value, checkbox checked state)
|
|
295
|
+
* - $selected_text: Human-readable selection (option text, checkbox label)
|
|
296
|
+
*
|
|
297
|
+
* Protected by multiple privacy layers:
|
|
298
|
+
* - Password and hidden inputs are never captured
|
|
299
|
+
* - Fields with sensitive names (cc, pass, ssn, etc.) are skipped
|
|
300
|
+
* - Credit card and SSN patterns in values are filtered out
|
|
301
|
+
* - Elements with vt-sensitive or vt-no-capture classes are excluded
|
|
302
|
+
*
|
|
303
|
+
* Use case: Tracking search keywords, filter selections, etc.
|
|
304
|
+
*
|
|
305
|
+
* @default false
|
|
306
|
+
*/
|
|
307
|
+
capture_element_values?: boolean;
|
|
290
308
|
}
|
|
291
309
|
/** Mask options for input elements in session recording */
|
|
292
310
|
interface SessionRecordingMaskInputOptions {
|
|
@@ -1423,6 +1441,78 @@ declare class ChatWrapper implements Feature {
|
|
|
1423
1441
|
private _onScriptLoaded;
|
|
1424
1442
|
}
|
|
1425
1443
|
|
|
1444
|
+
/**
|
|
1445
|
+
* VTD Overlay Feature
|
|
1446
|
+
*
|
|
1447
|
+
* Displays destination content in a fullscreen iframe overlay when vtd= URL parameter is present.
|
|
1448
|
+
* Used for tracking links that redirect to specific content (video, page, etc.).
|
|
1449
|
+
*
|
|
1450
|
+
* Example: https://example.com/?vt=person_id&vtd=https://youtube.com/watch?v=abc123
|
|
1451
|
+
*
|
|
1452
|
+
* @see docs/architecture/proposals/vt-vtd-tracking-links.md
|
|
1453
|
+
*/
|
|
1454
|
+
|
|
1455
|
+
interface VtdOverlayConfig {
|
|
1456
|
+
/** Whether the overlay feature is enabled */
|
|
1457
|
+
enabled?: boolean;
|
|
1458
|
+
}
|
|
1459
|
+
declare class VtdOverlay implements Feature {
|
|
1460
|
+
readonly name = "VtdOverlay";
|
|
1461
|
+
private _instance;
|
|
1462
|
+
private _config;
|
|
1463
|
+
private _isStarted;
|
|
1464
|
+
private _destinationUrl;
|
|
1465
|
+
private _originalUrl;
|
|
1466
|
+
private _isLoading;
|
|
1467
|
+
private _container;
|
|
1468
|
+
private _iframe;
|
|
1469
|
+
private _loadingEl;
|
|
1470
|
+
constructor(instance: VTilt, config?: VtdOverlayConfig);
|
|
1471
|
+
static extractConfig(config: VTiltConfig): VtdOverlayConfig;
|
|
1472
|
+
get isEnabled(): boolean;
|
|
1473
|
+
get isStarted(): boolean;
|
|
1474
|
+
startIfEnabled(): void;
|
|
1475
|
+
stop(): void;
|
|
1476
|
+
onConfigUpdate(config: VTiltConfig): void;
|
|
1477
|
+
/**
|
|
1478
|
+
* Set the destination URL and show the overlay.
|
|
1479
|
+
* Called by vtilt.ts when vtd= parameter is detected.
|
|
1480
|
+
*
|
|
1481
|
+
* @param url - The destination URL (can be URL-encoded)
|
|
1482
|
+
*/
|
|
1483
|
+
setDestinationUrl(url: string): void;
|
|
1484
|
+
/**
|
|
1485
|
+
* Get the current destination URL.
|
|
1486
|
+
*/
|
|
1487
|
+
getDestinationUrl(): string | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Close the overlay with animation.
|
|
1490
|
+
*/
|
|
1491
|
+
close(): void;
|
|
1492
|
+
private _isValidUrl;
|
|
1493
|
+
/**
|
|
1494
|
+
* Transform URLs to embeddable format for known platforms.
|
|
1495
|
+
* Many sites block iframe embedding but provide dedicated embed URLs.
|
|
1496
|
+
*/
|
|
1497
|
+
private _toEmbedUrl;
|
|
1498
|
+
private _getHostname;
|
|
1499
|
+
private _getFaviconUrl;
|
|
1500
|
+
private _showOverlay;
|
|
1501
|
+
private _destroyOverlay;
|
|
1502
|
+
private _attachEventListeners;
|
|
1503
|
+
private _getBackdropStyles;
|
|
1504
|
+
private _getModalStyles;
|
|
1505
|
+
private _getHeaderStyles;
|
|
1506
|
+
private _getHeaderHTML;
|
|
1507
|
+
private _getIframeWrapperStyles;
|
|
1508
|
+
private _getLoadingStyles;
|
|
1509
|
+
private _getLoadingHTML;
|
|
1510
|
+
private _getIframeStyles;
|
|
1511
|
+
private _getGlobalStyles;
|
|
1512
|
+
private _truncateUrl;
|
|
1513
|
+
private _escapeHtml;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1426
1516
|
/**
|
|
1427
1517
|
* Request Queue - Event Batching (PostHog-style)
|
|
1428
1518
|
*
|
|
@@ -1583,7 +1673,7 @@ declare class SimpleEventEmitter {
|
|
|
1583
1673
|
*/
|
|
1584
1674
|
|
|
1585
1675
|
declare class VTilt {
|
|
1586
|
-
readonly version
|
|
1676
|
+
readonly version: string;
|
|
1587
1677
|
__loaded: boolean;
|
|
1588
1678
|
__request_queue: QueuedRequest[];
|
|
1589
1679
|
historyAutocapture?: HistoryAutocapture;
|
|
@@ -1591,6 +1681,7 @@ declare class VTilt {
|
|
|
1591
1681
|
sessionRecording?: SessionRecordingWrapper;
|
|
1592
1682
|
chat?: ChatWrapper;
|
|
1593
1683
|
webVitals?: WebVitalsManager;
|
|
1684
|
+
vtdOverlay?: VtdOverlay;
|
|
1594
1685
|
private configManager;
|
|
1595
1686
|
sessionManager: SessionManager;
|
|
1596
1687
|
userManager: UserManager;
|
|
@@ -1647,6 +1738,7 @@ declare class VTilt {
|
|
|
1647
1738
|
private _setup_unload_handler;
|
|
1648
1739
|
private _start_queue_if_opted_in;
|
|
1649
1740
|
private _read_vt_param_from_url;
|
|
1741
|
+
private _initVtdOverlay;
|
|
1650
1742
|
_execute_array(array: any[]): void;
|
|
1651
1743
|
_dom_loaded(): void;
|
|
1652
1744
|
}
|