@microsoft/applicationinsights-clickanalytics-js 2.8.10-nightly.2212-02 → 2.8.10-nightly.2301-13

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.
Files changed (58) hide show
  1. package/browser/{ai.clck.2.8.10-nightly.2212-02.cjs.js → ai.clck.2.8.10-nightly.2301-13.cjs.js} +11 -11
  2. package/browser/{ai.clck.2.8.10-nightly.2212-02.cjs.js.map → ai.clck.2.8.10-nightly.2301-13.cjs.js.map} +1 -1
  3. package/browser/{ai.clck.2.8.10-nightly.2212-02.cjs.min.js → ai.clck.2.8.10-nightly.2301-13.cjs.min.js} +3 -3
  4. package/browser/{ai.clck.2.8.10-nightly.2212-02.cjs.min.js.map → ai.clck.2.8.10-nightly.2301-13.cjs.min.js.map} +1 -1
  5. package/browser/{ai.clck.2.8.10-nightly.2212-02.gbl.js → ai.clck.2.8.10-nightly.2301-13.gbl.js} +11 -11
  6. package/browser/{ai.clck.2.8.10-nightly.2212-02.gbl.js.map → ai.clck.2.8.10-nightly.2301-13.gbl.js.map} +1 -1
  7. package/browser/{ai.clck.2.8.10-nightly.2212-02.gbl.min.js → ai.clck.2.8.10-nightly.2301-13.gbl.min.js} +3 -3
  8. package/browser/{ai.clck.2.8.10-nightly.2212-02.gbl.min.js.map → ai.clck.2.8.10-nightly.2301-13.gbl.min.js.map} +1 -1
  9. package/browser/ai.clck.2.8.10-nightly.2301-13.integrity.json +66 -0
  10. package/browser/{ai.clck.2.8.10-nightly.2212-02.js → ai.clck.2.8.10-nightly.2301-13.js} +11 -11
  11. package/browser/{ai.clck.2.8.10-nightly.2212-02.js.map → ai.clck.2.8.10-nightly.2301-13.js.map} +1 -1
  12. package/browser/{ai.clck.2.8.10-nightly.2212-02.min.js → ai.clck.2.8.10-nightly.2301-13.min.js} +3 -3
  13. package/browser/{ai.clck.2.8.10-nightly.2212-02.min.js.map → ai.clck.2.8.10-nightly.2301-13.min.js.map} +1 -1
  14. package/browser/ai.clck.2.cjs.js +10 -10
  15. package/browser/ai.clck.2.cjs.js.map +1 -1
  16. package/browser/ai.clck.2.cjs.min.js +2 -2
  17. package/browser/ai.clck.2.cjs.min.js.map +1 -1
  18. package/browser/ai.clck.2.gbl.js +10 -10
  19. package/browser/ai.clck.2.gbl.js.map +1 -1
  20. package/browser/ai.clck.2.gbl.min.js +2 -2
  21. package/browser/ai.clck.2.gbl.min.js.map +1 -1
  22. package/browser/ai.clck.2.js +10 -10
  23. package/browser/ai.clck.2.js.map +1 -1
  24. package/browser/ai.clck.2.min.js +2 -2
  25. package/browser/ai.clck.2.min.js.map +1 -1
  26. package/dist/applicationinsights-clickanalytics-js.api.json +1 -1
  27. package/dist/applicationinsights-clickanalytics-js.d.ts +1 -1
  28. package/dist/applicationinsights-clickanalytics-js.js +10 -10
  29. package/dist/applicationinsights-clickanalytics-js.js.map +1 -1
  30. package/dist/applicationinsights-clickanalytics-js.min.js +2 -2
  31. package/dist/applicationinsights-clickanalytics-js.min.js.map +1 -1
  32. package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +1 -1
  33. package/dist-esm/Behaviours.js +1 -1
  34. package/dist-esm/ClickAnalyticsPlugin.js +2 -2
  35. package/dist-esm/ClickAnalyticsPlugin.js.map +1 -1
  36. package/dist-esm/DataCollector.js +1 -1
  37. package/dist-esm/Enums.js +1 -1
  38. package/dist-esm/Interfaces/Datamodel.js +1 -1
  39. package/dist-esm/__DynamicConstants.js +9 -9
  40. package/dist-esm/__DynamicConstants.js.map +1 -1
  41. package/dist-esm/applicationinsights-clickanalytics-js.js +1 -1
  42. package/dist-esm/common/Utils.js +1 -1
  43. package/dist-esm/events/PageAction.js +1 -1
  44. package/dist-esm/events/WebEvent.js +1 -1
  45. package/dist-esm/handlers/AutoCaptureHandler.js +1 -1
  46. package/dist-esm/handlers/DomContentHandler.js +1 -1
  47. package/package.json +6 -6
  48. package/src/ClickAnalyticsPlugin.ts +19 -19
  49. package/src/DataCollector.ts +9 -9
  50. package/src/__DynamicConstants.ts +60 -60
  51. package/src/common/Utils.ts +11 -11
  52. package/src/events/PageAction.ts +17 -17
  53. package/src/events/WebEvent.ts +16 -16
  54. package/src/handlers/AutoCaptureHandler.ts +16 -16
  55. package/src/handlers/DomContentHandler.ts +12 -12
  56. package/types/__DynamicConstants.d.ts +8 -8
  57. package/types/tsdoc-metadata.json +1 -1
  58. package/browser/ai.clck.2.8.10-nightly.2212-02.integrity.json +0 -66
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 2.8.10-nightly.2212-02
2
+ * Microsoft.ApplicationInsights, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -92,7 +92,7 @@ var ClickAnalyticsPlugin = /** @class */ (function (_super) {
92
92
  // Removed Stub for ClickAnalyticsPlugin.prototype.initialize.
93
93
  // Removed Stub for ClickAnalyticsPlugin.prototype.processTelemetry.
94
94
  // Removed Stub for ClickAnalyticsPlugin.prototype.trackPageAction.
95
- ClickAnalyticsPlugin.Version = "2.8.10-nightly.2212-02";
95
+ ClickAnalyticsPlugin.Version = "2.8.10-nightly.2301-13";
96
96
  return ClickAnalyticsPlugin;
97
97
  }(BaseTelemetryPlugin));
98
98
  export { ClickAnalyticsPlugin };
