@microsoft/applicationinsights-clickanalytics-js 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28

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 (107) hide show
  1. package/browser/{ai.clck.3.0.0-beta.2303-11.cjs.js → es5/ai.clck.3.0.0-nightly3.2304-28.cjs.js} +810 -786
  2. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.cjs.js.map +1 -0
  3. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.cjs.min.js +6 -0
  4. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.cjs.min.js.map +1 -0
  5. package/browser/{ai.clck.3.0.0-beta.2303-11.gbl.js → es5/ai.clck.3.0.0-nightly3.2304-28.gbl.js} +809 -785
  6. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.gbl.js.map +1 -0
  7. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.gbl.min.js +6 -0
  8. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.integrity.json +66 -0
  10. package/browser/{ai.clck.3.0.0-beta.2303-11.js → es5/ai.clck.3.0.0-nightly3.2304-28.js} +809 -785
  11. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.js.map +1 -0
  12. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.min.js +6 -0
  13. package/browser/es5/ai.clck.3.0.0-nightly3.2304-28.min.js.map +1 -0
  14. package/browser/{ai.clck.3.cjs.js → es5/ai.clck.3.cjs.js} +809 -785
  15. package/browser/es5/ai.clck.3.cjs.js.map +1 -0
  16. package/browser/es5/ai.clck.3.cjs.min.js +6 -0
  17. package/browser/es5/ai.clck.3.cjs.min.js.map +1 -0
  18. package/browser/{ai.clck.3.gbl.js → es5/ai.clck.3.gbl.js} +808 -784
  19. package/browser/es5/ai.clck.3.gbl.js.map +1 -0
  20. package/browser/es5/ai.clck.3.gbl.min.js +6 -0
  21. package/browser/es5/ai.clck.3.gbl.min.js.map +1 -0
  22. package/browser/{ai.clck.3.js → es5/ai.clck.3.js} +808 -784
  23. package/browser/es5/ai.clck.3.js.map +1 -0
  24. package/browser/es5/ai.clck.3.min.js +6 -0
  25. package/browser/es5/ai.clck.3.min.js.map +1 -0
  26. package/dist/{applicationinsights-clickanalytics-js.js → es5/applicationinsights-clickanalytics-js.js} +808 -784
  27. package/dist/es5/applicationinsights-clickanalytics-js.js.map +1 -0
  28. package/dist/es5/applicationinsights-clickanalytics-js.min.js +6 -0
  29. package/dist/es5/applicationinsights-clickanalytics-js.min.js.map +1 -0
  30. package/{dist-esm → dist-es5}/Behaviours.js +1 -1
  31. package/{dist-esm → dist-es5}/ClickAnalyticsPlugin.js +2 -2
  32. package/{dist-esm → dist-es5}/ClickAnalyticsPlugin.js.map +1 -1
  33. package/{dist-esm → dist-es5}/DataCollector.js +1 -1
  34. package/{dist-esm → dist-es5}/Enums.js +1 -1
  35. package/{dist-esm → dist-es5}/Interfaces/Datamodel.js +1 -1
  36. package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
  37. package/{dist-esm → dist-es5}/applicationinsights-clickanalytics-js.js +1 -1
  38. package/{dist-esm → dist-es5}/common/Utils.js +1 -1
  39. package/{dist-esm → dist-es5}/events/PageAction.js +1 -1
  40. package/{dist-esm → dist-es5}/events/WebEvent.js +1 -1
  41. package/{dist-esm → dist-es5}/handlers/AutoCaptureHandler.js +1 -1
  42. package/{dist-esm → dist-es5}/handlers/DomContentHandler.js +3 -2
  43. package/dist-es5/handlers/DomContentHandler.js.map +1 -0
  44. package/package.json +19 -18
  45. package/tsconfig.json +4 -3
  46. package/types/applicationinsights-clickanalytics-js.d.ts +101 -2
  47. package/{dist/applicationinsights-clickanalytics-js.d.ts → types/applicationinsights-clickanalytics-js.namespaced.d.ts} +1 -1
  48. package/browser/ai.clck.3.0.0-beta.2303-11.cjs.js.map +0 -1
  49. package/browser/ai.clck.3.0.0-beta.2303-11.cjs.min.js +0 -6
  50. package/browser/ai.clck.3.0.0-beta.2303-11.cjs.min.js.map +0 -1
  51. package/browser/ai.clck.3.0.0-beta.2303-11.gbl.js.map +0 -1
  52. package/browser/ai.clck.3.0.0-beta.2303-11.gbl.min.js +0 -6
  53. package/browser/ai.clck.3.0.0-beta.2303-11.gbl.min.js.map +0 -1
  54. package/browser/ai.clck.3.0.0-beta.2303-11.integrity.json +0 -66
  55. package/browser/ai.clck.3.0.0-beta.2303-11.js.map +0 -1
  56. package/browser/ai.clck.3.0.0-beta.2303-11.min.js +0 -6
  57. package/browser/ai.clck.3.0.0-beta.2303-11.min.js.map +0 -1
  58. package/browser/ai.clck.3.cjs.js.map +0 -1
  59. package/browser/ai.clck.3.cjs.min.js +0 -6
  60. package/browser/ai.clck.3.cjs.min.js.map +0 -1
  61. package/browser/ai.clck.3.gbl.js.map +0 -1
  62. package/browser/ai.clck.3.gbl.min.js +0 -6
  63. package/browser/ai.clck.3.gbl.min.js.map +0 -1
  64. package/browser/ai.clck.3.js.map +0 -1
  65. package/browser/ai.clck.3.min.js +0 -6
  66. package/browser/ai.clck.3.min.js.map +0 -1
  67. package/dist/applicationinsights-clickanalytics-js.api.json +0 -695
  68. package/dist/applicationinsights-clickanalytics-js.api.md +0 -46
  69. package/dist/applicationinsights-clickanalytics-js.js.map +0 -1
  70. package/dist/applicationinsights-clickanalytics-js.min.js +0 -6
  71. package/dist/applicationinsights-clickanalytics-js.min.js.map +0 -1
  72. package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +0 -102
  73. package/dist-esm/handlers/DomContentHandler.js.map +0 -1
  74. package/src/Behaviours.ts +0 -165
  75. package/src/ClickAnalyticsPlugin.ts +0 -183
  76. package/src/DataCollector.ts +0 -159
  77. package/src/Enums.ts +0 -15
  78. package/src/Interfaces/Datamodel.ts +0 -300
  79. package/src/__DynamicConstants.ts +0 -61
  80. package/src/applicationinsights-clickanalytics-js.ts +0 -6
  81. package/src/common/Utils.ts +0 -281
  82. package/src/events/PageAction.ts +0 -197
  83. package/src/events/WebEvent.ts +0 -202
  84. package/src/handlers/AutoCaptureHandler.ts +0 -121
  85. package/src/handlers/DomContentHandler.ts +0 -395
  86. package/types/Behaviours.d.ts +0 -99
  87. package/types/ClickAnalyticsPlugin.d.ts +0 -22
  88. package/types/DataCollector.d.ts +0 -39
  89. package/types/Enums.d.ts +0 -14
  90. package/types/Interfaces/Datamodel.d.ts +0 -291
  91. package/types/__DynamicConstants.d.ts +0 -49
  92. package/types/common/Utils.d.ts +0 -123
  93. package/types/events/PageAction.d.ts +0 -28
  94. package/types/events/WebEvent.d.ts +0 -54
  95. package/types/handlers/AutoCaptureHandler.d.ts +0 -20
  96. package/types/handlers/DomContentHandler.d.ts +0 -29
  97. package/types/tsdoc-metadata.json +0 -11
  98. /package/{dist-esm → dist-es5}/Behaviours.js.map +0 -0
  99. /package/{dist-esm → dist-es5}/DataCollector.js.map +0 -0
  100. /package/{dist-esm → dist-es5}/Enums.js.map +0 -0
  101. /package/{dist-esm → dist-es5}/Interfaces/Datamodel.js.map +0 -0
  102. /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
  103. /package/{dist-esm → dist-es5}/applicationinsights-clickanalytics-js.js.map +0 -0
  104. /package/{dist-esm → dist-es5}/common/Utils.js.map +0 -0
  105. /package/{dist-esm → dist-es5}/events/PageAction.js.map +0 -0
  106. /package/{dist-esm → dist-es5}/events/WebEvent.js.map +0 -0
  107. /package/{dist-esm → dist-es5}/handlers/AutoCaptureHandler.js.map +0 -0
