@microsoft/applicationinsights-clickanalytics-js 2.8.15-nightly.2307-12 → 2.8.15-nightly.2307-23

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 (54) hide show
  1. package/browser/{ai.clck.2.8.15-nightly.2307-12.cjs.js → ai.clck.2.8.15-nightly.2307-23.cjs.js} +7 -4
  2. package/browser/{ai.clck.2.8.15-nightly.2307-12.cjs.js.map → ai.clck.2.8.15-nightly.2307-23.cjs.js.map} +1 -1
  3. package/browser/{ai.clck.2.8.15-nightly.2307-12.cjs.min.js → ai.clck.2.8.15-nightly.2307-23.cjs.min.js} +3 -3
  4. package/browser/{ai.clck.2.8.15-nightly.2307-12.cjs.min.js.map → ai.clck.2.8.15-nightly.2307-23.cjs.min.js.map} +1 -1
  5. package/browser/ai.clck.2.8.15-nightly.2307-23.gbl.js +3070 -0
  6. package/browser/{ai.clck.2.8.15-nightly.2307-12.gbl.js.map → ai.clck.2.8.15-nightly.2307-23.gbl.js.map} +1 -1
  7. package/browser/ai.clck.2.8.15-nightly.2307-23.gbl.min.js +6 -0
  8. package/browser/{ai.clck.2.8.15-nightly.2307-12.gbl.min.js.map → ai.clck.2.8.15-nightly.2307-23.gbl.min.js.map} +1 -1
  9. package/browser/ai.clck.2.8.15-nightly.2307-23.integrity.json +66 -0
  10. package/browser/ai.clck.2.8.15-nightly.2307-23.js +3074 -0
  11. package/browser/{ai.clck.2.8.15-nightly.2307-12.js.map → ai.clck.2.8.15-nightly.2307-23.js.map} +1 -1
  12. package/browser/ai.clck.2.8.15-nightly.2307-23.min.js +6 -0
  13. package/browser/{ai.clck.2.8.15-nightly.2307-12.min.js.map → ai.clck.2.8.15-nightly.2307-23.min.js.map} +1 -1
  14. package/browser/ai.clck.2.cjs.js +6 -3
  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 +2789 -2766
  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 +2791 -2766
  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 +291 -0
  27. package/dist/applicationinsights-clickanalytics-js.api.md +19 -0
  28. package/dist/applicationinsights-clickanalytics-js.d.ts +141 -1
  29. package/dist/applicationinsights-clickanalytics-js.js +3 -3
  30. package/dist/applicationinsights-clickanalytics-js.js.map +1 -1
  31. package/dist/applicationinsights-clickanalytics-js.min.js +2 -2
  32. package/dist/applicationinsights-clickanalytics-js.min.js.map +1 -1
  33. package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +141 -1
  34. package/dist-esm/Behaviours.js +1 -1
  35. package/dist-esm/ClickAnalyticsPlugin.js +2 -2
  36. package/dist-esm/ClickAnalyticsPlugin.js.map +1 -1
  37. package/dist-esm/DataCollector.js +1 -1
  38. package/dist-esm/Enums.js +1 -1
  39. package/dist-esm/Interfaces/Datamodel.js +1 -1
  40. package/dist-esm/__DynamicConstants.js +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 +4 -4
  48. package/src/applicationinsights-clickanalytics-js.ts +2 -1
  49. package/types/applicationinsights-clickanalytics-js.d.ts +2 -1
  50. package/browser/ai.clck.2.8.15-nightly.2307-12.gbl.js +0 -3047
  51. package/browser/ai.clck.2.8.15-nightly.2307-12.gbl.min.js +0 -6
  52. package/browser/ai.clck.2.8.15-nightly.2307-12.integrity.json +0 -66
  53. package/browser/ai.clck.2.8.15-nightly.2307-12.js +0 -3049
  54. package/browser/ai.clck.2.8.15-nightly.2307-12.min.js +0 -6
@@ -688,6 +688,297 @@
688
688
  "endIndex": 2
689
689
  },
690
690
  "implementsTokenRanges": []