@@ -1 +1 @@
1
- {"version":3,"file":"ClickAnalyticsPlugin.js.map","sources":["ClickAnalyticsPlugin.js"],"sourcesContent":["/**\r\n* @copyright Microsoft 2020\r\n*/\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { PropertiesPluginIdentifier } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _throwInternal, arrForEach, dumpObj, getExceptionName, isNullOrUndefined, throwError, unloadComponents } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_EXTENSION_CONFIG, _DYN_PAGE_ACTION_PAGE_TAG0, _DYN_TRACK_PAGE_ACTION } from \"./__DynamicConstants\";\r\nimport { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, mergeConfig } from \"./common/Utils\";\r\nimport { PageAction } from \"./events/PageAction\";\r\nimport { AutoCaptureHandler } from \"./handlers/AutoCaptureHandler\";\r\nimport { DomContentHandler } from \"./handlers/DomContentHandler\";\r\nexport { BehaviorMapValidator, BehaviorValueValidator, BehaviorEnumValidator };\r\nvar ClickAnalyticsPlugin = /** @class */ (function (_super) {\r\n __extends(ClickAnalyticsPlugin, _super);\r\n function ClickAnalyticsPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.identifier = \"ClickAnalyticsPlugin\";\r\n _this.priority = 181;\r\n var _config;\r\n var _pageAction;\r\n var _autoCaptureHandler;\r\n var _contentHandler;\r\n dynamicProto(ClickAnalyticsPlugin, _this, function (_self, _base) {\r\n var _identifier = _self.identifier;\r\n _initDefaults();\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n if (isNullOrUndefined(core)) {\r\n throwError(\"Error initializing\");\r\n }\r\n config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */] = config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */] || [];\r\n config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier] = config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier] || {};\r\n _config = mergeConfig(config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier]);\r\n _super.prototype.initialize.call(_this, config, core, extensions, pluginChain);\r\n var logger = _self.diagLog();\r\n // Default to DOM content handler\r\n _contentHandler = _contentHandler ? _contentHandler : new DomContentHandler(_config, logger);\r\n var metaTags = _contentHandler.getMetadata();\r\n _pageAction = new PageAction(_this, _config, _contentHandler, _config.callback[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:%2epageActionPageTags */], metaTags, logger);\r\n // Default to DOM autoCapture handler\r\n _autoCaptureHandler = _autoCaptureHandler ? _autoCaptureHandler : new AutoCaptureHandler(_self, _config, _pageAction, logger);\r\n if (_config.autoCapture) {\r\n _autoCaptureHandler.click();\r\n }\r\n // Find the properties plugin.\r\n var _propertiesExtension;\r\n arrForEach(extensions, function (extension) {\r\n if (extension.identifier === PropertiesPluginIdentifier) {\r\n _propertiesExtension = extension;\r\n }\r\n });\r\n // Append Click Analytics Plugin Version to SDK version.\r\n if (_propertiesExtension && _propertiesExtension.context &&\r\n _propertiesExtension.context.internal && _propertiesExtension.context.internal.sdkVersion) {\r\n _propertiesExtension.context.internal.sdkVersion += \"_ClickPlugin\" + ClickAnalyticsPlugin.Version;\r\n }\r\n };\r\n _self.processTelemetry = function (env, itemCtx) {\r\n _self.processNext(env, itemCtx);\r\n };\r\n _self[_DYN_TRACK_PAGE_ACTION /* @min:%2etrackPageAction */] = function (pageAction, customProperties) {\r\n try {\r\n _pageAction[_DYN_TRACK_PAGE_ACTION /* @min:%2etrackPageAction */](pageAction, customProperties);\r\n }\r\n catch (e) {\r\n _throwInternal(_self.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, 103 /* _eInternalMessageId.TrackPageActionEventFailed */, \"trackPageAction failed, page action event will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState, asyncCallback) {\r\n return unloadComponents([\r\n _autoCaptureHandler,\r\n _contentHandler,\r\n _pageAction\r\n ], unloadCtx, unloadState, function () {\r\n _initDefaults();\r\n asyncCallback && asyncCallback();\r\n });\r\n };\r\n });\r\n function _initDefaults() {\r\n _config = null;\r\n _pageAction = null;\r\n _autoCaptureHandler = null;\r\n _contentHandler = null;\r\n }\r\n return _this;\r\n }\r\n ClickAnalyticsPlugin.prototype.initialize = function (config, core, extensions, pluginChain) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ClickAnalyticsPlugin.prototype.processTelemetry = function (env, itemCtx) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Logs a page action event.\r\n * @param IPageActionTelemetry\r\n * @param customProperties Additional data used to filter events and metrics. Defaults to empty.\r\n */\r\n ClickAnalyticsPlugin.prototype.trackPageAction = function (pageAction, customProperties) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ClickAnalyticsPlugin.Version = \"2.8.10-nightly.2212-02\";\r\n return ClickAnalyticsPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { ClickAnalyticsPlugin };\r\n//# sourceMappingURL=ClickAnalyticsPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;mEAaM;AACN;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"ClickAnalyticsPlugin.js.map","sources":["ClickAnalyticsPlugin.js"],"sourcesContent":["/**\r\n* @copyright Microsoft 2020\r\n*/\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { PropertiesPluginIdentifier } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _throwInternal, arrForEach, dumpObj, getExceptionName, isNullOrUndefined, throwError, unloadComponents } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_EXTENSION_CONFIG, _DYN_PAGE_ACTION_PAGE_TAG0, _DYN_TRACK_PAGE_ACTION } from \"./__DynamicConstants\";\r\nimport { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, mergeConfig } from \"./common/Utils\";\r\nimport { PageAction } from \"./events/PageAction\";\r\nimport { AutoCaptureHandler } from \"./handlers/AutoCaptureHandler\";\r\nimport { DomContentHandler } from \"./handlers/DomContentHandler\";\r\nexport { BehaviorMapValidator, BehaviorValueValidator, BehaviorEnumValidator };\r\nvar ClickAnalyticsPlugin = /** @class */ (function (_super) {\r\n __extends(ClickAnalyticsPlugin, _super);\r\n function ClickAnalyticsPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.identifier = \"ClickAnalyticsPlugin\";\r\n _this.priority = 181;\r\n var _config;\r\n var _pageAction;\r\n var _autoCaptureHandler;\r\n var _contentHandler;\r\n dynamicProto(ClickAnalyticsPlugin, _this, function (_self, _base) {\r\n var _identifier = _self.identifier;\r\n _initDefaults();\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n if (isNullOrUndefined(core)) {\r\n throwError(\"Error initializing\");\r\n }\r\n config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */] = config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */] || [];\r\n config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier] = config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier] || {};\r\n _config = mergeConfig(config[_DYN_EXTENSION_CONFIG /* @min:%2eextensionConfig */][_identifier]);\r\n _super.prototype.initialize.call(_this, config, core, extensions, pluginChain);\r\n var logger = _self.diagLog();\r\n // Default to DOM content handler\r\n _contentHandler = _contentHandler ? _contentHandler : new DomContentHandler(_config, logger);\r\n var metaTags = _contentHandler.getMetadata();\r\n _pageAction = new PageAction(_this, _config, _contentHandler, _config.callback[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:%2epageActionPageTags */], metaTags, logger);\r\n // Default to DOM autoCapture handler\r\n _autoCaptureHandler = _autoCaptureHandler ? _autoCaptureHandler : new AutoCaptureHandler(_self, _config, _pageAction, logger);\r\n if (_config.autoCapture) {\r\n _autoCaptureHandler.click();\r\n }\r\n // Find the properties plugin.\r\n var _propertiesExtension;\r\n arrForEach(extensions, function (extension) {\r\n if (extension.identifier === PropertiesPluginIdentifier) {\r\n _propertiesExtension = extension;\r\n }\r\n });\r\n // Append Click Analytics Plugin Version to SDK version.\r\n if (_propertiesExtension && _propertiesExtension.context &&\r\n _propertiesExtension.context.internal && _propertiesExtension.context.internal.sdkVersion) {\r\n _propertiesExtension.context.internal.sdkVersion += \"_ClickPlugin\" + ClickAnalyticsPlugin.Version;\r\n }\r\n };\r\n _self.processTelemetry = function (env, itemCtx) {\r\n _self.processNext(env, itemCtx);\r\n };\r\n _self[_DYN_TRACK_PAGE_ACTION /* @min:%2etrackPageAction */] = function (pageAction, customProperties) {\r\n try {\r\n _pageAction[_DYN_TRACK_PAGE_ACTION /* @min:%2etrackPageAction */](pageAction, customProperties);\r\n }\r\n catch (e) {\r\n _throwInternal(_self.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, 103 /* _eInternalMessageId.TrackPageActionEventFailed */, \"trackPageAction failed, page action event will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState, asyncCallback) {\r\n return unloadComponents([\r\n _autoCaptureHandler,\r\n _contentHandler,\r\n _pageAction\r\n ], unloadCtx, unloadState, function () {\r\n _initDefaults();\r\n asyncCallback && asyncCallback();\r\n });\r\n };\r\n });\r\n function _initDefaults() {\r\n _config = null;\r\n _pageAction = null;\r\n _autoCaptureHandler = null;\r\n _contentHandler = null;\r\n }\r\n return _this;\r\n }\r\n ClickAnalyticsPlugin.prototype.initialize = function (config, core, extensions, pluginChain) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ClickAnalyticsPlugin.prototype.processTelemetry = function (env, itemCtx) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Logs a page action event.\r\n * @param IPageActionTelemetry\r\n * @param customProperties Additional data used to filter events and metrics. Defaults to empty.\r\n */\r\n ClickAnalyticsPlugin.prototype.trackPageAction = function (pageAction, customProperties) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ClickAnalyticsPlugin.Version = \"2.8.10-nightly.2301-13\";\r\n return ClickAnalyticsPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { ClickAnalyticsPlugin };\r\n//# sourceMappingURL=ClickAnalyticsPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;mEAaM;AACN;AACA;AACA;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
package/dist-esm/Enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -14,6 +14,14 @@
14
14
  export var _DYN_EXTENSION_CONFIG = "extensionConfig"; // Count: 5
