@microsoft/applicationinsights-clickanalytics-js 3.3.2-nightly3.2408-08 → 3.3.2-nightly3.2408-09

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 (47) hide show
  1. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.cjs.js → ai.clck.3.3.2-nightly3.2408-09.cjs.js} +4 -4
  2. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.cjs.js.map → ai.clck.3.3.2-nightly3.2408-09.cjs.js.map} +1 -1
  3. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.cjs.min.js → ai.clck.3.3.2-nightly3.2408-09.cjs.min.js} +3 -3
  4. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.cjs.min.js.map → ai.clck.3.3.2-nightly3.2408-09.cjs.min.js.map} +1 -1
  5. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.gbl.js → ai.clck.3.3.2-nightly3.2408-09.gbl.js} +6 -6
  6. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.gbl.js.map → ai.clck.3.3.2-nightly3.2408-09.gbl.js.map} +1 -1
  7. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.gbl.min.js → ai.clck.3.3.2-nightly3.2408-09.gbl.min.js} +3 -3
  8. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.gbl.min.js.map → ai.clck.3.3.2-nightly3.2408-09.gbl.min.js.map} +1 -1
  9. package/browser/es5/ai.clck.3.3.2-nightly3.2408-09.integrity.json +66 -0
  10. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.js → ai.clck.3.3.2-nightly3.2408-09.js} +6 -6
  11. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.js.map → ai.clck.3.3.2-nightly3.2408-09.js.map} +1 -1
  12. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.min.js → ai.clck.3.3.2-nightly3.2408-09.min.js} +3 -3
  13. package/browser/es5/{ai.clck.3.3.2-nightly3.2408-08.min.js.map → ai.clck.3.3.2-nightly3.2408-09.min.js.map} +1 -1
  14. package/browser/es5/ai.clck.3.cjs.js +3 -3
  15. package/browser/es5/ai.clck.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.clck.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.clck.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.clck.3.gbl.js +5 -5
  19. package/browser/es5/ai.clck.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.clck.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.clck.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.clck.3.integrity.json +25 -25
  23. package/browser/es5/ai.clck.3.js +5 -5
  24. package/browser/es5/ai.clck.3.js.map +1 -1
  25. package/browser/es5/ai.clck.3.min.js +2 -2
  26. package/browser/es5/ai.clck.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-clickanalytics-js.js +3 -3
  28. package/dist/es5/applicationinsights-clickanalytics-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-clickanalytics-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-clickanalytics-js.min.js.map +1 -1
  31. package/dist-es5/Behaviours.js +1 -1
  32. package/dist-es5/ClickAnalyticsPlugin.js +2 -2
  33. package/dist-es5/ClickAnalyticsPlugin.js.map +1 -1
  34. package/dist-es5/DataCollector.js +1 -1
  35. package/dist-es5/Enums.js +1 -1
  36. package/dist-es5/Interfaces/Datamodel.js +1 -1
  37. package/dist-es5/__DynamicConstants.js +1 -1
  38. package/dist-es5/applicationinsights-clickanalytics-js.js +1 -1
  39. package/dist-es5/common/Utils.js +1 -1
  40. package/dist-es5/events/PageAction.js +1 -1
  41. package/dist-es5/events/WebEvent.js +1 -1
  42. package/dist-es5/handlers/AutoCaptureHandler.js +1 -1
  43. package/dist-es5/handlers/DomContentHandler.js +1 -1
  44. package/package.json +4 -4
  45. package/types/applicationinsights-clickanalytics-js.d.ts +1 -1
  46. package/types/applicationinsights-clickanalytics-js.namespaced.d.ts +22 -5
  47. package/browser/es5/ai.clck.3.3.2-nightly3.2408-08.integrity.json +0 -66
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -146,7 +146,7 @@ var ClickAnalyticsPlugin = /** @class */ (function (_super) {
146
146
  // Removed Stub for ClickAnalyticsPlugin.prototype.initialize.
147
147
  // Removed Stub for ClickAnalyticsPlugin.prototype.processTelemetry.
148
148
  // Removed Stub for ClickAnalyticsPlugin.prototype.trackPageAction.
149
- ClickAnalyticsPlugin.Version = '3.3.2-nightly3.2408-08';
149
+ ClickAnalyticsPlugin.Version = '3.3.2-nightly3.2408-09';
150
150
  return ClickAnalyticsPlugin;
151
151
  }(BaseTelemetryPlugin));
