@amplitude/analytics-browser 2.20.1 → 2.21.0

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 (93) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/attribution/helpers.d.ts +1 -2
  3. package/lib/cjs/attribution/helpers.d.ts.map +1 -1
  4. package/lib/cjs/attribution/helpers.js +1 -2
  5. package/lib/cjs/attribution/helpers.js.map +1 -1
  6. package/lib/cjs/attribution/web-attribution.d.ts +1 -2
  7. package/lib/cjs/attribution/web-attribution.d.ts.map +1 -1
  8. package/lib/cjs/attribution/web-attribution.js +2 -4
  9. package/lib/cjs/attribution/web-attribution.js.map +1 -1
  10. package/lib/cjs/browser-client.d.ts +3 -3
  11. package/lib/cjs/browser-client.d.ts.map +1 -1
  12. package/lib/cjs/browser-client.js +2 -1
  13. package/lib/cjs/browser-client.js.map +1 -1
  14. package/lib/cjs/config.d.ts +1 -1
  15. package/lib/cjs/types.d.ts +1 -2
  16. package/lib/cjs/types.d.ts.map +1 -1
  17. package/lib/cjs/types.js.map +1 -1
  18. package/lib/cjs/version.d.ts +1 -1
  19. package/lib/cjs/version.js +1 -1
  20. package/lib/cjs/version.js.map +1 -1
  21. package/lib/esm/attribution/helpers.d.ts +1 -2
  22. package/lib/esm/attribution/helpers.d.ts.map +1 -1
  23. package/lib/esm/attribution/helpers.js +1 -2
  24. package/lib/esm/attribution/helpers.js.map +1 -1
  25. package/lib/esm/attribution/web-attribution.d.ts +1 -2
  26. package/lib/esm/attribution/web-attribution.d.ts.map +1 -1
  27. package/lib/esm/attribution/web-attribution.js +1 -3
  28. package/lib/esm/attribution/web-attribution.js.map +1 -1
  29. package/lib/esm/browser-client.d.ts +3 -3
  30. package/lib/esm/browser-client.d.ts.map +1 -1
  31. package/lib/esm/browser-client.js +2 -1
  32. package/lib/esm/browser-client.js.map +1 -1
  33. package/lib/esm/config.d.ts +1 -1
  34. package/lib/esm/types.d.ts +1 -2
  35. package/lib/esm/types.d.ts.map +1 -1
  36. package/lib/esm/types.js.map +1 -1
  37. package/lib/esm/version.d.ts +1 -1
  38. package/lib/esm/version.js +1 -1
  39. package/lib/esm/version.js.map +1 -1
  40. package/lib/scripts/amplitude-bookmarklet-snippet-min.js +1 -1
  41. package/lib/scripts/amplitude-bookmarklet.html +1 -1
  42. package/lib/scripts/amplitude-gtm-min.js +1 -1
  43. package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
  44. package/lib/scripts/amplitude-gtm-min.js.map +1 -1
  45. package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
  46. package/lib/scripts/amplitude-min.js +1 -1
  47. package/lib/scripts/amplitude-min.js.gz +0 -0
  48. package/lib/scripts/amplitude-min.js.map +1 -1
  49. package/lib/scripts/amplitude-min.umd.js +1 -1
  50. package/lib/scripts/amplitude-min.umd.js.gz +0 -0
  51. package/lib/scripts/amplitude-snippet-instructions.html +1 -1
  52. package/lib/scripts/amplitude-snippet-min.js +1 -1
  53. package/lib/scripts/attribution/helpers.d.ts +1 -2
  54. package/lib/scripts/attribution/helpers.d.ts.map +1 -1
  55. package/lib/scripts/attribution/web-attribution.d.ts +1 -2
  56. package/lib/scripts/attribution/web-attribution.d.ts.map +1 -1
  57. package/lib/scripts/browser-client.d.ts +3 -3
  58. package/lib/scripts/browser-client.d.ts.map +1 -1
  59. package/lib/scripts/config.d.ts +1 -1
  60. package/lib/scripts/types.d.ts +1 -2
  61. package/lib/scripts/types.d.ts.map +1 -1
  62. package/lib/scripts/version.d.ts +1 -1
  63. package/package.json +7 -7
  64. package/lib/cjs/attribution/campaign-parser.d.ts +0 -8
  65. package/lib/cjs/attribution/campaign-parser.d.ts.map +0 -1
  66. package/lib/cjs/attribution/campaign-parser.js +0 -69
  67. package/lib/cjs/attribution/campaign-parser.js.map +0 -1
  68. package/lib/cjs/attribution/campaign.d.ts +0 -31
  69. package/lib/cjs/attribution/campaign.d.ts.map +0 -1
  70. package/lib/cjs/attribution/campaign.js +0 -3
  71. package/lib/cjs/attribution/campaign.js.map +0 -1
  72. package/lib/cjs/attribution/constants.d.ts +0 -22
  73. package/lib/cjs/attribution/constants.d.ts.map +0 -1
  74. package/lib/cjs/attribution/constants.js +0 -44
  75. package/lib/cjs/attribution/constants.js.map +0 -1
  76. package/lib/esm/attribution/campaign-parser.d.ts +0 -8
  77. package/lib/esm/attribution/campaign-parser.d.ts.map +0 -1
  78. package/lib/esm/attribution/campaign-parser.js +0 -66
  79. package/lib/esm/attribution/campaign-parser.js.map +0 -1
  80. package/lib/esm/attribution/campaign.d.ts +0 -31
  81. package/lib/esm/attribution/campaign.d.ts.map +0 -1
  82. package/lib/esm/attribution/campaign.js +0 -2
  83. package/lib/esm/attribution/campaign.js.map +0 -1
  84. package/lib/esm/attribution/constants.d.ts +0 -22
  85. package/lib/esm/attribution/constants.d.ts.map +0 -1
  86. package/lib/esm/attribution/constants.js +0 -41
  87. package/lib/esm/attribution/constants.js.map +0 -1
  88. package/lib/scripts/attribution/campaign-parser.d.ts +0 -8
  89. package/lib/scripts/attribution/campaign-parser.d.ts.map +0 -1
  90. package/lib/scripts/attribution/campaign.d.ts +0 -31
  91. package/lib/scripts/attribution/campaign.d.ts.map +0 -1
  92. package/lib/scripts/attribution/constants.d.ts +0 -22
  93. package/lib/scripts/attribution/constants.d.ts.map +0 -1