691
+ },
692
+ {
693
+ "kind": "Interface",
694
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration:interface",
695
+ "docComment": "/**\n * ClickAnalytics Configuration\n */\n",
696
+ "excerptTokens": [
697
+ {
698
+ "kind": "Content",
699
+ "text": "export interface IClickAnalyticsConfiguration "
700
+ }
701
+ ],
702
+ "fileUrlPath": "types/Interfaces/Datamodel.d.ts",
703
+ "releaseTag": "Public",
704
+ "name": "IClickAnalyticsConfiguration",
705
+ "preserveMemberOrder": false,
706
+ "members": [
707
+ {
708
+ "kind": "PropertySignature",
709
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#autoCapture:member",
710
+ "docComment": "/**\n * Automatic capture configuration. Default is true\n */\n",
711
+ "excerptTokens": [
712
+ {
713
+ "kind": "Content",
714
+ "text": "autoCapture?: "
715
+ },
716
+ {
717
+ "kind": "Content",
718
+ "text": "boolean"
719
+ },
720
+ {
721
+ "kind": "Content",
722
+ "text": ";"
723
+ }
724
+ ],
725
+ "isReadonly": false,
726
+ "isOptional": true,
727
+ "releaseTag": "Public",
728
+ "name": "autoCapture",
729
+ "propertyTypeTokenRange": {
730
+ "startIndex": 1,
731
+ "endIndex": 2
732
+ }
733
+ },
734
+ {
735
+ "kind": "PropertySignature",
736
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#behaviorValidator:member",
737
+ "docComment": "/**\n * Validator to use for the data-bhvr value\n */\n",
738
+ "excerptTokens": [
739
+ {
740
+ "kind": "Content",
741
+ "text": "behaviorValidator?: "
742
+ },
743
+ {
744
+ "kind": "Content",
745
+ "text": "(value: string | number) => string | number"
746
+ },
747
+ {
748
+ "kind": "Content",
749
+ "text": ";"
750
+ }
751
+ ],
752
+ "isReadonly": false,
753
+ "isOptional": true,
754
+ "releaseTag": "Public",
755
+ "name": "behaviorValidator",
756
+ "propertyTypeTokenRange": {
757
+ "startIndex": 1,
758
+ "endIndex": 2
759
+ }
760
+ },
761
+ {
762
+ "kind": "PropertySignature",
763
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#callback:member",
764
+ "docComment": "/**\n * Callbacks configuration\n */\n",
765
+ "excerptTokens": [
766
+ {
767
+ "kind": "Content",
768
+ "text": "callback?: "
769
+ },
770
+ {
771
+ "kind": "Reference",
772
+ "text": "IValueCallback",
773
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!~IValueCallback:interface"
774
+ },
775
+ {
776
+ "kind": "Content",
777
+ "text": ";"
778
+ }
779
+ ],
780
+ "isReadonly": false,
781
+ "isOptional": true,
782
+ "releaseTag": "Public",
783
+ "name": "callback",
784
+ "propertyTypeTokenRange": {
785
+ "startIndex": 1,
786
+ "endIndex": 2
787
+ }
788
+ },
789
+ {
790
+ "kind": "PropertySignature",
791
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#coreData:member",
792
+ "docComment": "/**\n * Core data configuration\n */\n",
793
+ "excerptTokens": [
794
+ {
795
+ "kind": "Content",
796
+ "text": "coreData?: "
797
+ },
798
+ {
799
+ "kind": "Reference",
800
+ "text": "ICoreData",
801
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!~ICoreData:interface"
802
+ },
803
+ {
804
+ "kind": "Content",
805
+ "text": ";"
806
+ }
807
+ ],
808
+ "isReadonly": false,
809
+ "isOptional": true,
810
+ "releaseTag": "Public",
811
+ "name": "coreData",
812
+ "propertyTypeTokenRange": {
813
+ "startIndex": 1,
814
+ "endIndex": 2
815
+ }
816
+ },
817
+ {
818
+ "kind": "PropertySignature",
819
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#dataTags:member",
820
+ "docComment": "/**\n * Custom Data Tags provided to ovverride default tags used to capture click data.\n */\n",
821
+ "excerptTokens": [
822
+ {
823
+ "kind": "Content",
824
+ "text": "dataTags?: "
825
+ },
826
+ {
827
+ "kind": "Reference",
828
+ "text": "ICustomDataTags",
829
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!~ICustomDataTags:interface"
830
+ },
831
+ {
832
+ "kind": "Content",
833
+ "text": ";"
834
+ }
835
+ ],
836
+ "isReadonly": false,
837
+ "isOptional": true,
838
+ "releaseTag": "Public",
839
+ "name": "dataTags",
840
+ "propertyTypeTokenRange": {
841
+ "startIndex": 1,
842
+ "endIndex": 2
843
+ }
844
+ },
845
+ {
846
+ "kind": "PropertySignature",
847
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#defaultRightClickBhvr:member",
848
+ "docComment": "/**\n * Default Behavior value when Right Click event has occured. This value will be ovverriden if the element has the data-*-bhvr attribute present.\n */\n",
849
+ "excerptTokens": [
850
+ {
851
+ "kind": "Content",
852
+ "text": "defaultRightClickBhvr?: "
853
+ },
854
+ {
855
+ "kind": "Content",
856
+ "text": "string | number"
857
+ },
858
+ {
859
+ "kind": "Content",
860
+ "text": ";"
861
+ }
862
+ ],
863
+ "isReadonly": false,
864
+ "isOptional": true,
865
+ "releaseTag": "Public",
866
+ "name": "defaultRightClickBhvr",
867
+ "propertyTypeTokenRange": {
868
+ "startIndex": 1,
869
+ "endIndex": 2
870
+ }
871
+ },
872
+ {
873
+ "kind": "PropertySignature",
874
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#dropInvalidEvents:member",
875
+ "docComment": "/**\n * Flag to drop events that do not have custom event names, no parentId and no data in content (basically no useful click data). Default will be false\n */\n",
876
+ "excerptTokens": [
877
+ {
878
+ "kind": "Content",
879
+ "text": "dropInvalidEvents?: "
880
+ },
881
+ {
882
+ "kind": "Content",
883
+ "text": "boolean"
884
+ },
885
+ {
886
+ "kind": "Content",
887
+ "text": ";"
888
+ }
889
+ ],
890
+ "isReadonly": false,
891
+ "isOptional": true,
892
+ "releaseTag": "Public",
893
+ "name": "dropInvalidEvents",
894
+ "propertyTypeTokenRange": {
895
+ "startIndex": 1,
896
+ "endIndex": 2
897
+ }
898
+ },
899
+ {
900
+ "kind": "PropertySignature",
901
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#pageTags:member",
902
+ "docComment": "/**\n * Page tags\n */\n",
903
+ "excerptTokens": [
904
+ {
905
+ "kind": "Content",
906
+ "text": "pageTags?: "
907
+ },
908
+ {
909
+ "kind": "Content",
910
+ "text": "{\n [name: string]: string | number | boolean | string[] | number[] | boolean[] | object;\n }"
911
+ },
912
+ {
913
+ "kind": "Content",
914
+ "text": ";"
915
+ }
916
+ ],
917
+ "isReadonly": false,
918
+ "isOptional": true,
919
+ "releaseTag": "Public",
920
+ "name": "pageTags",
921
+ "propertyTypeTokenRange": {
922
+ "startIndex": 1,
923
+ "endIndex": 2
924
+ }
925
+ },
926
+ {
927
+ "kind": "PropertySignature",
928
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#urlCollectHash:member",
929
+ "docComment": "/**\n * Enables the logging of values after a \"#\" character of the URL. Default is \"false.\"\n */\n",
930
+ "excerptTokens": [
931
+ {
932
+ "kind": "Content",
933
+ "text": "urlCollectHash?: "
934
+ },
935
+ {
936
+ "kind": "Content",
937
+ "text": "boolean"
938
+ },
939
+ {
940
+ "kind": "Content",
941
+ "text": ";"
942
+ }
943
+ ],
944
+ "isReadonly": false,
945
+ "isOptional": true,
946
+ "releaseTag": "Public",
947
+ "name": "urlCollectHash",
948
+ "propertyTypeTokenRange": {
949
+ "startIndex": 1,
950
+ "endIndex": 2
951
+ }
952
+ },
953
+ {
954
+ "kind": "PropertySignature",
955
+ "canonicalReference": "@microsoft/applicationinsights-clickanalytics-js!IClickAnalyticsConfiguration#urlCollectQuery:member",
956
+ "docComment": "/**\n * Enables the logging of the query string of the URL. Default is \"false.\"\n */\n",
957
+ "excerptTokens": [
958
+ {
959
+ "kind": "Content",
960
+ "text": "urlCollectQuery?: "
961
+ },
962
+ {
963
+ "kind": "Content",
964
+ "text": "boolean"
965
+ },
966
+ {
967
+ "kind": "Content",
968
+ "text": ";"
969
+ }
970
+ ],
971
+ "isReadonly": false,
972
+ "isOptional": true,
973
+ "releaseTag": "Public",
974
+ "name": "urlCollectQuery",
975
+ "propertyTypeTokenRange": {
976
+ "startIndex": 1,
977
+ "endIndex": 2
978
+ }
979
+ }
980
+ ],
981
+ "extendsTokenRanges": []
691
982
  }
