@microsoft/applicationinsights-analytics-js 3.3.10-nightly3.2507-04 → 3.3.10-nightly3.2507-06
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/browser/es5/applicationinsights-analytics-js.cjs.js +3 -3
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.js +5 -5
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-analytics-js.js +5 -5
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
- package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.js +3 -3
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
- package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-es5/JavaScriptSDK/Interfaces/IAnalyticsConfig.js +8 -0
- package/dist-es5/JavaScriptSDK/Interfaces/IAnalyticsConfig.js.map +1 -0
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-es5/JavaScriptSDK/Timing.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-analytics-js.js +1 -1
- package/package.json +5 -5
- package/types/applicationinsights-analytics-js.d.ts +100 -1
- package/types/applicationinsights-analytics-js.namespaced.d.ts +101 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.3.10-nightly3.2507-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.3.10-nightly3.2507-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -437,6 +437,104 @@ declare namespace ApplicationInsights {
|
|
|
437
437
|
*/
|
|
438
438
|
type FinallyPromiseHandler = (() => void) | undefined | null;
|
|
439
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Configuration interface specifically for AnalyticsPlugin
|
|
442
|
+
* This interface defines only the configuration properties that the Analytics plugin uses.
|
|
443
|
+
*/
|
|
444
|
+
interface IAnalyticsConfig {
|
|
445
|
+
/**
|
|
446
|
+
* A session is logged if the user is inactive for this amount of time in milliseconds.
|
|
447
|
+
* @default 1800000 (30 minutes)
|
|
448
|
+
*/
|
|
449
|
+
sessionRenewalMs?: number;
|
|
450
|
+
/**
|
|
451
|
+
* A session is logged if it has continued for this amount of time in milliseconds.
|
|
452
|
+
* @default 86400000 (24 hours)
|
|
453
|
+
*/
|
|
454
|
+
sessionExpirationMs?: number;
|
|
455
|
+
/**
|
|
456
|
+
* If true, exceptions are not autocollected.
|
|
457
|
+
* @default false
|
|
458
|
+
*/
|
|
459
|
+
disableExceptionTracking?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview.
|
|
462
|
+
* @default false
|
|
463
|
+
*/
|
|
464
|
+
autoTrackPageVisitTime?: boolean;
|
|
465
|
+
/**
|
|
466
|
+
* If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called.
|
|
467
|
+
* @default false
|
|
468
|
+
*/
|
|
469
|
+
overridePageViewDuration?: boolean;
|
|
470
|
+
/**
|
|
471
|
+
* Define whether to track unhandled promise rejections and report as JS errors.
|
|
472
|
+
* @default false
|
|
473
|
+
*/
|
|
474
|
+
enableUnhandledPromiseRejectionTracking?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Internal flag to track if unhandled promise instrumentation is already set up.
|
|
477
|
+
* @default false
|
|
478
|
+
* @internal Internal use only
|
|
479
|
+
* @ignore INTERNAL ONLY
|
|
480
|
+
*/
|
|
481
|
+
autoUnhandledPromiseInstrumented?: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* Percentage of events that will be sent. Value must be between 0 and 100.
|
|
484
|
+
* @default 100
|
|
485
|
+
* @example 50 // Only send 50% of events
|
|
486
|
+
*/
|
|
487
|
+
samplingPercentage?: number;
|
|
488
|
+
/**
|
|
489
|
+
* If true, the SDK will not store or read any data from local and session storage.
|
|
490
|
+
* @default false
|
|
491
|
+
*/
|
|
492
|
+
isStorageUseDisabled?: boolean;
|
|
493
|
+
/**
|
|
494
|
+
* If true, the SDK will track all Browser Link requests.
|
|
495
|
+
* @default false
|
|
496
|
+
*/
|
|
497
|
+
isBrowserLinkTrackingEnabled?: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Automatically track route changes in Single Page Applications (SPA). If true, each route change will send a new Pageview to Application Insights.
|
|
500
|
+
* @default false
|
|
501
|
+
*/
|
|
502
|
+
enableAutoRouteTracking?: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* An optional value that will be used as name postfix for localStorage and session cookie name.
|
|
505
|
+
* @default ""
|
|
506
|
+
* @example "MyApp" // Results in localStorage keys like "ai_session_MyApp"
|
|
507
|
+
*/
|
|
508
|
+
namePrefix?: string;
|
|
509
|
+
/**
|
|
510
|
+
* If true, debugging data is thrown as an exception by the logger.
|
|
511
|
+
* @default false
|
|
512
|
+
*/
|
|
513
|
+
enableDebug?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* If true, flush method will not be called when onBeforeUnload event triggers.
|
|
516
|
+
* @default false
|
|
517
|
+
*/
|
|
518
|
+
disableFlushOnBeforeUnload?: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
521
|
+
* @default false
|
|
522
|
+
*/
|
|
523
|
+
disableFlushOnUnload?: boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Internal flag to track if exception instrumentation is already set up.
|
|
526
|
+
* @default false
|
|
527
|
+
* @internal Internal use only
|
|
528
|
+
* @ignore INTERNAL ONLY
|
|
529
|
+
*/
|
|
530
|
+
autoExceptionInstrumented?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Exception configuration for additional exception handling options.
|
|
533
|
+
* @default { inclScripts: false, expLog: undefined, maxLogs: 50 }
|
|
534
|
+
*/
|
|
535
|
+
expCfg?: IExceptionConfig;
|
|
536
|
+
}
|
|
537
|
+
|
|
440
538
|
interface IAppInsights {
|
|
441
539
|
/**
|
|
442
540
|
* Get the current cookie manager for this instance
|
|
@@ -1322,7 +1420,7 @@ declare namespace ApplicationInsights {
|
|
|
1322
1420
|
* }
|
|
1323
1421
|
* ```
|
|
1324
1422
|
*
|
|
1325
|
-
* For more details, see the [Page Unload Events documentation](https://microsoft.github.io/ApplicationInsights-JS/
|
|
1423
|
+
* For more details, see the [Page Unload Events documentation](https://microsoft.github.io/ApplicationInsights-JS/PageUnloadEvents.html).
|
|
1326
1424
|
*/
|
|
1327
1425
|
disablePageUnloadEvents?: string[];
|
|
1328
1426
|
/**
|
|
@@ -1337,7 +1435,7 @@ declare namespace ApplicationInsights {
|
|
|
1337
1435
|
* }
|
|
1338
1436
|
* ```
|
|
1339
1437
|
*
|
|
1340
|
-
* For more details, see the [Page Unload Events documentation](https://microsoft.github.io/ApplicationInsights-JS/
|
|
1438
|
+
* For more details, see the [Page Unload Events documentation](https://microsoft.github.io/ApplicationInsights-JS/PageUnloadEvents.html).
|
|
1341
1439
|
*/
|
|
1342
1440
|
disablePageShowEvents?: string[];
|
|
1343
1441
|
/**
|