15
15
  export var _DYN_PAGE_ACTION_PAGE_TAG0 = "pageActionPageTags"; // Count: 2
16
16
  export var _DYN_TRACK_PAGE_ACTION = "trackPageAction"; // Count: 4
17
+ export var _DYN_LENGTH = "length"; // Count: 5
18
+ export var _DYN_TAG_NAME = "tagName"; // Count: 4
19
+ export var _DYN_TO_UPPER_CASE = "toUpperCase"; // Count: 4
20
+ export var _DYN_PATHNAME = "pathname"; // Count: 3
21
+ export var _DYN_ADD_EVENT_LISTENER = "addEventListener"; // Count: 2
22
+ export var _DYN_PAGE_NAME = "pageName"; // Count: 8
23
+ export var _DYN_CORE_DATA = "coreData"; // Count: 4
24
+ export var _DYN_REQUEST_URI = "requestUri"; // Count: 3
17
25
  export var _DYN_GET_ATTRIBUTE = "getAttribute"; // Count: 6
18
26
  export var _DYN_PARENT_NODE = "parentNode"; // Count: 3
19
27
  export var _DYN_CUSTOM_DATA_PREFIX = "customDataPrefix"; // Count: 6
@@ -23,14 +31,6 @@ export var _DYN_USE_DEFAULT_CONTENT_1 = "useDefaultContentNameOrId"; // Count: 5
23
31
  export var _DYN_AI_BLOB_ATTRIBUTE_TA2 = "aiBlobAttributeTag"; // Count: 2
24
32
  export var _DYN_CAPTURE_ALL_META_DAT3 = "captureAllMetaDataContent"; // Count: 3
25
33
  export var _DYN_BEHAVIOR_VALIDATOR = "behaviorValidator"; // Count: 2
26
- export var _DYN_LENGTH = "length"; // Count: 5
27
- export var _DYN_TAG_NAME = "tagName"; // Count: 4
28
- export var _DYN_TO_UPPER_CASE = "toUpperCase"; // Count: 4
29
- export var _DYN_PATHNAME = "pathname"; // Count: 3
30
- export var _DYN_ADD_EVENT_LISTENER = "addEventListener"; // Count: 2
31
- export var _DYN_PAGE_NAME = "pageName"; // Count: 8
32
- export var _DYN_CORE_DATA = "coreData"; // Count: 4
33
- export var _DYN_REQUEST_URI = "requestUri"; // Count: 3
34
34
  export var _DYN_NAME = "name"; // Count: 8
35
35
  export var _DYN_DATA = "data"; // Count: 15
36
36
  export var _DYN_PAGE_TYPE = "pageType"; // Count: 6