152
152
  export { ClickAnalyticsPlugin };
@@ -1 +1 @@
1
- {"version":3,"file":"ClickAnalyticsPlugin.js.map","sources":["ClickAnalyticsPlugin.js"],"sourcesContent":["/**\r\n* @copyright Microsoft 2020\r\n*/\r\nvar _a, _b, _c, _d;\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { PropertiesPluginIdentifier } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _throwInternal, arrForEach, cfgDfFunc, cfgDfMerge, cfgDfString, cfgDfValidate, createProcessTelemetryContext, dumpObj, getExceptionName, isNullOrUndefined, onConfigChange, throwError, unloadComponents } from \"@microsoft/applicationinsights-core-js\";\r\nimport { getDocument, hasDocument, objDeepFreeze, strSubstring, strTrim } from \"@nevware21/ts-utils\";\r\nimport { _DYN_BEHAVIOR_VALIDATOR, _DYN_CAPTURE_ALL_META_DAT2, _DYN_CONTENT_NAME, _DYN_DEFAULT_RIGHT_CLICK_3, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_META_DATA_PREFIX, _DYN_PAGE_ACTION_PAGE_TAG0, _DYN_PAGE_NAME, _DYN_PAGE_TYPE, _DYN_PARENT_DATA_TAG, _DYN_REQUEST_URI, _DYN_TRACK_PAGE_ACTION, _DYN_USE_DEFAULT_CONTENT_1, _DYN__DO_UNLOAD } from \"./__DynamicConstants\";\r\nimport { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, DEFAULT_AI_BLOB_ATTRIBUTE_TAG, DEFAULT_DATA_PREFIX, DEFAULT_DONOT_TRACK_TAG } 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 defaultValues = objDeepFreeze((_a = {\r\n autoCapture: true,\r\n callback: cfgDfMerge((_b = {},\r\n _b[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:pageActionPageTags */] = cfgDfFunc(),\r\n _b[_DYN_PAGE_NAME /* @min:pageName */] = cfgDfFunc(),\r\n _b[_DYN_CONTENT_NAME /* @min:contentName */] = cfgDfFunc(),\r\n _b)),\r\n pageTags: {},\r\n coreData: cfgDfMerge((_c = {\r\n referrerUri: hasDocument() ? getDocument().referrer : \"\"\r\n },\r\n _c[_DYN_REQUEST_URI /* @min:requestUri */] = cfgDfString(),\r\n _c[_DYN_PAGE_NAME /* @min:pageName */] = cfgDfString(),\r\n _c[_DYN_PAGE_TYPE /* @min:pageType */] = cfgDfString(),\r\n _c)),\r\n dataTags: cfgDfMerge((_d = {},\r\n _d[_DYN_USE_DEFAULT_CONTENT_1 /* @min:useDefaultContentNameOrId */] = false,\r\n _d.aiBlobAttributeTag = DEFAULT_AI_BLOB_ATTRIBUTE_TAG,\r\n _d.customDataPrefix = cfgDfValidate(_dataPrefixChk, DEFAULT_DATA_PREFIX),\r\n _d[_DYN_CAPTURE_ALL_META_DAT2 /* @min:captureAllMetaDataContent */] = false,\r\n _d.dntDataTag = DEFAULT_DONOT_TRACK_TAG,\r\n _d[_DYN_META_DATA_PREFIX /* @min:metaDataPrefix */] = cfgDfString(),\r\n _d[_DYN_PARENT_DATA_TAG /* @min:parentDataTag */] = cfgDfString(),\r\n _d))\r\n },\r\n _a[_DYN_BEHAVIOR_VALIDATOR /* @min:behaviorValidator */] = cfgDfFunc(function (key) { return key || \"\"; }),\r\n _a[_DYN_DEFAULT_RIGHT_CLICK_3 /* @min:defaultRightClickBhvr */] = cfgDfString(),\r\n _a.dropInvalidEvents = false,\r\n _a.urlCollectHash = false,\r\n _a.urlCollectQuery = false,\r\n _a));\r\nfunction _dataPrefixChk(val) {\r\n return val && val[_DYN_INDEX_OF /* @min:%2eindexOf */](DEFAULT_DATA_PREFIX) === 0;\r\n}\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 var _autoCapture;\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 _super.prototype.initialize.call(_this, config, core, extensions, pluginChain);\r\n _populateDefaults(config);\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 && _propertiesExtension.context.internal) {\r\n var theVersion = _propertiesExtension.context.internal.sdkVersion;\r\n if (theVersion) {\r\n theVersion += \"_ClickPlugin\" + ClickAnalyticsPlugin.Version;\r\n if (theVersion[_DYN_LENGTH /* @min:%2elength */] > 64) {\r\n theVersion = strTrim(strSubstring(theVersion, 0, 64));\r\n }\r\n _propertiesExtension.context.internal.sdkVersion = theVersion;\r\n }\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 function _populateDefaults(config) {\r\n var core = _self.core;\r\n _self._addHook(onConfigChange(config, function (details) {\r\n var config = details.cfg;\r\n var ctx = createProcessTelemetryContext(null, config, core);\r\n var _config = ctx.getExtCfg(_identifier, defaultValues);\r\n var logger = _self.diagLog();\r\n _contentHandler = new DomContentHandler(_config, logger);\r\n var metaTags = _contentHandler.getMetadata();\r\n _pageAction = new PageAction(_self, _config, _contentHandler, _config.callback[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:%2epageActionPageTags */], metaTags, logger);\r\n // Default to DOM autoCapture handler\r\n if (_autoCaptureHandler) {\r\n _autoCaptureHandler[_DYN__DO_UNLOAD /* @min:%2e_doUnload */]();\r\n }\r\n _autoCaptureHandler = new AutoCaptureHandler(_self, _config, _pageAction, logger);\r\n var autoCapture = !!_config.autoCapture;\r\n if (!_autoCapture && autoCapture) {\r\n _autoCaptureHandler.click();\r\n }\r\n _autoCapture = autoCapture;\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 _autoCapture = false;\r\n }\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 = '3.3.2-nightly3.2408-08';\r\n return ClickAnalyticsPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { ClickAnalyticsPlugin };\r\n//# sourceMappingURL=ClickAnalyticsPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;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;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\nvar _a, _b, _c, _d;\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { PropertiesPluginIdentifier } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _throwInternal, arrForEach, cfgDfFunc, cfgDfMerge, cfgDfString, cfgDfValidate, createProcessTelemetryContext, dumpObj, getExceptionName, isNullOrUndefined, onConfigChange, throwError, unloadComponents } from \"@microsoft/applicationinsights-core-js\";\r\nimport { getDocument, hasDocument, objDeepFreeze, strSubstring, strTrim } from \"@nevware21/ts-utils\";\r\nimport { _DYN_BEHAVIOR_VALIDATOR, _DYN_CAPTURE_ALL_META_DAT2, _DYN_CONTENT_NAME, _DYN_DEFAULT_RIGHT_CLICK_3, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_META_DATA_PREFIX, _DYN_PAGE_ACTION_PAGE_TAG0, _DYN_PAGE_NAME, _DYN_PAGE_TYPE, _DYN_PARENT_DATA_TAG, _DYN_REQUEST_URI, _DYN_TRACK_PAGE_ACTION, _DYN_USE_DEFAULT_CONTENT_1, _DYN__DO_UNLOAD } from \"./__DynamicConstants\";\r\nimport { BehaviorEnumValidator, BehaviorMapValidator, BehaviorValueValidator, DEFAULT_AI_BLOB_ATTRIBUTE_TAG, DEFAULT_DATA_PREFIX, DEFAULT_DONOT_TRACK_TAG } 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 defaultValues = objDeepFreeze((_a = {\r\n autoCapture: true,\r\n callback: cfgDfMerge((_b = {},\r\n _b[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:pageActionPageTags */] = cfgDfFunc(),\r\n _b[_DYN_PAGE_NAME /* @min:pageName */] = cfgDfFunc(),\r\n _b[_DYN_CONTENT_NAME /* @min:contentName */] = cfgDfFunc(),\r\n _b)),\r\n pageTags: {},\r\n coreData: cfgDfMerge((_c = {\r\n referrerUri: hasDocument() ? getDocument().referrer : \"\"\r\n },\r\n _c[_DYN_REQUEST_URI /* @min:requestUri */] = cfgDfString(),\r\n _c[_DYN_PAGE_NAME /* @min:pageName */] = cfgDfString(),\r\n _c[_DYN_PAGE_TYPE /* @min:pageType */] = cfgDfString(),\r\n _c)),\r\n dataTags: cfgDfMerge((_d = {},\r\n _d[_DYN_USE_DEFAULT_CONTENT_1 /* @min:useDefaultContentNameOrId */] = false,\r\n _d.aiBlobAttributeTag = DEFAULT_AI_BLOB_ATTRIBUTE_TAG,\r\n _d.customDataPrefix = cfgDfValidate(_dataPrefixChk, DEFAULT_DATA_PREFIX),\r\n _d[_DYN_CAPTURE_ALL_META_DAT2 /* @min:captureAllMetaDataContent */] = false,\r\n _d.dntDataTag = DEFAULT_DONOT_TRACK_TAG,\r\n _d[_DYN_META_DATA_PREFIX /* @min:metaDataPrefix */] = cfgDfString(),\r\n _d[_DYN_PARENT_DATA_TAG /* @min:parentDataTag */] = cfgDfString(),\r\n _d))\r\n },\r\n _a[_DYN_BEHAVIOR_VALIDATOR /* @min:behaviorValidator */] = cfgDfFunc(function (key) { return key || \"\"; }),\r\n _a[_DYN_DEFAULT_RIGHT_CLICK_3 /* @min:defaultRightClickBhvr */] = cfgDfString(),\r\n _a.dropInvalidEvents = false,\r\n _a.urlCollectHash = false,\r\n _a.urlCollectQuery = false,\r\n _a));\r\nfunction _dataPrefixChk(val) {\r\n return val && val[_DYN_INDEX_OF /* @min:%2eindexOf */](DEFAULT_DATA_PREFIX) === 0;\r\n}\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 var _autoCapture;\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 _super.prototype.initialize.call(_this, config, core, extensions, pluginChain);\r\n _populateDefaults(config);\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 && _propertiesExtension.context.internal) {\r\n var theVersion = _propertiesExtension.context.internal.sdkVersion;\r\n if (theVersion) {\r\n theVersion += \"_ClickPlugin\" + ClickAnalyticsPlugin.Version;\r\n if (theVersion[_DYN_LENGTH /* @min:%2elength */] > 64) {\r\n theVersion = strTrim(strSubstring(theVersion, 0, 64));\r\n }\r\n _propertiesExtension.context.internal.sdkVersion = theVersion;\r\n }\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 function _populateDefaults(config) {\r\n var core = _self.core;\r\n _self._addHook(onConfigChange(config, function (details) {\r\n var config = details.cfg;\r\n var ctx = createProcessTelemetryContext(null, config, core);\r\n var _config = ctx.getExtCfg(_identifier, defaultValues);\r\n var logger = _self.diagLog();\r\n _contentHandler = new DomContentHandler(_config, logger);\r\n var metaTags = _contentHandler.getMetadata();\r\n _pageAction = new PageAction(_self, _config, _contentHandler, _config.callback[_DYN_PAGE_ACTION_PAGE_TAG0 /* @min:%2epageActionPageTags */], metaTags, logger);\r\n // Default to DOM autoCapture handler\r\n if (_autoCaptureHandler) {\r\n _autoCaptureHandler[_DYN__DO_UNLOAD /* @min:%2e_doUnload */]();\r\n }\r\n _autoCaptureHandler = new AutoCaptureHandler(_self, _config, _pageAction, logger);\r\n var autoCapture = !!_config.autoCapture;\r\n if (!_autoCapture && autoCapture) {\r\n _autoCaptureHandler.click();\r\n }\r\n _autoCapture = autoCapture;\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 _autoCapture = false;\r\n }\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 = '3.3.2-nightly3.2408-09';\r\n return ClickAnalyticsPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { ClickAnalyticsPlugin };\r\n//# sourceMappingURL=ClickAnalyticsPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;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;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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
package/dist-es5/Enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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, 3.3.2-nightly3.2408-08
2
+ * Application Insights JavaScript SDK - Click Analytics, 3.3.2-nightly3.2408-09
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": "3.3.2-nightly3.2408-08",
3
+ "version": "3.3.2-nightly3.2408-09",
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",
@@ -51,9 +51,9 @@
51
51
  "dependencies": {
52
52
  "@microsoft/dynamicproto-js": "^2.0.3",
53
53
  "@microsoft/applicationinsights-shims": "3.0.1",
54
- "@microsoft/applicationinsights-core-js": "3.3.2-nightly3.2408-08",
55
- "@microsoft/applicationinsights-common": "3.3.2-nightly3.2408-08",
56
- "@microsoft/applicationinsights-properties-js": "3.3.2-nightly3.2408-08",
54
+ "@microsoft/applicationinsights-core-js": "3.3.2-nightly3.2408-09",
55
+ "@microsoft/applicationinsights-common": "3.3.2-nightly3.2408-09",
56
+ "@microsoft/applicationinsights-properties-js": "3.3.2-nightly3.2408-09",
57
57
  "@nevware21/ts-utils": ">= 0.11.3 < 2.x"
58
58
  },
59
59
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.3.2-nightly3.2408-08
2
+ * Microsoft.ApplicationInsights, 3.3.2-nightly3.2408-09
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
- * Microsoft.ApplicationInsights, 3.3.2-nightly3.2408-08
2
+ * Microsoft.ApplicationInsights, 3.3.2-nightly3.2408-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -948,10 +948,6 @@ declare namespace ApplicationInsights {
948
948
  * This URL takes precedence over the 'config.endpointUrl' and any endpoint in the connection string.
949
949
  */
950
950
  userOverrideEndpointUrl?: string;
951
- /**
952
- * [Optional] Set additional configuration for exceptions, such as more scripts to include in the exception telemetry.
953
- */
954
- expCfg?: IExceptionConfig;
955
951
  }
956
952
 
957
953
  /**
@@ -1197,6 +1193,11 @@ declare namespace ApplicationInsights {
1197
1193
  * @since 3.3.0
1198
1194
  */
1199
1195
  initInMemoMaxSize?: number;
1196
+ /**
1197
+ * [Optional] Set additional configuration for exceptions, such as more scripts to include in the exception telemetry.
1198
+ * @since 3.3.2
1199
+ */
1200
+ expCfg?: IExceptionConfig;
1200
1201
  }
1201
1202
 
1202
1203
  interface ICookieMgr {
@@ -1492,6 +1493,22 @@ declare namespace ApplicationInsights {
1492
1493
  * Notice: This would increase the size of the exception telemetry.
1493
1494
  */
1494
1495
  inclScripts?: boolean;
1496
+ /**
1497
+ * Callback function for collecting logs to be included in telemetry data.
1498
+ *
1499
+ * The length of logs to generate is controlled by the `maxLogs` parameter.
1500
+ *
1501
+ * This callback is called before telemetry data is sent, allowing for dynamic customization of the logs.
1502
+ *
1503
+ * @returns {Object} An object with the following property:
1504
+ * - logs: An array of strings, where each string represents a log entry to be included in the telemetry.
1505
+ *
1506
+ * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1507
+ */
1508
+ expLog: () => {
1509
+ logs: string[];
1510
+ };
1511
+ maxLogs: number;
1495
1512
  }
1496
1513
 
1497
1514
  interface IFeatureOptIn {
@@ -1,66 +0,0 @@
1
- {
2
- "name": "ai.clck",
3
- "version": "3.3.2-nightly3.2408-08",
4
- "ext": {
5
- "@cjs.js": {
6
- "file": "ai.clck.3.3.2-nightly3.2408-08.cjs.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-i0k4t1+axSH1ZyS82Z8HQM9VlCJBI5L2b9zGOJ1A97o= sha384-mH9XHX3uKtmnJLp0XRxQo43dEbnByzlz3ss+Ohw4IQO6sHHKR7Zl+wvc84OiM1R+ sha512-6g7gxbrUqUanhBnc3jbVro99kKZDKQgzGedEN9m7YyJh15m5rUnVlpZEjyse2ITnqZYDyHpkDfuYzVuvvyL+TQ==",
9
- "hashes": {
10
- "sha256": "i0k4t1+axSH1ZyS82Z8HQM9VlCJBI5L2b9zGOJ1A97o=",
11
- "sha384": "mH9XHX3uKtmnJLp0XRxQo43dEbnByzlz3ss+Ohw4IQO6sHHKR7Zl+wvc84OiM1R+",
12
- "sha512": "6g7gxbrUqUanhBnc3jbVro99kKZDKQgzGedEN9m7YyJh15m5rUnVlpZEjyse2ITnqZYDyHpkDfuYzVuvvyL+TQ=="
13
- }
14
- },
15
- "@cjs.min.js": {
16
- "file": "ai.clck.3.3.2-nightly3.2408-08.cjs.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-rFclH+BouaxaNKHN5WztsDjXDSntiJx0V/PfvwGzDQk= sha384-t4RY57QfgQCqgRRCfTv9KyHe7YryBmBukQrsfqDquqxoYSXxCuQRyxnRdcMo1fK6 sha512-0Ms0USPlIszaCrg1tb5SooZ0Dhz1pAYcxmuo+ShUFq0ioEX8BFWNYbC/Phy8yO9MIGyhmMU+h6A0zSk+QU3Oyw==",
19
- "hashes": {
20
- "sha256": "rFclH+BouaxaNKHN5WztsDjXDSntiJx0V/PfvwGzDQk=",
21
- "sha384": "t4RY57QfgQCqgRRCfTv9KyHe7YryBmBukQrsfqDquqxoYSXxCuQRyxnRdcMo1fK6",
22
- "sha512": "0Ms0USPlIszaCrg1tb5SooZ0Dhz1pAYcxmuo+ShUFq0ioEX8BFWNYbC/Phy8yO9MIGyhmMU+h6A0zSk+QU3Oyw=="
23
- }
24
- },
25
- "@gbl.js": {
26
- "file": "ai.clck.3.3.2-nightly3.2408-08.gbl.js",
27
- "type": "text/javascript; charset=utf-8",
28
- "integrity": "sha256-Rurp3V46jpxknnQWTF+VjI4tQ1sY65FEkcA0dzcQBSU= sha384-Ny62Z74qIEXkz2A+MJ6M1F9FE/9l/7Rmu4rkXCWxTIQGyJub1TByoFK02xajBJcq sha512-jyiHuF9dqcrvRKUk87l3rA7wKi54J1VkKgRNzQoC1cKbXr6bQ23J1wbXdtxkYt93CdHKmqWPRGFjuBj4S1rsMg==",
29
- "hashes": {
30
- "sha256": "Rurp3V46jpxknnQWTF+VjI4tQ1sY65FEkcA0dzcQBSU=",
31
- "sha384": "Ny62Z74qIEXkz2A+MJ6M1F9FE/9l/7Rmu4rkXCWxTIQGyJub1TByoFK02xajBJcq",
32
- "sha512": "jyiHuF9dqcrvRKUk87l3rA7wKi54J1VkKgRNzQoC1cKbXr6bQ23J1wbXdtxkYt93CdHKmqWPRGFjuBj4S1rsMg=="
33
- }
34
- },
35
- "@gbl.min.js": {
36
- "file": "ai.clck.3.3.2-nightly3.2408-08.gbl.min.js",
37
- "type": "text/javascript; charset=utf-8",
38
- "integrity": "sha256-FbsX4XQ5GGyh3sV3wqDQJsl+oUfgzKVo/Zy9HcG4Ig8= sha384-VcoXB4XWUFuJeOum9LUXzwPhZoXfJiLEhFM5sCpe4msQ3Tm1hXKefkZcbTvaPOum sha512-1amWKOFwIDW/NlUsbi8BWChn+ntR9vxL1yLr7OEiJ+ijM2NAt8pRygntzOxU2FRn4V3kah8cPAYw7JdH5LH6Hg==",
39
- "hashes": {
40
- "sha256": "FbsX4XQ5GGyh3sV3wqDQJsl+oUfgzKVo/Zy9HcG4Ig8=",
41
- "sha384": "VcoXB4XWUFuJeOum9LUXzwPhZoXfJiLEhFM5sCpe4msQ3Tm1hXKefkZcbTvaPOum",
42
- "sha512": "1amWKOFwIDW/NlUsbi8BWChn+ntR9vxL1yLr7OEiJ+ijM2NAt8pRygntzOxU2FRn4V3kah8cPAYw7JdH5LH6Hg=="
43
- }
44
- },
45
- "@js": {
46
- "file": "ai.clck.3.3.2-nightly3.2408-08.js",
47
- "type": "text/javascript; charset=utf-8",
48
- "integrity": "sha256-8yzGLQZMRBx0rkepf45yUGYUAEI3YZi5BcqWDKq+MEk= sha384-Ivanc3oc8354LqDth0h6nOTN3pWhl9rVRACdBzJP1siQHeirNnGz1ZBQE29TPZDe sha512-81CNTUNMNIGH06RiGWPbhfvAj8i/rJFZHUHKulLCqllJMo7DsqoxG3IP3Oa5sst0cIObnL5FJUskhwgj48w1AA==",
49
- "hashes": {
50
- "sha256": "8yzGLQZMRBx0rkepf45yUGYUAEI3YZi5BcqWDKq+MEk=",
51
- "sha384": "Ivanc3oc8354LqDth0h6nOTN3pWhl9rVRACdBzJP1siQHeirNnGz1ZBQE29TPZDe",
52
- "sha512": "81CNTUNMNIGH06RiGWPbhfvAj8i/rJFZHUHKulLCqllJMo7DsqoxG3IP3Oa5sst0cIObnL5FJUskhwgj48w1AA=="
53
- }
54
- },
55
- "@min.js": {
56
- "file": "ai.clck.3.3.2-nightly3.2408-08.min.js",
57
- "type": "text/javascript; charset=utf-8",
58
- "integrity": "sha256-Va7M+ntSMpPsWZYT05rpCew6umJ6kfUxRWYgh5jcm+M= sha384-mc9+TIow9q4OLanuRW1hm2p7Y05eHeH1vDuPYEx+5b0m1hcvvvUvK3xd7e4xPsKz sha512-Vzns36UHZoUtEXGLyARcpVEU9EAvoLJ1JHVhEhWhHHCPjPME3Ze3xARz9GlBIoR09RdrC188Pr16Eq0zWx3N8Q==",
59
- "hashes": {
60
- "sha256": "Va7M+ntSMpPsWZYT05rpCew6umJ6kfUxRWYgh5jcm+M=",
61
- "sha384": "mc9+TIow9q4OLanuRW1hm2p7Y05eHeH1vDuPYEx+5b0m1hcvvvUvK3xd7e4xPsKz",
62
- "sha512": "Vzns36UHZoUtEXGLyARcpVEU9EAvoLJ1JHVhEhWhHHCPjPME3Ze3xARz9GlBIoR09RdrC188Pr16Eq0zWx3N8Q=="
63
- }
64
- }
65
- }
66
- }