692
983
  ]
693
984
  }
@@ -41,6 +41,25 @@ export class ClickAnalyticsPlugin extends BaseTelemetryPlugin {
41
41
  static Version: string;
42
42
  }
43
43
 
44
+ // @public
45
+ export interface IClickAnalyticsConfiguration {
46
+ autoCapture?: boolean;
47
+ behaviorValidator?: (value: string | number) => string | number;
48
+ // Warning: (ae-forgotten-export) The symbol "IValueCallback" needs to be exported by the entry point applicationinsights-clickanalytics-js.d.ts
49
+ callback?: IValueCallback;
50
+ // Warning: (ae-forgotten-export) The symbol "ICoreData" needs to be exported by the entry point applicationinsights-clickanalytics-js.d.ts
51
+ coreData?: ICoreData;
52
+ // Warning: (ae-forgotten-export) The symbol "ICustomDataTags" needs to be exported by the entry point applicationinsights-clickanalytics-js.d.ts
53
+ dataTags?: ICustomDataTags;
54
+ defaultRightClickBhvr?: string | number;
55
+ dropInvalidEvents?: boolean;
56
+ pageTags?: {
57
+ [name: string]: string | number | boolean | string[] | number[] | boolean[] | object;
58
+ };
59
+ urlCollectHash?: boolean;
60
+ urlCollectQuery?: boolean;
61
+ }
62
+
44
63
  // (No @packageDocumentation comment for this package)