@@ -1 +1 @@
1
- {"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_EXTENSION_CONFIG = \"extensionConfig\"; // Count: 5\r\nexport var _DYN_PAGE_ACTION_PAGE_TAG0 = \"pageActionPageTags\"; // Count: 2\r\nexport var _DYN_TRACK_PAGE_ACTION = \"trackPageAction\"; // Count: 4\r\nexport var _DYN_GET_ATTRIBUTE = \"getAttribute\"; // Count: 6\r\nexport var _DYN_PARENT_NODE = \"parentNode\"; // Count: 3\r\nexport var _DYN_CUSTOM_DATA_PREFIX = \"customDataPrefix\"; // Count: 6\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 8\r\nexport var _DYN_DATA_TAGS = \"dataTags\"; // Count: 7\r\nexport var _DYN_USE_DEFAULT_CONTENT_1 = \"useDefaultContentNameOrId\"; // Count: 5\r\nexport var _DYN_AI_BLOB_ATTRIBUTE_TA2 = \"aiBlobAttributeTag\"; // Count: 2\r\nexport var _DYN_CAPTURE_ALL_META_DAT3 = \"captureAllMetaDataContent\"; // Count: 3\r\nexport var _DYN_BEHAVIOR_VALIDATOR = \"behaviorValidator\"; // Count: 2\r\nexport var _DYN_LENGTH = \"length\"; // Count: 5\r\nexport var _DYN_TAG_NAME = \"tagName\"; // Count: 4\r\nexport var _DYN_TO_UPPER_CASE = \"toUpperCase\"; // Count: 4\r\nexport var _DYN_PATHNAME = \"pathname\"; // Count: 3\r\nexport var _DYN_ADD_EVENT_LISTENER = \"addEventListener\"; // Count: 2\r\nexport var _DYN_PAGE_NAME = \"pageName\"; // Count: 8\r\nexport var _DYN_CORE_DATA = \"coreData\"; // Count: 4\r\nexport var _DYN_REQUEST_URI = \"requestUri\"; // Count: 3\r\nexport var _DYN_NAME = \"name\"; // Count: 8\r\nexport var _DYN_DATA = \"data\"; // Count: 15\r\nexport var _DYN_PAGE_TYPE = \"pageType\"; // Count: 6\r\nexport var _DYN_PROPERTIES = \"properties\"; // Count: 4\r\nexport var _DYN_ACTION_TYPE = \"actionType\"; // Count: 9\r\nexport var _DYN_BEHAVIOR = \"behavior\"; // Count: 7\r\nexport var _DYN_CLICK_COORDINATES = \"clickCoordinates\"; // Count: 2\r\nexport var _DYN_CONTENT = \"content\"; // Count: 4\r\nexport var _DYN_REF_URI = \"refUri\"; // Count: 4\r\nexport var _DYN_PARENT_ID = \"parentId\"; // Count: 3\r\nexport var _DYN_CAPTURE_PAGE_ACTION = \"capturePageAction\"; // Count: 2\r\nexport var _DYN_SET_COMMON_PROPERTIE4 = \"setCommonProperties\"; // Count: 2\r\nexport var _DYN_GET_ELEMENT_CONTENT = \"getElementContent\"; // Count: 2\r\nexport var _DYN__GET_VALID_BEHAVIOR = \"_getValidBehavior\"; // Count: 3\r\nexport var _DYN_CONTENT_NAME = \"contentName\"; // Count: 12\r\nexport var _DYN__TRACE_LOGGER = \"_traceLogger\"; // Count: 3\r\nexport var _DYN_CLICK_COORDINATE_X = \"clickCoordinateX\"; // Count: 3\r\nexport var _DYN_CLICK_COORDINATE_Y = \"clickCoordinateY\"; // Count: 3\r\nexport var _DYN__CONFIG = \"_config\"; // Count: 9\r\nexport var _DYN_PARENT_DATA_TAG = \"parentDataTag\"; // Count: 3\r\nexport var _DYN__PAGE_TAGS = \"_pageTags\"; // Count: 6\r\nexport var _DYN__PAGE_TAGS_CALLBACK = \"_pageTagsCallback\"; // Count: 3\r\nexport var _DYN__META_TAGS = \"_metaTags\"; // Count: 6\r\nexport var _DYN_SET_BASIC_PROPERTIES = \"setBasicProperties\"; // Count: 2\r\nexport var _DYN__PAGE_TYPE_META_TAG = \"_pageTypeMetaTag\"; // Count: 3\r\nexport var _DYN__BEHAVIOR_META_TAG = \"_behaviorMetaTag\"; // Count: 3\r\nexport var _DYN_PARENT_ELEMENT = \"parentElement\"; // Count: 3\r\nexport var _DYN_ATTRIBUTES = \"attributes\"; // Count: 4\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_EXTENSION_CONFIG = \"extensionConfig\"; // Count: 5\r\nexport var _DYN_PAGE_ACTION_PAGE_TAG0 = \"pageActionPageTags\"; // Count: 2\r\nexport var _DYN_TRACK_PAGE_ACTION = \"trackPageAction\"; // Count: 4\r\nexport var _DYN_LENGTH = \"length\"; // Count: 5\r\nexport var _DYN_TAG_NAME = \"tagName\"; // Count: 4\r\nexport var _DYN_TO_UPPER_CASE = \"toUpperCase\"; // Count: 4\r\nexport var _DYN_PATHNAME = \"pathname\"; // Count: 3\r\nexport var _DYN_ADD_EVENT_LISTENER = \"addEventListener\"; // Count: 2\r\nexport var _DYN_PAGE_NAME = \"pageName\"; // Count: 8\r\nexport var _DYN_CORE_DATA = \"coreData\"; // Count: 4\r\nexport var _DYN_REQUEST_URI = \"requestUri\"; // Count: 3\r\nexport var _DYN_GET_ATTRIBUTE = \"getAttribute\"; // Count: 6\r\nexport var _DYN_PARENT_NODE = \"parentNode\"; // Count: 3\r\nexport var _DYN_CUSTOM_DATA_PREFIX = \"customDataPrefix\"; // Count: 6\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 8\r\nexport var _DYN_DATA_TAGS = \"dataTags\"; // Count: 7\r\nexport var _DYN_USE_DEFAULT_CONTENT_1 = \"useDefaultContentNameOrId\"; // Count: 5\r\nexport var _DYN_AI_BLOB_ATTRIBUTE_TA2 = \"aiBlobAttributeTag\"; // Count: 2\r\nexport var _DYN_CAPTURE_ALL_META_DAT3 = \"captureAllMetaDataContent\"; // Count: 3\r\nexport var _DYN_BEHAVIOR_VALIDATOR = \"behaviorValidator\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 8\r\nexport var _DYN_DATA = \"data\"; // Count: 15\r\nexport var _DYN_PAGE_TYPE = \"pageType\"; // Count: 6\r\nexport var _DYN_PROPERTIES = \"properties\"; // Count: 4\r\nexport var _DYN_ACTION_TYPE = \"actionType\"; // Count: 9\r\nexport var _DYN_BEHAVIOR = \"behavior\"; // Count: 7\r\nexport var _DYN_CLICK_COORDINATES = \"clickCoordinates\"; // Count: 2\r\nexport var _DYN_CONTENT = \"content\"; // Count: 4\r\nexport var _DYN_REF_URI = \"refUri\"; // Count: 4\r\nexport var _DYN_PARENT_ID = \"parentId\"; // Count: 3\r\nexport var _DYN_CAPTURE_PAGE_ACTION = \"capturePageAction\"; // Count: 2\r\nexport var _DYN_SET_COMMON_PROPERTIE4 = \"setCommonProperties\"; // Count: 2\r\nexport var _DYN_GET_ELEMENT_CONTENT = \"getElementContent\"; // Count: 2\r\nexport var _DYN__GET_VALID_BEHAVIOR = \"_getValidBehavior\"; // Count: 3\r\nexport var _DYN_CONTENT_NAME = \"contentName\"; // Count: 12\r\nexport var _DYN__TRACE_LOGGER = \"_traceLogger\"; // Count: 3\r\nexport var _DYN_CLICK_COORDINATE_X = \"clickCoordinateX\"; // Count: 3\r\nexport var _DYN_CLICK_COORDINATE_Y = \"clickCoordinateY\"; // Count: 3\r\nexport var _DYN__CONFIG = \"_config\"; // Count: 9\r\nexport var _DYN_PARENT_DATA_TAG = \"parentDataTag\"; // Count: 3\r\nexport var _DYN__PAGE_TAGS = \"_pageTags\"; // Count: 6\r\nexport var _DYN__PAGE_TAGS_CALLBACK = \"_pageTagsCallback\"; // Count: 3\r\nexport var _DYN__META_TAGS = \"_metaTags\"; // Count: 6\r\nexport var _DYN_SET_BASIC_PROPERTIES = \"setBasicProperties\"; // Count: 2\r\nexport var _DYN__PAGE_TYPE_META_TAG = \"_pageTypeMetaTag\"; // Count: 3\r\nexport var _DYN__BEHAVIOR_META_TAG = \"_behaviorMetaTag\"; // Count: 3\r\nexport var _DYN_PARENT_ELEMENT = \"parentElement\"; // Count: 3\r\nexport var _DYN_ATTRIBUTES = \"attributes\"; // Count: 4\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2212-02
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.10-nightly.2301-13
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-clickanalytics-js",
3
- "version": "2.8.10-nightly.2212-02",
3
+ "version": "2.8.10-nightly.2301-13",
4
4
  "description": "Microsoft Application Insights Click Analytics extension",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -26,7 +26,7 @@
26
26
  "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
27
27
  "@microsoft/applicationinsights-rollup-es3": "1.1.3",
28
28
  "@microsoft/api-extractor": "^7.18.1",
29
- "typescript": "^4.3.4",
29
+ "typescript": "^4.9.3",
30
30
  "tslib": "^2.0.0",
31
31
  "globby": "^11.0.0",
32
32
  "magic-string": "^0.25.7",
@@ -37,7 +37,7 @@
37
37
  "rollup": "^2.32.0",
38
38
  "grunt": "^1.5.3",
39
39
  "grunt-cli": "^1.4.3",
40
- "grunt-contrib-qunit": "^5.0.1",
40
+ "grunt-contrib-qunit": "^6.2.1",
41
41
  "@nevware21/grunt-ts-plugin": "^0.4.3",
42
42
  "@nevware21/grunt-eslint-ts": "^0.2.2"
43
43
  },