@@ -1,159 +0,0 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import { getDocument, getLocation, getWindow, hasDocument, isFunction } from "@microsoft/applicationinsights-core-js";
6
- import { scheduleTimeout } from "@nevware21/ts-utils";
7
- import { IClickAnalyticsConfiguration, IOverrideValues } from "./Interfaces/Datamodel";
8
- import { findClosestAnchor, isValueAssigned } from "./common/Utils";
9
-
10
- var clickCaptureInputTypes = { BUTTON: true, CHECKBOX: true, RADIO: true, RESET: true, SUBMIT: true };
11
-
12
-
13
- /**
14
- * Get Image href of a given HTMLImageElement
15
- * @param element - An html image element
16
- * @returns Href value.
17
- */
18
- export function getImageHref(element: HTMLImageElement): string {
19
- var temp = element;
20
- if (temp) {
21
- var parent = findClosestAnchor(temp as Element);
22
- if ((parent as any).length === 1) {
23
- const firstParent = parent[0];
24
- if (firstParent.href) {
25
- return firstParent.href;
26
- } else if (firstParent.src) {
27
- return (firstParent.src);
28
- }
29
- }
30
- }
31
- return "";
32
- }
33
-
34
-
35
- /**
36
- * Get click target
37
- * @returns Click target URI
38
- */
39
- export function getClickTarget(element: any) {
40
- var clickTarget = "";
41
- switch (element.tagName) {
42
- case "A":
43
- case "AREA":
44
- clickTarget = element.href || "";
45
- break;
46
- case "IMG":
47
- clickTarget = getImageHref(element as HTMLImageElement);
48
- break;
49
- case "INPUT":
50
- var type = element.type;
51
- if (type && (clickCaptureInputTypes[type.toUpperCase()])) {
52
- let loc = getLocation() || ({} as Location);
53
- if (element.form) {
54
- clickTarget = element.form.action || (loc.pathname || "");
55
- } else {
56
- clickTarget = loc.pathname || "";
57
- }
58
- }
59
- break;
60
- default:
61
- break;
62
- }
63
- return clickTarget;
64
- }
65
-
66
- /**
67
- * Execute callback when DOM finish loading
68
- */
69
- export function onDomLoaded(callback: () => void) {
70
- onDomReadyDo(() => {
71
- if (hasDocument && document.readyState === "complete") {
72
- callback();
73
- } else {
74
- let win = getWindow();
75
- if (win) {
76
- if (win.addEventListener) {
77
- win.addEventListener("load", () => {
78
- callback();
79
- }); // NB **not** 'onload'
80
- } else if ((win as any).attachEvent) {
81
- (win as any).attachEvent("onload", () => {
82
- callback();
83
- }); // IE8
84
- }
85
- }
86
- }
87
- });
88
- }
89
-
90
- // use smallest domready ever for IE8. When IE8 is deprecated, use addEventListener('DomContentLoaded')
91
- function onDomReadyDo(f: any) {
92
- /// <summary> fires function f on domRead </summary>
93
- /// <param type='function'>function to call on domRead</param>
94
-
95
- let doc = getDocument() || ({} as Document);
96
- /in/.test(doc.readyState) ? scheduleTimeout(() => {
97
- onDomReadyDo(f);
98
- }, 100) : f.call();
99
- }
100
-
101
- /**
102
- * Gets the pageName from the DOM or by calling a override if set.
103
- * @param config - configuration object
104
- * @returns Page name.
105
- */
106
- export function getPageName(config: IClickAnalyticsConfiguration, overrideValues: IOverrideValues) {
107
- /// <summary>
108
- /// Gets the pageName from the DOM or by calling a override if set.
109
- /// </summary>
110
-
111
- if (overrideValues && overrideValues.pageName) {
112
- return overrideValues.pageName;
113
- } else if (config.callback && isFunction(config.callback.pageName)) {
114
- return config.callback.pageName();
115
- } else if (config.coreData && config.coreData.pageName) {
116
- return config.coreData.pageName;
117
- } else {
118
- const doc = getDocument();
119
- return doc && doc.title || "";
120
- }
121
- }
122
-
123
- /**
124
- * Sanitize URL values
125
- * @param config - Configuration
126
- * @param location - window.location or document.location
127
- * @returns Flag indicating if an element is market PII.
128
- */
129
- export function sanitizeUrl(config: IClickAnalyticsConfiguration, location: Location): string {
130
- if (!location) {
131
- return null;
132
- }
133
- var url = location.protocol + "//" + (location.hostname || location.host) + // location.hostname is not supported on Opera and Opera for Android
134
- (isValueAssigned(location.port) ? ":" + location.port : "") +
135
- location.pathname;
136
-
137
- if (!!config.urlCollectHash) { // false by default
138
- url += (isValueAssigned(location.hash)? location.hash : "");
139
- }
140
-
141
- if (!!config.urlCollectQuery) { // false by default
142
- url += (isValueAssigned(location.search)? location.search : "");
143
- }
144
-
145
- return url;
146
- }
147
-
148
- /**
149
- * Get URI, sanitize the value if configured on
150
- * @param config - Configuration
151
- * @param location - window.location or document.location
152
- * @returns Flag indicating if an element is market PII.
153
- */
154
- export function getUri(config: IClickAnalyticsConfiguration, location: any): string {
155
- if (config.coreData && config.coreData.requestUri && config.coreData.requestUri !== "") {
156
- return config.coreData.requestUri;
157
- }
158
- return sanitizeUrl(config, location);
159
- }
package/src/Enums.ts DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- export const ActionType = {
6
- CLICKLEFT: "CL",
7
- CLICKRIGHT: "CR",
8
- CLICKMIDDLE: "CM",
9
- SCROLL: "S",
10
- ZOOM: "Z",
11
- RESIZE: "R",
12
- KEYBOARDENTER: "KE",
13
- KEYBOARDSPACE: "KS",
14
- OTHER: "O"
15
- };
@@ -1,300 +0,0 @@
1
- /**
2
- * @copyright Microsoft 2020
3
- */
4
-
5
- import { IEventTelemetry } from "@microsoft/applicationinsights-common";
6
- import { IUnloadableComponent } from "@microsoft/applicationinsights-core-js";
7
-
8
- /**
9
- * ClickAnalytics Configuration
10
- */
11
- export interface IClickAnalyticsConfiguration {
12
- /**
13
- * Automatic capture configuration. Default is true
14
- */
15
- autoCapture?: boolean;
16
- /**
17
- * Callbacks configuration
18
- */
19
- callback?: IValueCallback;
20
- /**
21
- * Page tags
22
- */
23
- pageTags?: { [name: string]: string | number | boolean | string[] | number[] | boolean[] | object };
24
- /**
25
- * Core data configuration
26
- */
27
- coreData?: ICoreData;
28
- /**
29
- * Custom Data Tags provided to ovverride default tags used to capture click data.
30
- */
31
- dataTags?: ICustomDataTags;
32
- /**
33
- * Validator to use for the data-bhvr value
34
- */
35
- behaviorValidator?: (value: string | number) => string | number;
36
- /**
37
- * Default Behavior value when Right Click event has occured. This
38
- * value will be ovverriden if the element has the data-*-bhvr attribute present.
39
- */
40
- defaultRightClickBhvr?: string | number;
41
- /**
42
- * Flag to drop events that do not have custom event names, no parentId and no data in content (basically no useful click data).
43
- * Default will be false
44
- */
45
- dropInvalidEvents?: boolean;
46
- /**
47
- * Enables the logging of values after a "#" character of the URL. Default is "false."
48
- */
49
- urlCollectHash?: boolean;
50
- /**
51
- * Enables the logging of the query string of the URL. Default is "false."
52
- */
53
- urlCollectQuery?: boolean;
54
- }
55
-
56
- /**
57
- * Custom Data Tags Configuration
58
- */
59
- export interface ICustomDataTags {
60
- /**
61
- * When a particular element is not tagged with content name prefix or content name prefix is not provided by user, this flag is used to collect standard HTML attribute for contentName and id.
62
- */
63
- useDefaultContentNameOrId?: boolean;
64
- /**
65
- * Automatic capture content name and value of elements which are tagged with provided prefix
66
- */
67
- customDataPrefix?: string;
68
- /**
69
- * Click Analytics supports a JSON blob content meta data tagging instead of individual data-* attributes. The default attribute is data-ai-blob. This property allows for changing that attribute name.
70
- */
71
- aiBlobAttributeTag?: string;
72
- /**
73
- * Automatic capture metadata name and content with provided prefix
74
- */
75
- metaDataPrefix?: string;
76
- /**
77
- * Automatic capture all metadata names and content. Default is false. If enabled this will override provided metaTagPrefix.
78
- */
79
- captureAllMetaDataContent?: boolean;
80
- /**
81
- * Stop traversing up the DOM to capture content name and value of elements when encountered with this tag
82
- */
83
- parentDataTag?: string;
84
- /**
85
- * Custom attribute Tag to not track telemetry data
86
- */
87
- dntDataTag?: string
88
- }
89
-
90
- /**
91
- * Core data configuration
92
- */
93
- export interface ICoreData {
94
- /**
95
- * document.referrer is the default. This is used to override the default value.
96
- */
97
- referrerUri?: string;
98
- /**
99
- * window.location.href is the default. This is used to override the default value.
100
- */
101
- requestUri?: string;
102
- /**
103
- * Default page name is derived from the url. This is used to override the default.
104
- */
105
- pageName?: string;
106
- /**
107
- * PageType is captured from a meta tag named awa-pageType. This is used to override the value or bypass defining meta tags.
108
- */
109
- pageType?: string;
110
- }
111
-
112
-
113
- /**
114
- * Value Callbacks configuration
115
- */
116
- export interface IValueCallback {
117
-
118
- /**
119
- * Function to override the default pageName capturing behavior.
120
- */
121
- pageName?: () => string;
122
- /**
123
- * A callback function to augument the default pageTags collected during pageAction event.
124
- */
125
- pageActionPageTags?: (element?: Element) => IPageTags;
126
- /**
127
- * A callback function to populate customized contentName.
128
- */
129
- contentName?: (element?: any, useDefaultContentName?: boolean) => string;
130
- }
131
-
132
-
133
- /**
134
- * PageTags format
135
- */
136
- export interface IPageTags {
137
- /**
138
- * Meta data tags
139
- */
140
- metaTags?: { [name: string]: string };
141
- /**
142
- * Any other page tag
143
- */
144
- [name: string]: string | number | boolean | string[] | number[] | boolean[] | object | undefined;
145
- }
146
-
147
- /**
148
- * Auto capture handler interface
149
- */
150
- export interface IAutoCaptureHandler extends IUnloadableComponent {
151
- /**
152
- * Auto capture click
153
- */
154
- click: () => void;
155
- }
156
-
157
- export interface IPageActionOverrideValues extends IOverrideValues {
158
- /**
159
- * Uri of the referrer page
160
- */
161
- refUri?: string;
162
- /**
163
- * One of the awa.actionType values
164
- */
165
- actionType?: string;
166
- /**
167
- * Target uri for PageAction events
168
- */
169
- targetUri?: string;
170
- /**
171
- * Click coordinates relative to the top left of the fully rendered content area in the browser
172
- */
173
- clickCoordinateX?: number;
174
- /**
175
- * Click coordinates relative to the top left of the fully rendered content area in the browser
176
- */
177
- clickCoordinateY?: number;
178
- /**
179
- * KVP of the content
180
- */
181
- content?: any;
182
- /**
183
- * KVPs to be added to the content tags collected on a Page Action event; extends the items in the Content blob in Page Action events
184
- */
185
- contentTags?: any;
186
- }
187
-
188
- /**
189
- * Override values interface
190
- */
191
- export interface IOverrideValues {
192
- /**
193
- * One of the awa.behavior values.
194
- */
195
- behavior?: string | number;
196
- /**
197
- * Page name
198
- */
199
- pageName?: string;
200
- /**
201
- * Page type
202
- */
203
- pageType?: string;
204
- /**
205
- * KVP to be added to the page tags collected
206
- */
207
- pageTags?: any;
208
- /**
209
- * Indicates if the event was fired automatically
210
- */
211
- isAuto?: boolean;
212
- }
213
-
214
- /**
215
- * Content interface
216
- */
217
- export interface IContent {
218
- /**
219
- * Friendly name (Content Name) of the content to be used reporting/visualization purposes
220
- */
221
- cN?: string;
222
- /**
223
- * Unique identifier (friendly names allowed) of the content (Content Id) as designated by the content provider.
224
- * The name should be unique per contentSource such that the two make up the compound key and such that the contentId can be
225
- * looked up in the contentSource for additional metadata.
226
- */
227
- id?: string;
228
- /**
229
- * User specified custom content properties
230
- */
231
- [name: string]: string | number | boolean | string[] | number[] | boolean[] | object | undefined;
232
- }
233
-
234
- /**
235
- * Content handler interface
236
- */
237
- export interface IContentHandler extends IUnloadableComponent {
238
- /**
239
- * Get meta data
240
- */
241
- getMetadata: () => { [name: string]: string };
242
- /**
243
- * Get element content
244
- */
245
- getElementContent: (element: Element) => IContent;
246
- }
247
-
248
- /**
249
- * Page Action event
250
- */
251
- export interface IPageActionTelemetry extends IEventTelemetry {
252
- /**
253
- * Target uri for PageAction events
254
- */
255
- targetUri?: string;
256
- /**
257
- * One of the awa.actionType values
258
- */
259
- actionType?: string;
260
- /**
261
- * One of the awa.behavior values.
262
- */
263
- behavior?: string | number;
264
- /**
265
- * X, Y representing the absolute co-ordinates withrespect to topleft corner of the page. This should be normalized for the screen resolution to provide better heat map.
266
- */
267
- clickCoordinates?: string;
268
- /**
269
- * JSON-formatted array of content acted upon
270
- */
271
- content?: any;
272
- /**
273
- * Version indicating content version which aids in parsing the content.
274
- */
275
- contentVer?: string;
276
- /**
277
- * Uri of the referrer, this is a convinence for adaptors to just leverage PageAction for click analytics without linking it to the respective Page Views.
278
- */
279
- refUri?: string;
280
- /**
281
- * Time taken in milliseconds since the user saw the page and took the action (such as click on a link, etc.). This will be in seconds.
282
- */
283
- timeToAction?: number;
284
- /**
285
- * A relative or absolute URL that identifies the page or other item. Defaults to the window location.
286
- */
287
- uri?: string;
288
- /**
289
- * Page type
290
- */
291
- pageType?: string;
292
- /**
293
- * Title of the page
294
- */
295
- pageName?: string;
296
- /**
297
- * Content Id (Parent Id) of the parent in which the content was located;
298
- */
299
- parentId?: string;
300
- }
@@ -1,61 +0,0 @@
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_INDEX_OF = "indexOf"; // Count: 9
14
- export const _DYN_TRACK_PAGE_ACTION = "trackPageAction"; // Count: 4
15
- export const _DYN_PAGE_ACTION_PAGE_TAG0 = "pageActionPageTags"; // Count: 2
16
- export const _DYN__DO_UNLOAD = "_doUnload"; // Count: 3
17
- export const _DYN_PAGE_NAME = "pageName"; // Count: 10
18
- export const _DYN_CONTENT_NAME = "contentName"; // Count: 13
19
- export const _DYN_REQUEST_URI = "requestUri"; // Count: 4
20
- export const _DYN_PAGE_TYPE = "pageType"; // Count: 7
21
- export const _DYN_USE_DEFAULT_CONTENT_1 = "useDefaultContentNameOrId"; // Count: 5
22
- export const _DYN_CAPTURE_ALL_META_DAT2 = "captureAllMetaDataContent"; // Count: 3
23
- export const _DYN_META_DATA_PREFIX = "metaDataPrefix"; // Count: 3
24
- export const _DYN_PARENT_DATA_TAG = "parentDataTag"; // Count: 4
25
- export const _DYN_BEHAVIOR_VALIDATOR = "behaviorValidator"; // Count: 2
26
- export const _DYN_DEFAULT_RIGHT_CLICK_3 = "defaultRightClickBhvr"; // Count: 2
27
- export const _DYN_LENGTH = "length"; // Count: 5
28
- export const _DYN_TAG_NAME = "tagName"; // Count: 4
29
- export const _DYN_TO_UPPER_CASE = "toUpperCase"; // Count: 4
30
- export const _DYN_PATHNAME = "pathname"; // Count: 3
31
- export const _DYN_ADD_EVENT_LISTENER = "addEventListener"; // Count: 2
32
- export const _DYN_CORE_DATA = "coreData"; // Count: 4
33
- export const _DYN_GET_ATTRIBUTE = "getAttribute"; // Count: 6
34
- export const _DYN_PARENT_NODE = "parentNode"; // Count: 3
35
- export const _DYN_CUSTOM_DATA_PREFIX = "customDataPrefix"; // Count: 3
36
- export const _DYN_NAME = "name"; // Count: 8
37
- export const _DYN_DATA = "data"; // Count: 15
38
- export const _DYN_PROPERTIES = "properties"; // Count: 4
39
- export const _DYN_ACTION_TYPE = "actionType"; // Count: 9
40
- export const _DYN_BEHAVIOR = "behavior"; // Count: 7
41
- export const _DYN_CLICK_COORDINATES = "clickCoordinates"; // Count: 2
42
- export const _DYN_CONTENT = "content"; // Count: 4
43
- export const _DYN_REF_URI = "refUri"; // Count: 4
44
- export const _DYN_PARENT_ID = "parentId"; // Count: 3
45
- export const _DYN_CAPTURE_PAGE_ACTION = "capturePageAction"; // Count: 2
46
- export const _DYN_SET_COMMON_PROPERTIE4 = "setCommonProperties"; // Count: 2
47
- export const _DYN_GET_ELEMENT_CONTENT = "getElementContent"; // Count: 2
48
- export const _DYN__GET_VALID_BEHAVIOR = "_getValidBehavior"; // Count: 3
49
- export const _DYN__TRACE_LOGGER = "_traceLogger"; // Count: 3
50
- export const _DYN_CLICK_COORDINATE_X = "clickCoordinateX"; // Count: 3
51
- export const _DYN_CLICK_COORDINATE_Y = "clickCoordinateY"; // Count: 3
52
- export const _DYN__CONFIG = "_config"; // Count: 9
53
- export const _DYN_DATA_TAGS = "dataTags"; // Count: 6
54
- export const _DYN__PAGE_TAGS = "_pageTags"; // Count: 6
55
- export const _DYN__PAGE_TAGS_CALLBACK = "_pageTagsCallback"; // Count: 3
56
- export const _DYN__META_TAGS = "_metaTags"; // Count: 6
57
- export const _DYN_SET_BASIC_PROPERTIES = "setBasicProperties"; // Count: 2
58
- export const _DYN__PAGE_TYPE_META_TAG = "_pageTypeMetaTag"; // Count: 3
59
- export const _DYN__BEHAVIOR_META_TAG = "_behaviorMetaTag"; // Count: 3
60
- export const _DYN_PARENT_ELEMENT = "parentElement"; // Count: 3
61
- export const _DYN_ATTRIBUTES = "attributes"; // Count: 4
@@ -1,6 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { ClickAnalyticsPlugin, BehaviorMapValidator, BehaviorValueValidator, BehaviorEnumValidator } from "./ClickAnalyticsPlugin";
5
- export { ClickAnalyticsPlugin, BehaviorMapValidator, BehaviorValueValidator, BehaviorEnumValidator }
6
-