@microsoft/applicationinsights-clickanalytics-js 3.3.5-nightly3.2411-14 → 3.3.5-nightly3.2412-02
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/{ai.clck.3.3.5-nightly3.2411-14.cjs.js → ai.clck.3.3.5-nightly3.2412-02.cjs.js} +4 -4
- package/browser/es5/ai.clck.3.3.5-nightly3.2412-02.cjs.js.map +1 -0
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.cjs.min.js → ai.clck.3.3.5-nightly3.2412-02.cjs.min.js} +3 -3
- package/browser/es5/ai.clck.3.3.5-nightly3.2412-02.cjs.min.js.map +1 -0
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.gbl.js → ai.clck.3.3.5-nightly3.2412-02.gbl.js} +6 -6
- package/browser/es5/ai.clck.3.3.5-nightly3.2412-02.gbl.js.map +1 -0
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.gbl.min.js → ai.clck.3.3.5-nightly3.2412-02.gbl.min.js} +3 -3
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.gbl.min.js.map → ai.clck.3.3.5-nightly3.2412-02.gbl.min.js.map} +1 -1
- package/browser/es5/ai.clck.3.3.5-nightly3.2412-02.integrity.json +66 -0
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.js → ai.clck.3.3.5-nightly3.2412-02.js} +6 -6
- package/browser/es5/ai.clck.3.3.5-nightly3.2412-02.js.map +1 -0
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.min.js → ai.clck.3.3.5-nightly3.2412-02.min.js} +3 -3
- package/browser/es5/{ai.clck.3.3.5-nightly3.2411-14.min.js.map → ai.clck.3.3.5-nightly3.2412-02.min.js.map} +1 -1
- package/browser/es5/ai.clck.3.cjs.js +3 -3
- package/browser/es5/ai.clck.3.cjs.js.map +1 -1
- package/browser/es5/ai.clck.3.cjs.min.js +2 -2
- package/browser/es5/ai.clck.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.clck.3.gbl.js +5 -5
- package/browser/es5/ai.clck.3.gbl.js.map +1 -1
- package/browser/es5/ai.clck.3.gbl.min.js +2 -2
- package/browser/es5/ai.clck.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.clck.3.integrity.json +25 -25
- package/browser/es5/ai.clck.3.js +5 -5
- package/browser/es5/ai.clck.3.js.map +1 -1
- package/browser/es5/ai.clck.3.min.js +2 -2
- package/browser/es5/ai.clck.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-clickanalytics-js.js +3 -3
- package/dist/es5/applicationinsights-clickanalytics-js.js.map +1 -1
- package/dist/es5/applicationinsights-clickanalytics-js.min.js +2 -2
- package/dist/es5/applicationinsights-clickanalytics-js.min.js.map +1 -1
- package/dist-es5/Behaviours.js +1 -1
- package/dist-es5/ClickAnalyticsPlugin.js +2 -2
- package/dist-es5/ClickAnalyticsPlugin.js.map +1 -1
- package/dist-es5/DataCollector.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/Interfaces/Datamodel.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-clickanalytics-js.js +1 -1
- package/dist-es5/common/Utils.js +1 -1
- package/dist-es5/events/PageAction.js +1 -1
- package/dist-es5/events/WebEvent.js +1 -1
- package/dist-es5/handlers/AutoCaptureHandler.js +1 -1
- package/dist-es5/handlers/DomContentHandler.js +1 -1
- package/package.json +4 -4
- package/types/applicationinsights-clickanalytics-js.d.ts +1 -1
- package/types/applicationinsights-clickanalytics-js.namespaced.d.ts +20 -28
- package/browser/es5/ai.clck.3.3.5-nightly3.2411-14.cjs.js.map +0 -1
- package/browser/es5/ai.clck.3.3.5-nightly3.2411-14.cjs.min.js.map +0 -1
- package/browser/es5/ai.clck.3.3.5-nightly3.2411-14.gbl.js.map +0 -1
- package/browser/es5/ai.clck.3.3.5-nightly3.2411-14.integrity.json +0 -66
- package/browser/es5/ai.clck.3.3.5-nightly3.2411-14.js.map +0 -1
package/dist-es5/Behaviours.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Click Analytics, 3.3.5-nightly3.
|
|
2
|
+
* Application Insights JavaScript SDK - Click Analytics, 3.3.5-nightly3.2412-02
|
|
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.5-nightly3.
|
|
149
|
+
ClickAnalyticsPlugin.Version = '3.3.5-nightly3.2412-02';
|
|
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.5-nightly3.2411-14';\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.5-nightly3.2412-02';\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"}
|
package/dist-es5/Enums.js
CHANGED
package/dist-es5/common/Utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-clickanalytics-js",
|
|
3
|
-
"version": "3.3.5-nightly3.
|
|
3
|
+
"version": "3.3.5-nightly3.2412-02",
|
|
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",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
54
54
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
55
|
-
"@microsoft/applicationinsights-core-js": "3.3.5-nightly3.
|
|
56
|
-
"@microsoft/applicationinsights-common": "3.3.5-nightly3.
|
|
57
|
-
"@microsoft/applicationinsights-properties-js": "3.3.5-nightly3.
|
|
55
|
+
"@microsoft/applicationinsights-core-js": "3.3.5-nightly3.2412-02",
|
|
56
|
+
"@microsoft/applicationinsights-common": "3.3.5-nightly3.2412-02",
|
|
57
|
+
"@microsoft/applicationinsights-properties-js": "3.3.5-nightly3.2412-02",
|
|
58
58
|
"@nevware21/ts-utils": ">= 0.11.3 < 2.x"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.3.5-nightly3.
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.3.5-nightly3.2412-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -390,7 +390,6 @@ declare namespace ApplicationInsights {
|
|
|
390
390
|
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void | IPromise<ITelemetryUnloadState>;
|
|
391
391
|
/**
|
|
392
392
|
* Find and return the (first) plugin with the specified identifier if present
|
|
393
|
-
* @param pluginIdentifier
|
|
394
393
|
*/
|
|
395
394
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
396
395
|
/**
|
|
@@ -445,7 +444,6 @@ declare namespace ApplicationInsights {
|
|
|
445
444
|
/**
|
|
446
445
|
* Watches and tracks changes for accesses to the current config, and if the accessed config changes the
|
|
447
446
|
* handler will be recalled.
|
|
448
|
-
* @param handler
|
|
449
447
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
450
448
|
*/
|
|
451
449
|
onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
|
|
@@ -742,7 +740,7 @@ declare namespace ApplicationInsights {
|
|
|
742
740
|
*/
|
|
743
741
|
disableFlushOnBeforeUnload?: boolean;
|
|
744
742
|
/**
|
|
745
|
-
* Default value of
|
|
743
|
+
* Default value of `disableFlushOnBeforeUnload`. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
746
744
|
*/
|
|
747
745
|
disableFlushOnUnload?: boolean;
|
|
748
746
|
/**
|
|
@@ -794,12 +792,12 @@ declare namespace ApplicationInsights {
|
|
|
794
792
|
*/
|
|
795
793
|
isStorageUseDisabled?: boolean;
|
|
796
794
|
/**
|
|
797
|
-
* If false, the SDK will send all telemetry using the
|
|
795
|
+
* If false, the SDK will send all telemetry using the <a href="https://www.w3.org/TR/beacon">Beacon API</a>.
|
|
798
796
|
* @defaultValue true
|
|
799
797
|
*/
|
|
800
798
|
isBeaconApiDisabled?: boolean;
|
|
801
799
|
/**
|
|
802
|
-
* Don't use XMLHttpRequest or XDomainRequest (for IE
|
|
800
|
+
* Don't use XMLHttpRequest or XDomainRequest (for IE \< 9) by default instead attempt to use fetch() or sendBeacon.
|
|
803
801
|
* If no other transport is available it will still use XMLHttpRequest
|
|
804
802
|
*/
|
|
805
803
|
disableXhr?: boolean;
|
|
@@ -1056,8 +1054,8 @@ declare namespace ApplicationInsights {
|
|
|
1056
1054
|
* be logged to console if their severity meets the configured loggingConsoleLevel
|
|
1057
1055
|
*
|
|
1058
1056
|
* 0: ALL console logging off
|
|
1059
|
-
* 1: logs to console: severity
|
|
1060
|
-
* 2: logs to console: severity
|
|
1057
|
+
* 1: logs to console: severity \>= CRITICAL
|
|
1058
|
+
* 2: logs to console: severity \>= WARNING
|
|
1061
1059
|
*/
|
|
1062
1060
|
loggingLevelConsole?: number;
|
|
1063
1061
|
/**
|
|
@@ -1066,8 +1064,8 @@ declare namespace ApplicationInsights {
|
|
|
1066
1064
|
* the configured instrumentation key.
|
|
1067
1065
|
*
|
|
1068
1066
|
* 0: ALL iKey logging off
|
|
1069
|
-
* 1: logs to iKey: severity
|
|
1070
|
-
* 2: logs to iKey: severity
|
|
1067
|
+
* 1: logs to iKey: severity \>= CRITICAL
|
|
1068
|
+
* 2: logs to iKey: severity \>= WARNING
|
|
1071
1069
|
*/
|
|
1072
1070
|
loggingLevelTelemetry?: number;
|
|
1073
1071
|
/**
|
|
@@ -1094,7 +1092,6 @@ declare namespace ApplicationInsights {
|
|
|
1094
1092
|
*/
|
|
1095
1093
|
readonly channels?: IChannelControls[][];
|
|
1096
1094
|
/**
|
|
1097
|
-
* @type {boolean}
|
|
1098
1095
|
* Flag that disables the Instrumentation Key validation.
|
|
1099
1096
|
*/
|
|
1100
1097
|
disableInstrumentationKeyValidation?: boolean;
|
|
@@ -1125,14 +1122,12 @@ declare namespace ApplicationInsights {
|
|
|
1125
1122
|
/**
|
|
1126
1123
|
* @description Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains. It
|
|
1127
1124
|
* can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
|
|
1128
|
-
* @type {string}
|
|
1129
1125
|
* @defaultValue ""
|
|
1130
1126
|
*/
|
|
1131
1127
|
cookieDomain?: string;
|
|
1132
1128
|
/**
|
|
1133
1129
|
* @description Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application
|
|
1134
1130
|
* gateway. It can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
|
|
1135
|
-
* @type {string}
|
|
1136
1131
|
* @defaultValue ""
|
|
1137
1132
|
*/
|
|
1138
1133
|
cookiePath?: string;
|
|
@@ -1244,7 +1239,7 @@ declare namespace ApplicationInsights {
|
|
|
1244
1239
|
/**
|
|
1245
1240
|
* Optional Callback hook to allow the cookie manager to update it's configuration, not generally implemented now that
|
|
1246
1241
|
* dynamic configuration is supported
|
|
1247
|
-
* @param updateState
|
|
1242
|
+
* @param updateState - The new configuration state to apply to the cookie manager
|
|
1248
1243
|
*/
|
|
1249
1244
|
update?(updateState: ITelemetryUpdateState): void;
|
|
1250
1245
|
/**
|
|
@@ -1414,7 +1409,7 @@ declare namespace ApplicationInsights {
|
|
|
1414
1409
|
logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
1415
1410
|
/**
|
|
1416
1411
|
* Optional Callback hook to allow the diagnostic logger to update it's configuration
|
|
1417
|
-
* @param updateState
|
|
1412
|
+
* @param updateState - The new configuration state to apply to the diagnostic logger
|
|
1418
1413
|
*/
|
|
1419
1414
|
update?(updateState: ITelemetryUpdateState): void;
|
|
1420
1415
|
/**
|
|
@@ -1435,7 +1430,7 @@ declare namespace ApplicationInsights {
|
|
|
1435
1430
|
getName(): string;
|
|
1436
1431
|
/**
|
|
1437
1432
|
* Sets the current name of the page
|
|
1438
|
-
* @param pageName
|
|
1433
|
+
* @param pageName - The name of the page
|
|
1439
1434
|
*/
|
|
1440
1435
|
setName(pageName: string): void;
|
|
1441
1436
|
/**
|
|
@@ -1467,7 +1462,7 @@ declare namespace ApplicationInsights {
|
|
|
1467
1462
|
getTraceFlags(): number | undefined;
|
|
1468
1463
|
/**
|
|
1469
1464
|
* https://www.w3.org/TR/trace-context/#trace-flags
|
|
1470
|
-
* @param newValue
|
|
1465
|
+
* @param newValue - An integer representation of the W3C TraceContext trace-flags.
|
|
1471
1466
|
*/
|
|
1472
1467
|
setTraceFlags(newValue?: number): void;
|
|
1473
1468
|
}
|
|
@@ -1475,12 +1470,10 @@ declare namespace ApplicationInsights {
|
|
|
1475
1470
|
interface IEventTelemetry extends IPartC {
|
|
1476
1471
|
/**
|
|
1477
1472
|
* @description An event name string
|
|
1478
|
-
* @type {string}
|
|
1479
1473
|
*/
|
|
1480
1474
|
name: string;
|
|
1481
1475
|
/**
|
|
1482
1476
|
* @description custom defined iKey
|
|
1483
|
-
* @type {string}
|
|
1484
1477
|
*/
|
|
1485
1478
|
iKey?: string;
|
|
1486
1479
|
}
|
|
@@ -1519,10 +1512,10 @@ declare namespace ApplicationInsights {
|
|
|
1519
1512
|
*
|
|
1520
1513
|
* This callback is called before telemetry data is sent, allowing for dynamic customization of the logs.
|
|
1521
1514
|
*
|
|
1522
|
-
* @returns
|
|
1515
|
+
* @returns An object with the following property:
|
|
1523
1516
|
* - logs: An array of strings, where each string represents a log entry to be included in the telemetry.
|
|
1524
1517
|
*
|
|
1525
|
-
* @property
|
|
1518
|
+
* @property maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
|
|
1526
1519
|
*/
|
|
1527
1520
|
expLog?: () => {
|
|
1528
1521
|
logs: string[];
|
|
@@ -1581,32 +1574,31 @@ declare namespace ApplicationInsights {
|
|
|
1581
1574
|
getUrl: () => string;
|
|
1582
1575
|
/**
|
|
1583
1576
|
* Create payload data
|
|
1584
|
-
* @param data data
|
|
1585
1577
|
* @returns IPayloadData
|
|
1586
1578
|
*/
|
|
1587
1579
|
createPayload: (data: string | Uint8Array) => IPayloadData;
|
|
1588
1580
|
/**
|
|
1589
1581
|
* Serialize an item into a string
|
|
1590
|
-
* @param input telemetry item
|
|
1591
|
-
* @param convertUndefined convert undefined to a custom-defined object
|
|
1582
|
+
* @param input - telemetry item
|
|
1583
|
+
* @param convertUndefined - convert undefined to a custom-defined object
|
|
1592
1584
|
* @returns Serialized string
|
|
1593
1585
|
*/
|
|
1594
1586
|
serialize?: (input: ITelemetryItem, convertUndefined?: any) => string;
|
|
1595
1587
|
/**
|
|
1596
1588
|
* Batch an array of strings into one string
|
|
1597
|
-
* @param arr array of strings
|
|
1589
|
+
* @param arr - array of strings
|
|
1598
1590
|
* @returns a string represent all items in the given array
|
|
1599
1591
|
*/
|
|
1600
1592
|
batch?: (arr: string[]) => string;
|
|
1601
1593
|
/**
|
|
1602
1594
|
* If the item should be processed by offline channel
|
|
1603
|
-
* @param evt telemetry item
|
|
1595
|
+
* @param evt - telemetry item
|
|
1604
1596
|
* @returns should process or not
|
|
1605
1597
|
*/
|
|
1606
1598
|
shouldProcess?: (evt: ITelemetryItem) => boolean;
|
|
1607
1599
|
/**
|
|
1608
1600
|
* Create 1ds payload data
|
|
1609
|
-
* @param evts ITelemetryItems
|
|
1601
|
+
* @param evts - ITelemetryItems
|
|
1610
1602
|
* @returns IPayloadData
|
|
1611
1603
|
*/
|
|
1612
1604
|
createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
|
|
@@ -1666,7 +1658,7 @@ declare namespace ApplicationInsights {
|
|
|
1666
1658
|
/**
|
|
1667
1659
|
* [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
|
|
1668
1660
|
* the event can be displayed via the debug plugin extension.
|
|
1669
|
-
* @param perfEvent
|
|
1661
|
+
* @param perfEvent - The performance event object
|
|
1670
1662
|
*/
|
|
1671
1663
|
perfEvent?: (perfEvent: IPerfEvent) => void;
|
|
1672
1664
|
/**
|