@@ -47,9 +47,9 @@
47
47
  "dependencies": {
48
48
  "@microsoft/dynamicproto-js": "^1.1.7",
49
49
  "@microsoft/applicationinsights-shims": "2.0.2",
50
- "@microsoft/applicationinsights-core-js": "2.8.10-nightly.2212-02",
51
- "@microsoft/applicationinsights-common": "2.8.10-nightly.2212-02",
52
- "@microsoft/applicationinsights-properties-js": "2.8.10-nightly.2212-02"
50
+ "@microsoft/applicationinsights-core-js": "2.8.10-nightly.2301-13",
51
+ "@microsoft/applicationinsights-common": "2.8.10-nightly.2301-13",
52
+ "@microsoft/applicationinsights-properties-js": "2.8.10-nightly.2301-13"
53
53
  },
54
54
  "repository": {
55
55
  "type": "git",
@@ -1,21 +1,21 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import dynamicProto from "@microsoft/dynamicproto-js";
6
- import { IConfig, IPropertiesPlugin, PropertiesPluginIdentifier } from "@microsoft/applicationinsights-common";
7
- import {
8
- BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, ICustomProperties, IPlugin, IProcessTelemetryContext,
9
- IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState, _eInternalMessageId, _throwInternal,
10
- arrForEach, dumpObj, eLoggingSeverity, getExceptionName, isNullOrUndefined, throwError, unloadComponents
11
- } from "@microsoft/applicationinsights-core-js";
12
- import { PropertiesPlugin } from "@microsoft/applicationinsights-properties-js";
13
- import { IAutoCaptureHandler, IClickAnalyticsConfiguration, IContentHandler, IPageActionTelemetry } from "./Interfaces/Datamodel";
14
- import { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, mergeConfig } from "./common/Utils";
15
- import { PageAction } from "./events/PageAction";
16
- import { AutoCaptureHandler } from "./handlers/AutoCaptureHandler";
17
- import { DomContentHandler } from "./handlers/DomContentHandler";
18
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ */
4
+
5
+ import dynamicProto from "@microsoft/dynamicproto-js";
6
+ import { IConfig, IPropertiesPlugin, PropertiesPluginIdentifier } from "@microsoft/applicationinsights-common";
7
+ import {
8
+ BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, ICustomProperties, IPlugin, IProcessTelemetryContext,
9
+ IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState, _eInternalMessageId, _throwInternal,
10
+ arrForEach, dumpObj, eLoggingSeverity, getExceptionName, isNullOrUndefined, throwError, unloadComponents
11
+ } from "@microsoft/applicationinsights-core-js";
12
+ import { PropertiesPlugin } from "@microsoft/applicationinsights-properties-js";
13
+ import { IAutoCaptureHandler, IClickAnalyticsConfiguration, IContentHandler, IPageActionTelemetry } from "./Interfaces/Datamodel";
14
+ import { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, mergeConfig } from "./common/Utils";
15
+ import { PageAction } from "./events/PageAction";
16
+ import { AutoCaptureHandler } from "./handlers/AutoCaptureHandler";
17
+ import { DomContentHandler } from "./handlers/DomContentHandler";
18
+
19
19
  export { BehaviorMapValidator, BehaviorValueValidator, BehaviorEnumValidator }
20
20
 
21
21
  export class ClickAnalyticsPlugin extends BaseTelemetryPlugin {
@@ -125,4 +125,4 @@ export class ClickAnalyticsPlugin extends BaseTelemetryPlugin {
125
125
  public trackPageAction(pageAction?: IPageActionTelemetry, customProperties?: ICustomProperties) {
126
126
  // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
127
127
  }
128
- }
128
+ }
@@ -1,11 +1,11 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import { getDocument, getLocation, getWindow, hasDocument, isFunction } from "@microsoft/applicationinsights-core-js";
6
- import { IClickAnalyticsConfiguration, IOverrideValues } from "./Interfaces/Datamodel";
7
- import { findClosestAnchor, isValueAssigned } from "./common/Utils";
8
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ */
4
+
5
+ import { getDocument, getLocation, getWindow, hasDocument, isFunction } from "@microsoft/applicationinsights-core-js";
6
+ import { IClickAnalyticsConfiguration, IOverrideValues } from "./Interfaces/Datamodel";
7
+ import { findClosestAnchor, isValueAssigned } from "./common/Utils";
8
+
9
9
  var clickCaptureInputTypes = { BUTTON: true, CHECKBOX: true, RADIO: true, RESET: true, SUBMIT: true };
10
10
 
11
11
 
@@ -155,4 +155,4 @@ export function getUri(config: IClickAnalyticsConfiguration, location: any): str
155
155
  return config.coreData.requestUri;
156
156
  }