@@ -1,31 +0,0 @@
1
- export interface Campaign extends Record<string, string | undefined>, UTMParameters, ReferrerParameters, ClickIdParameters {
2
- }
3
- export interface CampaignParser {
4
- parse(): Promise<Campaign>;
5
- }
6
- export interface UTMParameters {
7
- utm_campaign: string | undefined;
8
- utm_content: string | undefined;
9
- utm_id: string | undefined;
10
- utm_medium: string | undefined;
11
- utm_source: string | undefined;
12
- utm_term: string | undefined;
13
- }
14
- export interface ReferrerParameters {
15
- referrer: string | undefined;
16
- referring_domain: string | undefined;
17
- }
18
- export interface ClickIdParameters {
19
- dclid: string | undefined;
20
- fbclid: string | undefined;
21
- gbraid: string | undefined;
22
- gclid: string | undefined;
23
- ko_click_id: string | undefined;
24
- li_fat_id: string | undefined;
25
- msclkid: string | undefined;
26
- rtd_cid: string | undefined;
27
- ttclid: string | undefined;
28
- twclid: string | undefined;
29
- wbraid: string | undefined;
30
- }
31
- //# sourceMappingURL=campaign.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../src/attribution/campaign.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QACf,SAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EACxC,aAAa,EACb,kBAAkB,EAClB,iBAAiB;CAAG;AAExB,MAAM,WAAW,cAAc;IAC7B,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B"}
@@ -1,22 +0,0 @@
1
- import { Campaign } from './campaign';
2
- export declare const UTM_CAMPAIGN = "utm_campaign";
3
- export declare const UTM_CONTENT = "utm_content";
4
- export declare const UTM_ID = "utm_id";
5
- export declare const UTM_MEDIUM = "utm_medium";
6
- export declare const UTM_SOURCE = "utm_source";
7
- export declare const UTM_TERM = "utm_term";
8
- export declare const DCLID = "dclid";
9
- export declare const FBCLID = "fbclid";
10
- export declare const GBRAID = "gbraid";
11
- export declare const GCLID = "gclid";
12
- export declare const KO_CLICK_ID = "ko_click_id";
13
- export declare const LI_FAT_ID = "li_fat_id";
14
- export declare const MSCLKID = "msclkid";
15
- export declare const RDT_CID = "rtd_cid";
16
- export declare const TTCLID = "ttclid";
17
- export declare const TWCLID = "twclid";
18
- export declare const WBRAID = "wbraid";
19
- export declare const EMPTY_VALUE = "EMPTY";
20
- export declare const BASE_CAMPAIGN: Campaign;
21
- export declare const MKTG = "MKTG";
22
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/attribution/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,QAAQ,aAAa,CAAC;AAEnC,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,eAAO,MAAM,aAAa,EAAE,QAoB3B,CAAC;AAEF,eAAO,MAAM,IAAI,SAAS,CAAC"}