45
64
 
46
65
  ```
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 2.8.15-nightly.2307-12
2
+ * Microsoft.ApplicationInsights, 2.8.15-nightly.2307-23
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -39,6 +39,112 @@ declare namespace ApplicationInsights {
39
39
  trackPageAction(pageAction?: IPageActionTelemetry, customProperties?: ICustomProperties): void;
40
40
  }
41
41
 
42
+ /**
43
+ * ClickAnalytics Configuration
44
+ */
45
+ interface IClickAnalyticsConfiguration {
46
+ /**
47
+ * Automatic capture configuration. Default is true
48
+ */
49
+ autoCapture?: boolean;
50
+ /**
51
+ * Callbacks configuration
52
+ */
53
+ callback?: IValueCallback;
54
+ /**
55
+ * Page tags
56
+ */
57
+ pageTags?: {
58
+ [name: string]: string | number | boolean | string[] | number[] | boolean[] | object;
59
+ };
60
+ /**
61
+ * Core data configuration
62
+ */
63
+ coreData?: ICoreData;
64
+ /**
65
+ * Custom Data Tags provided to ovverride default tags used to capture click data.
66
+ */
67
+ dataTags?: ICustomDataTags;
68
+ /**
69
+ * Validator to use for the data-bhvr value
70
+ */
71
+ behaviorValidator?: (value: string | number) => string | number;
72
+ /**
73
+ * Default Behavior value when Right Click event has occured. This
74
+ * value will be ovverriden if the element has the data-*-bhvr attribute present.
75
+ */
76
+ defaultRightClickBhvr?: string | number;
77
+ /**
78
+ * Flag to drop events that do not have custom event names, no parentId and no data in content (basically no useful click data).
79
+ * Default will be false
80
+ */
81
+ dropInvalidEvents?: boolean;
82
+ /**
83
+ * Enables the logging of values after a "#" character of the URL. Default is "false."
84
+ */
85
+ urlCollectHash?: boolean;
86
+ /**
87
+ * Enables the logging of the query string of the URL. Default is "false."
88
+ */
89
+ urlCollectQuery?: boolean;
90
+ }
91
+
92
+ /**
93
+ * Core data configuration
94
+ */
95
+ interface ICoreData {
96
+ /**
97
+ * document.referrer is the default. This is used to override the default value.
98
+ */
99
+ referrerUri?: string;
100
+ /**
101
+ * window.location.href is the default. This is used to override the default value.
102
+ */
103
+ requestUri?: string;
104
+ /**
105
+ * Default page name is derived from the url. This is used to override the default.
106
+ */
107
+ pageName?: string;
108
+ /**
109
+ * PageType is captured from a meta tag named awa-pageType. This is used to override the value or bypass defining meta tags.
110
+ */
111
+ pageType?: string;
112
+ }
113
+
114
+ /**
115
+ * Custom Data Tags Configuration
116
+ */
117
+ interface ICustomDataTags {
118
+ /**
119
+ * 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.
120
+ */
121
+ useDefaultContentNameOrId?: boolean;
122
+ /**
123
+ * Automatic capture content name and value of elements which are tagged with provided prefix
124
+ */
125
+ customDataPrefix?: string;
126
+ /**
127
+ * 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.
128
+ */
129
+ aiBlobAttributeTag?: string;
130
+ /**
131
+ * Automatic capture metadata name and content with provided prefix
132
+ */
133
+ metaDataPrefix?: string;
134
+ /**
135
+ * Automatic capture all metadata names and content. Default is false. If enabled this will override provided metaTagPrefix.
136
+ */
137
+ captureAllMetaDataContent?: boolean;
138
+ /**
139
+ * Stop traversing up the DOM to capture content name and value of elements when encountered with this tag
140
+ */
141
+ parentDataTag?: string;
142
+ /**
143
+ * Custom attribute Tag to not track telemetry data
144
+ */
145
+ dntDataTag?: string;
146
+ }
147
+
42
148
  /**
43
149
  * Page Action event
44
150
  */
@@ -93,5 +199,39 @@ declare namespace ApplicationInsights {
93
199
  parentId?: string;
94
200
  }
95
201
 
202
+ /**
203
+ * PageTags format
204
+ */
205
+ interface IPageTags {
206
+ /**
207
+ * Meta data tags
208
+ */
209
+ metaTags?: {
210
+ [name: string]: string;
211
+ };
212
+ /**
213
+ * Any other page tag
214
+ */
215
+ [name: string]: string | number | boolean | string[] | number[] | boolean[] | object | undefined;
216
+ }
217
+
218
+ /**
219
+ * Value Callbacks configuration
220
+ */
221
+ interface IValueCallback {
222
+ /**
223
+ * Function to override the default pageName capturing behavior.
224
+ */
225
+ pageName?: () => string;
226
+ /**
227
+ * A callback function to augument the default pageTags collected during pageAction event.
228
+ */
229
+ pageActionPageTags?: (element?: Element) => IPageTags;
230
+ /**
231
+ * A callback function to populate customized contentName.
232
+ */
233
+ contentName?: (element?: any, useDefaultContentName?: boolean) => string;
234
+ }
235
+
96
236
 
97
237
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.15-nightly.2307-12
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.15-nightly.2307-23
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1191,7 +1191,7 @@
1191
1191
  }
1192
1192
 
1193
1193
  var _objDefineProperty = ObjDefineProperty;
1194
- var version = "2.8.15-nightly.2307-12";
1194
+ var version = "2.8.15-nightly.2307-23";
1195
1195
  var instanceName = "." + newId(6);
1196
1196
  var _dataUid = 0;
1197
1197
  function _createAccessor(target, prop, value) {
@@ -3034,7 +3034,7 @@
3034
3034
  }
3035
3035
  return _this;
3036
3036
  }
3037
- ClickAnalyticsPlugin.Version = "2.8.15-nightly.2307-12";
3037
+ ClickAnalyticsPlugin.Version = "2.8.15-nightly.2307-23";
3038
3038
  return ClickAnalyticsPlugin;
3039
3039
  }(BaseTelemetryPlugin));
3040
3040