157
157
  return sanitizeUrl(config, location);
158
- }
158
+ }
@@ -1,60 +1,60 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
- // @skip-file-minify
4
-
5
- // ##############################################################
6
- // AUTO GENERATED FILE: This file is Auto Generated during build.
7
- // ##############################################################
8
-
9
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- // Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
11
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
-
13
- export const _DYN_EXTENSION_CONFIG = "extensionConfig"; // Count: 5
14
- export const _DYN_PAGE_ACTION_PAGE_TAG0 = "pageActionPageTags"; // Count: 2
15
- export const _DYN_TRACK_PAGE_ACTION = "trackPageAction"; // Count: 4
16
- export const _DYN_GET_ATTRIBUTE = "getAttribute"; // Count: 6
17
- export const _DYN_PARENT_NODE = "parentNode"; // Count: 3
18
- export const _DYN_CUSTOM_DATA_PREFIX = "customDataPrefix"; // Count: 6
19
- export const _DYN_INDEX_OF = "indexOf"; // Count: 8
20
- export const _DYN_DATA_TAGS = "dataTags"; // Count: 7
21
- export const _DYN_USE_DEFAULT_CONTENT_1 = "useDefaultContentNameOrId"; // Count: 5
22
- export const _DYN_AI_BLOB_ATTRIBUTE_TA2 = "aiBlobAttributeTag"; // Count: 2
23
- export const _DYN_CAPTURE_ALL_META_DAT3 = "captureAllMetaDataContent"; // Count: 3
24
- export const _DYN_BEHAVIOR_VALIDATOR = "behaviorValidator"; // Count: 2
25
- export const _DYN_LENGTH = "length"; // Count: 5
26
- export const _DYN_TAG_NAME = "tagName"; // Count: 4
27
- export const _DYN_TO_UPPER_CASE = "toUpperCase"; // Count: 4
28
- export const _DYN_PATHNAME = "pathname"; // Count: 3
29
- export const _DYN_ADD_EVENT_LISTENER = "addEventListener"; // Count: 2
30
- export const _DYN_PAGE_NAME = "pageName"; // Count: 8
31
- export const _DYN_CORE_DATA = "coreData"; // Count: 4
32
- export const _DYN_REQUEST_URI = "requestUri"; // Count: 3
33
- export const _DYN_NAME = "name"; // Count: 8
34
- export const _DYN_DATA = "data"; // Count: 15
35
- export const _DYN_PAGE_TYPE = "pageType"; // Count: 6
36
- export const _DYN_PROPERTIES = "properties"; // Count: 4
37
- export const _DYN_ACTION_TYPE = "actionType"; // Count: 9
38
- export const _DYN_BEHAVIOR = "behavior"; // Count: 7
39
- export const _DYN_CLICK_COORDINATES = "clickCoordinates"; // Count: 2
40
- export const _DYN_CONTENT = "content"; // Count: 4
41
- export const _DYN_REF_URI = "refUri"; // Count: 4
42
- export const _DYN_PARENT_ID = "parentId"; // Count: 3
43
- export const _DYN_CAPTURE_PAGE_ACTION = "capturePageAction"; // Count: 2
44
- export const _DYN_SET_COMMON_PROPERTIE4 = "setCommonProperties"; // Count: 2
45
- export const _DYN_GET_ELEMENT_CONTENT = "getElementContent"; // Count: 2
46
- export const _DYN__GET_VALID_BEHAVIOR = "_getValidBehavior"; // Count: 3
47
- export const _DYN_CONTENT_NAME = "contentName"; // Count: 12
48
- export const _DYN__TRACE_LOGGER = "_traceLogger"; // Count: 3
49
- export const _DYN_CLICK_COORDINATE_X = "clickCoordinateX"; // Count: 3
50
- export const _DYN_CLICK_COORDINATE_Y = "clickCoordinateY"; // Count: 3
51
- export const _DYN__CONFIG = "_config"; // Count: 9
52
- export const _DYN_PARENT_DATA_TAG = "parentDataTag"; // Count: 3
53
- export const _DYN__PAGE_TAGS = "_pageTags"; // Count: 6
54
- export const _DYN__PAGE_TAGS_CALLBACK = "_pageTagsCallback"; // Count: 3
55
- export const _DYN__META_TAGS = "_metaTags"; // Count: 6
56
- export const _DYN_SET_BASIC_PROPERTIES = "setBasicProperties"; // Count: 2
57
- export const _DYN__PAGE_TYPE_META_TAG = "_pageTypeMetaTag"; // Count: 3
58
- export const _DYN__BEHAVIOR_META_TAG = "_behaviorMetaTag"; // Count: 3
59
- export const _DYN_PARENT_ELEMENT = "parentElement"; // Count: 3
60
- export const _DYN_ATTRIBUTES = "attributes"; // Count: 4
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+ // @skip-file-minify
4
+
5
+ // ##############################################################
6
+ // AUTO GENERATED FILE: This file is Auto Generated during build.
7
+ // ##############################################################
8
+
9
+ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
+ // Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
11
+ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
+
13
+ export const _DYN_EXTENSION_CONFIG = "extensionConfig"; // Count: 5
14
+ export const _DYN_PAGE_ACTION_PAGE_TAG0 = "pageActionPageTags"; // Count: 2
15
+ export const _DYN_TRACK_PAGE_ACTION = "trackPageAction"; // Count: 4
16
+ export const _DYN_LENGTH = "length"; // Count: 5
17
+ export const _DYN_TAG_NAME = "tagName"; // Count: 4
18
+ export const _DYN_TO_UPPER_CASE = "toUpperCase"; // Count: 4
19
+ export const _DYN_PATHNAME = "pathname"; // Count: 3
20
+ export const _DYN_ADD_EVENT_LISTENER = "addEventListener"; // Count: 2
21
+ export const _DYN_PAGE_NAME = "pageName"; // Count: 8
22
+ export const _DYN_CORE_DATA = "coreData"; // Count: 4
23
+ export const _DYN_REQUEST_URI = "requestUri"; // Count: 3
24
+ export const _DYN_GET_ATTRIBUTE = "getAttribute"; // Count: 6
25
+ export const _DYN_PARENT_NODE = "parentNode"; // Count: 3
26
+ export const _DYN_CUSTOM_DATA_PREFIX = "customDataPrefix"; // Count: 6
27
+ export const _DYN_INDEX_OF = "indexOf"; // Count: 8
28
+ export const _DYN_DATA_TAGS = "dataTags"; // Count: 7
29
+ export const _DYN_USE_DEFAULT_CONTENT_1 = "useDefaultContentNameOrId"; // Count: 5
30
+ export const _DYN_AI_BLOB_ATTRIBUTE_TA2 = "aiBlobAttributeTag"; // Count: 2
31
+ export const _DYN_CAPTURE_ALL_META_DAT3 = "captureAllMetaDataContent"; // Count: 3
32
+ export const _DYN_BEHAVIOR_VALIDATOR = "behaviorValidator"; // Count: 2
33
+ export const _DYN_NAME = "name"; // Count: 8
34
+ export const _DYN_DATA = "data"; // Count: 15
35
+ export const _DYN_PAGE_TYPE = "pageType"; // Count: 6
36
+ export const _DYN_PROPERTIES = "properties"; // Count: 4
37
+ export const _DYN_ACTION_TYPE = "actionType"; // Count: 9
38
+ export const _DYN_BEHAVIOR = "behavior"; // Count: 7
39
+ export const _DYN_CLICK_COORDINATES = "clickCoordinates"; // Count: 2
40
+ export const _DYN_CONTENT = "content"; // Count: 4
41
+ export const _DYN_REF_URI = "refUri"; // Count: 4
42
+ export const _DYN_PARENT_ID = "parentId"; // Count: 3
43
+ export const _DYN_CAPTURE_PAGE_ACTION = "capturePageAction"; // Count: 2
44
+ export const _DYN_SET_COMMON_PROPERTIE4 = "setCommonProperties"; // Count: 2
45
+ export const _DYN_GET_ELEMENT_CONTENT = "getElementContent"; // Count: 2
46
+ export const _DYN__GET_VALID_BEHAVIOR = "_getValidBehavior"; // Count: 3
47
+ export const _DYN_CONTENT_NAME = "contentName"; // Count: 12
48
+ export const _DYN__TRACE_LOGGER = "_traceLogger"; // Count: 3
49
+ export const _DYN_CLICK_COORDINATE_X = "clickCoordinateX"; // Count: 3
50
+ export const _DYN_CLICK_COORDINATE_Y = "clickCoordinateY"; // Count: 3
51
+ export const _DYN__CONFIG = "_config"; // Count: 9
52
+ export const _DYN_PARENT_DATA_TAG = "parentDataTag"; // Count: 3
53
+ export const _DYN__PAGE_TAGS = "_pageTags"; // Count: 6
54
+ export const _DYN__PAGE_TAGS_CALLBACK = "_pageTagsCallback"; // Count: 3
55
+ export const _DYN__META_TAGS = "_metaTags"; // Count: 6
56
+ export const _DYN_SET_BASIC_PROPERTIES = "setBasicProperties"; // Count: 2
57
+ export const _DYN__PAGE_TYPE_META_TAG = "_pageTypeMetaTag"; // Count: 3
58
+ export const _DYN__BEHAVIOR_META_TAG = "_behaviorMetaTag"; // Count: 3
59
+ export const _DYN_PARENT_ELEMENT = "parentElement"; // Count: 3
60
+ export const _DYN_ATTRIBUTES = "attributes"; // Count: 4
@@ -1,13 +1,13 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- * File containing utility functions.
4
- */
5
-
6
- import {
7
- _InternalMessageId, _eInternalMessageId, arrForEach, createEnumStyle, hasDocument, hasOwnProperty, isNullOrUndefined, objExtend
8
- } from "@microsoft/applicationinsights-core-js";
9
- import { IClickAnalyticsConfiguration } from "../Interfaces/Datamodel";
10
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ * File containing utility functions.
4
+ */
5
+
6
+ import {
7
+ _InternalMessageId, _eInternalMessageId, arrForEach, createEnumStyle, hasDocument, hasOwnProperty, isNullOrUndefined, objExtend
8
+ } from "@microsoft/applicationinsights-core-js";
9
+ import { IClickAnalyticsConfiguration } from "../Interfaces/Datamodel";
10
+
11
11
  const DEFAULT_DONOT_TRACK_TAG = "ai-dnt";
12
12
  const DEFAULT_AI_BLOB_ATTRIBUTE_TAG = "ai-blob";
13
13
  const DEFAULT_DATA_PREFIX = "data-";
@@ -340,4 +340,4 @@ export function BehaviorValueValidator (behaviorArray: string[]) {
340
340
 
341
341
  export function BehaviorEnumValidator (enumObj: any) {
342
342
  return (key: string) => enumObj[key] || "";
343
- }
343
+ }
@@ -1,19 +1,19 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import dynamicProto from "@microsoft/dynamicproto-js";
6
- import { strNotSpecified } from "@microsoft/applicationinsights-common";
7
- import {
8
- ICustomProperties, IDiagnosticLogger, ITelemetryItem, _eInternalMessageId, _throwInternal, eLoggingSeverity, getPerformance, objExtend,
9
- objForEachKey
10
- } from "@microsoft/applicationinsights-core-js";
11
- import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
12
- import { getClickTarget } from "../DataCollector";
13
- import { IClickAnalyticsConfiguration, IContentHandler, IPageActionOverrideValues, IPageActionTelemetry } from "../Interfaces/Datamodel";
14
- import { bracketIt, extractFieldFromObject, isValueAssigned } from "../common/Utils";
15
- import { WebEvent } from "./WebEvent";
16
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ */
4
+
5
+ import dynamicProto from "@microsoft/dynamicproto-js";
6
+ import { strNotSpecified } from "@microsoft/applicationinsights-common";
7
+ import {
8
+ ICustomProperties, IDiagnosticLogger, ITelemetryItem, _eInternalMessageId, _throwInternal, eLoggingSeverity, getPerformance, objExtend,
9
+ objForEachKey
10
+ } from "@microsoft/applicationinsights-core-js";
11
+ import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
12
+ import { getClickTarget } from "../DataCollector";
13
+ import { IClickAnalyticsConfiguration, IContentHandler, IPageActionOverrideValues, IPageActionTelemetry } from "../Interfaces/Datamodel";
14
+ import { bracketIt, extractFieldFromObject, isValueAssigned } from "../common/Utils";
15
+ import { WebEvent } from "./WebEvent";
16
+
17
17
  export class PageAction extends WebEvent {
18
18
 
19
19
  constructor(
@@ -194,4 +194,4 @@ export class PageAction extends WebEvent {
194
194
  public capturePageAction(element: Element, overrideValues?: IPageActionOverrideValues, customProperties?: { [name: string]: string | number | boolean | string[] | number[] | boolean[] | object }, isRightClick?: boolean): void {
195
195
  // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
196
196
  }
197
- }
197
+ }
@@ -1,18 +1,18 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import dynamicProto from "@microsoft/dynamicproto-js";
6
- import {
7
- IDiagnosticLogger, IProcessTelemetryUnloadContext, ITelemetryUnloadState, IUnloadableComponent, getLocation, hasWindow, objExtend
8
- } from "@microsoft/applicationinsights-core-js";
9
- import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
10
- import { getPageName, getUri } from "../DataCollector";
11
- import {
12
- IClickAnalyticsConfiguration, IContentHandler, ICoreData, IOverrideValues, IPageActionTelemetry, IPageTags
13
- } from "../Interfaces/Datamodel";
14
- import { isValueAssigned } from "../common/Utils";
15
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ */
4
+
5
+ import dynamicProto from "@microsoft/dynamicproto-js";
6
+ import {
7
+ IDiagnosticLogger, IProcessTelemetryUnloadContext, ITelemetryUnloadState, IUnloadableComponent, getLocation, hasWindow, objExtend
8
+ } from "@microsoft/applicationinsights-core-js";
9
+ import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
10
+ import { getPageName, getUri } from "../DataCollector";
11
+ import {
12
+ IClickAnalyticsConfiguration, IContentHandler, ICoreData, IOverrideValues, IPageActionTelemetry, IPageTags
13
+ } from "../Interfaces/Datamodel";
14
+ import { isValueAssigned } from "../common/Utils";
15
+
16
16
  export class WebEvent implements IUnloadableComponent {
17
17
 
18
18
  protected _pageTags: IPageTags;
@@ -199,4 +199,4 @@ export class WebEvent implements IUnloadableComponent {
199
199
  // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
200
200
  return null;
201
201
  }
202
- }
202
+ }
@@ -1,18 +1,18 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import dynamicProto from "@microsoft/dynamicproto-js";
6
- import {
7
- IDiagnosticLogger, IProcessTelemetryUnloadContext, ITelemetryUnloadState, createUniqueNamespace, eventOff, eventOn, getDocument,
8
- getWindow, isNullOrUndefined, mergeEvtNamespace
9
- } from "@microsoft/applicationinsights-core-js";
10
- import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
11
- import { ActionType } from "../Enums";
12
- import { IAutoCaptureHandler, IClickAnalyticsConfiguration, IPageActionOverrideValues } from "../Interfaces/Datamodel";
13
- import { isElementDnt, isKeyboardEnter, isKeyboardSpace, isLeftClick, isMiddleClick, isRightClick } from "../common/Utils";
14
- import { PageAction } from "../events/PageAction";
15
-
1
+ /**
2
+ * @copyright Microsoft 2020
3
+ */
4
+
5
+ import dynamicProto from "@microsoft/dynamicproto-js";
6
+ import {
7
+ IDiagnosticLogger, IProcessTelemetryUnloadContext, ITelemetryUnloadState, createUniqueNamespace, eventOff, eventOn, getDocument,
8
+ getWindow, isNullOrUndefined, mergeEvtNamespace
9
+ } from "@microsoft/applicationinsights-core-js";
10
+ import { ClickAnalyticsPlugin } from "../ClickAnalyticsPlugin";
11
+ import { ActionType } from "../Enums";
12
+ import { IAutoCaptureHandler, IClickAnalyticsConfiguration, IPageActionOverrideValues } from "../Interfaces/Datamodel";
13
+ import { isElementDnt, isKeyboardEnter, isKeyboardSpace, isLeftClick, isMiddleClick, isRightClick } from "../common/Utils";
14
+ import { PageAction } from "../events/PageAction";
15
+
16
16
  const clickCaptureInputTypes = { BUTTON: true, CHECKBOX: true, RADIO: true, RESET: true, SUBMIT: true };
17
17
 
18
18
  export class AutoCaptureHandler implements IAutoCaptureHandler {
@@ -118,4 +118,4 @@ export class AutoCaptureHandler implements IAutoCaptureHandler {
118
118
  public _doUnload(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void): void | boolean {
119
119
  // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
120
120
  }
121
- }
121
+ }