@amplitude/analytics-browser 2.33.0 → 2.33.2-SR-2360.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.
- package/README.md +1 -1
- package/lib/cjs/config.d.ts +1 -1
- package/lib/cjs/config.d.ts.map +1 -1
- package/lib/cjs/version.d.ts +1 -1
- package/lib/cjs/version.d.ts.map +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/cjs/version.js.map +1 -1
- package/lib/esm/config.d.ts +1 -1
- package/lib/esm/config.d.ts.map +1 -1
- package/lib/esm/version.d.ts +1 -1
- package/lib/esm/version.d.ts.map +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/esm/version.js.map +1 -1
- package/lib/scripts/amplitude-bookmarklet-snippet-min.js +1 -1
- package/lib/scripts/amplitude-bookmarklet.html +1 -1
- package/lib/scripts/amplitude-gtm-min.js +1 -1
- package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
- package/lib/scripts/amplitude-gtm-min.js.map +1 -1
- package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
- package/lib/scripts/amplitude-min.js +1 -1
- package/lib/scripts/amplitude-min.js.gz +0 -0
- package/lib/scripts/amplitude-min.js.map +1 -1
- package/lib/scripts/amplitude-min.umd.js +1 -1
- package/lib/scripts/amplitude-min.umd.js.gz +0 -0
- package/lib/scripts/amplitude-snippet-instructions.html +1 -1
- package/lib/scripts/amplitude-snippet-min.js +1 -1
- package/lib/scripts/attribution/helpers.d.ts.map +1 -1
- package/lib/scripts/config.d.ts +4 -4
- package/lib/scripts/config.d.ts.map +1 -1
- package/lib/scripts/constants.d.ts +12 -12
- package/lib/scripts/constants.d.ts.map +1 -1
- package/lib/scripts/cookie-migration/index.d.ts.map +1 -1
- package/lib/scripts/default-tracking.d.ts.map +1 -1
- package/lib/scripts/det-notification.d.ts.map +1 -1
- package/lib/scripts/index.d.ts +4 -4
- package/lib/scripts/index.d.ts.map +1 -1
- package/lib/scripts/plugins/context.d.ts.map +1 -1
- package/lib/scripts/plugins/form-interaction-tracking.d.ts.map +1 -1
- package/lib/scripts/utils/snippet-helper.d.ts.map +1 -1
- package/lib/scripts/version.d.ts +1 -1
- package/lib/scripts/version.d.ts.map +1 -1
- package/package.json +30 -32
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/javascript">
|
|
2
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var
|
|
2
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-LP79Rd++WB2A8B/9MCOPyl3HAqn7j1tMh6bHHcyoI3F3FwBXbJGvDGz63oSLg8kB",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.33.2-SR-2360.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var y=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],g=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
3
3
|
|
|
4
4
|
amplitude.init("<YOUR_API_KEY>");
|
|
5
5
|
</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var
|
|
1
|
+
!function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-LP79Rd++WB2A8B/9MCOPyl3HAqn7j1tMh6bHHcyoI3F3FwBXbJGvDGz63oSLg8kB",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.33.2-SR-2360.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var y=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],g=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/attribution/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,OAAO,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AAE5G,MAAM,WAAW,OAAO;IACtB,gBAAgB,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAiBD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/attribution/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,OAAO,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AAE5G,MAAM,WAAW,OAAO;IACtB,gBAAgB,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAiBD,eAAO,MAAM,aAAa,GACxB,SAAS,QAAQ,EACjB,UAAU,QAAQ,GAAG,SAAS,EAC9B,SAAS,OAAO,EAChB,QAAQ,OAAO,EACf,sBAAmB,YA8BpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,mBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,EAAE,wBAAoB,YAIlG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,QAAQ,EAAE,SAAS,OAAO,sDAgBvE,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,cAAc,MAAM,GAAG,SAAS,aAS3E,CAAC"}
|
package/lib/scripts/config.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
8
8
|
apiKey: string;
|
|
9
9
|
appVersion?: string | undefined;
|
|
10
10
|
cookieOptions: CookieOptions;
|
|
11
|
-
defaultTracking?: boolean | DefaultTrackingOptions | undefined;
|
|
12
|
-
autocapture?: boolean | AutocaptureOptions | undefined;
|
|
11
|
+
defaultTracking?: (boolean | DefaultTrackingOptions) | undefined;
|
|
12
|
+
autocapture?: (boolean | AutocaptureOptions) | undefined;
|
|
13
13
|
flushIntervalMillis: number;
|
|
14
14
|
flushMaxRetries: number;
|
|
15
15
|
flushQueueSize: number;
|
|
@@ -36,7 +36,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
36
36
|
diagnosticsSampleRate: number;
|
|
37
37
|
diagnosticsClient?: IDiagnosticsClient | undefined;
|
|
38
38
|
remoteConfig?: RemoteConfigOptions | undefined;
|
|
39
|
-
readonly version = "2.33.0";
|
|
39
|
+
readonly version = "2.33.2-SR-2360.0";
|
|
40
40
|
protected _cookieStorage: Storage<UserSession>;
|
|
41
41
|
protected _deviceId?: string;
|
|
42
42
|
protected _lastEventId?: number;
|
|
@@ -46,7 +46,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
|
|
|
46
46
|
protected _userId?: string;
|
|
47
47
|
protected _pageCounter?: number;
|
|
48
48
|
protected _debugLogsEnabled?: boolean;
|
|
49
|
-
constructor(apiKey: string, appVersion?: string | undefined, cookieStorage?: Storage<UserSession>, cookieOptions?: CookieOptions, defaultTracking?: boolean | DefaultTrackingOptions | undefined, autocapture?: boolean | AutocaptureOptions | undefined, deviceId?: string, flushIntervalMillis?: number, flushMaxRetries?: number, flushQueueSize?: number, identityStorage?: IdentityStorageType, ingestionMetadata?: IngestionMetadata | undefined, instanceName?: string | undefined, lastEventId?: number, lastEventTime?: number, loggerProvider?: ILogger, logLevel?: LogLevel, minIdLength?: number | undefined, offline?: boolean | typeof OfflineDisabled, optOut?: boolean, partnerId?: string | undefined, plan?: Plan | undefined, serverUrl?: string, serverZone?: ServerZoneType, sessionId?: number, sessionTimeout?: number, storageProvider?: Storage<Event[]>, trackingOptions?: Required<TrackingOptions>, transport?: TransportTypeOrOptions, useBatch?: boolean, fetchRemoteConfig?: boolean, userId?: string, pageCounter?: number, debugLogsEnabled?: boolean, networkTrackingOptions?: NetworkTrackingOptions | undefined, identify?: IIdentify | undefined, enableDiagnostics?: boolean, diagnosticsSampleRate?: number, diagnosticsClient?: IDiagnosticsClient | undefined, remoteConfig?: RemoteConfigOptions | undefined);
|
|
49
|
+
constructor(apiKey: string, appVersion?: string | undefined, cookieStorage?: Storage<UserSession>, cookieOptions?: CookieOptions, defaultTracking?: (boolean | DefaultTrackingOptions) | undefined, autocapture?: (boolean | AutocaptureOptions) | undefined, deviceId?: string, flushIntervalMillis?: number, flushMaxRetries?: number, flushQueueSize?: number, identityStorage?: IdentityStorageType, ingestionMetadata?: IngestionMetadata | undefined, instanceName?: string | undefined, lastEventId?: number, lastEventTime?: number, loggerProvider?: ILogger, logLevel?: LogLevel, minIdLength?: number | undefined, offline?: boolean | typeof OfflineDisabled, optOut?: boolean, partnerId?: string | undefined, plan?: Plan | undefined, serverUrl?: string, serverZone?: ServerZoneType, sessionId?: number, sessionTimeout?: number, storageProvider?: Storage<Event[]>, trackingOptions?: Required<TrackingOptions>, transport?: TransportTypeOrOptions, useBatch?: boolean, fetchRemoteConfig?: boolean, userId?: string, pageCounter?: number, debugLogsEnabled?: boolean, networkTrackingOptions?: NetworkTrackingOptions | undefined, identify?: IIdentify | undefined, enableDiagnostics?: boolean, diagnosticsSampleRate?: number, diagnosticsClient?: IDiagnosticsClient | undefined, remoteConfig?: RemoteConfigOptions | undefined);
|
|
50
50
|
get cookieStorage(): Storage<UserSession>;
|
|
51
51
|
set cookieStorage(cookieStorage: Storage<UserSession>);
|
|
52
52
|
get deviceId(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,OAAO,EACP,QAAQ,EACR,KAAK,EACL,OAAO,EACP,iBAAiB,EACjB,cAA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G,SAAS,EAK9C;IAED,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,OAAO,GAAG,SAAS,EAKzD;IAED,OAAO,CAAC,aAAa;CAatB;AAED,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,MAAM,EACd,SAAS,cAAc,YAAK,EAC5B,mBAAmB,gBAAgB,KAClC,OAAO,CAAC,cAAc,CAsGxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACnC,kBAAiB,mBAA8C,EAC/D,gBAAe,aAAkB,8EAgBlC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,sBAAsB,wDAYjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,MAAM,MAAM,oBA6BnD,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { IdentityStorageType, ServerZoneType } from '@amplitude/analytics-core';
|
|
2
2
|
export declare const DEFAULT_EVENT_PREFIX = "[Amplitude]";
|
|
3
|
-
export declare const DEFAULT_PAGE_VIEW_EVENT
|
|
4
|
-
export declare const DEFAULT_FORM_START_EVENT
|
|
5
|
-
export declare const DEFAULT_FORM_SUBMIT_EVENT
|
|
6
|
-
export declare const DEFAULT_FILE_DOWNLOAD_EVENT
|
|
3
|
+
export declare const DEFAULT_PAGE_VIEW_EVENT = "[Amplitude] Page Viewed";
|
|
4
|
+
export declare const DEFAULT_FORM_START_EVENT = "[Amplitude] Form Started";
|
|
5
|
+
export declare const DEFAULT_FORM_SUBMIT_EVENT = "[Amplitude] Form Submitted";
|
|
6
|
+
export declare const DEFAULT_FILE_DOWNLOAD_EVENT = "[Amplitude] File Downloaded";
|
|
7
7
|
export declare const DEFAULT_SESSION_START_EVENT = "session_start";
|
|
8
8
|
export declare const DEFAULT_SESSION_END_EVENT = "session_end";
|
|
9
|
-
export declare const FILE_EXTENSION
|
|
10
|
-
export declare const FILE_NAME
|
|
11
|
-
export declare const LINK_ID
|
|
12
|
-
export declare const LINK_TEXT
|
|
13
|
-
export declare const LINK_URL
|
|
14
|
-
export declare const FORM_ID
|
|
15
|
-
export declare const FORM_NAME
|
|
16
|
-
export declare const FORM_DESTINATION
|
|
9
|
+
export declare const FILE_EXTENSION = "[Amplitude] File Extension";
|
|
10
|
+
export declare const FILE_NAME = "[Amplitude] File Name";
|
|
11
|
+
export declare const LINK_ID = "[Amplitude] Link ID";
|
|
12
|
+
export declare const LINK_TEXT = "[Amplitude] Link Text";
|
|
13
|
+
export declare const LINK_URL = "[Amplitude] Link URL";
|
|
14
|
+
export declare const FORM_ID = "[Amplitude] Form ID";
|
|
15
|
+
export declare const FORM_NAME = "[Amplitude] Form Name";
|
|
16
|
+
export declare const FORM_DESTINATION = "[Amplitude] Form Destination";
|
|
17
17
|
export declare const DEFAULT_IDENTITY_STORAGE: IdentityStorageType;
|
|
18
18
|
export declare const DEFAULT_SERVER_ZONE: ServerZoneType;
|
|
19
19
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhF,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAElD,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhF,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAElD,eAAO,MAAM,uBAAuB,4BAAwC,CAAC;AAC7E,eAAO,MAAM,wBAAwB,6BAAyC,CAAC;AAC/E,eAAO,MAAM,yBAAyB,+BAA2C,CAAC;AAClF,eAAO,MAAM,2BAA2B,gCAA4C,CAAC;AACrF,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AAEvD,eAAO,MAAM,cAAc,+BAA2C,CAAC;AACvE,eAAO,MAAM,SAAS,0BAAsC,CAAC;AAC7D,eAAO,MAAM,OAAO,wBAAoC,CAAC;AACzD,eAAO,MAAM,SAAS,0BAAsC,CAAC;AAC7D,eAAO,MAAM,QAAQ,yBAAqC,CAAC;AAE3D,eAAO,MAAM,OAAO,wBAAoC,CAAC;AACzD,eAAO,MAAM,SAAS,0BAAsC,CAAC;AAC7D,eAAO,MAAM,gBAAgB,iCAA6C,CAAC;AAE3E,eAAO,MAAM,wBAAwB,EAAE,mBAA8B,CAAC;AACtE,eAAO,MAAM,mBAAmB,EAAE,cAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cookie-migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnF,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cookie-migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnF,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,MAAM,EACd,eAAe,OAAO,CAAC,WAAW,CAAC,EACnC,6BAA0B,KACzB,OAAO,CAAC,WAAW,CAoBrB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,uBAMpC,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,SAShD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-tracking.d.ts","sourceRoot":"","sources":["../../src/default-tracking.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAEnB,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,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AA4B,GAAI,QAAQ,cAAc,KAAG,0BAA0B,GAAG,SASlG,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,cAAc,KACrB,8BAA8B,GAAG,SASnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,cAAc,KAAG,sBAAsB,GAAG,SA2B1F,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,QAAQ,cAAc,KAAG,mBAqClE,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,QAAQ,cAAc,KAAG,kBAcrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"det-notification.d.ts","sourceRoot":"","sources":["../../src/det-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"det-notification.d.ts","sourceRoot":"","sources":["../../src/det-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,eAAO,MAAM,SAAS,GAAI,QAAQ,aAAa,KAAG,IAcjD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,YAEvB,CAAC"}
|
package/lib/scripts/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createInstance } from './browser-client-factory';
|
|
2
|
-
export declare const add: (plugin: import("@amplitude/analytics-core").Plugin<import("@amplitude/analytics-core").BrowserClient, import("@amplitude/analytics-core").BrowserConfig>) => import("@amplitude/analytics-core").AmplitudeReturn<void>, extendSession: () => void, flush: () => import("@amplitude/analytics-core").AmplitudeReturn<void>, getDeviceId: () => string | undefined, getIdentity: () => import("@amplitude/analytics-core").AnalyticsIdentity, getOptOut: () => boolean | undefined, getSessionId: () => number | undefined, getUserId: () => string | undefined, groupIdentify: (groupType: string, groupName: string | string[], identify: import("@amplitude/analytics-core").IIdentify, eventOptions?: import("@amplitude/analytics-core").EventOptions
|
|
3
|
-
(apiKey: string, options?: import("@amplitude/analytics-core").BrowserOptions
|
|
4
|
-
(apiKey: string, userId?: string
|
|
5
|
-
}, logEvent: (eventInput:
|
|
2
|
+
export declare const add: (plugin: import("@amplitude/analytics-core").Plugin<import("@amplitude/analytics-core").BrowserClient, import("@amplitude/analytics-core").BrowserConfig>) => import("@amplitude/analytics-core").AmplitudeReturn<void>, extendSession: () => void, flush: () => import("@amplitude/analytics-core").AmplitudeReturn<void>, getDeviceId: () => string | undefined, getIdentity: () => import("@amplitude/analytics-core").AnalyticsIdentity, getOptOut: () => boolean | undefined, getSessionId: () => number | undefined, getUserId: () => string | undefined, groupIdentify: (groupType: string, groupName: string | string[], identify: import("@amplitude/analytics-core").IIdentify, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, identify: (identify: import("@amplitude/analytics-core").IIdentify, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, init: {
|
|
3
|
+
(apiKey: string, options?: import("@amplitude/analytics-core").BrowserOptions): import("@amplitude/analytics-core").AmplitudeReturn<void>;
|
|
4
|
+
(apiKey: string, userId?: string, options?: import("@amplitude/analytics-core").BrowserOptions): import("@amplitude/analytics-core").AmplitudeReturn<void>;
|
|
5
|
+
}, logEvent: (eventInput: import("@amplitude/analytics-core").BaseEvent | string, eventProperties?: Record<string, any>, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, remove: (pluginName: string) => import("@amplitude/analytics-core").AmplitudeReturn<void>, reset: () => void, revenue: (revenue: import("@amplitude/analytics-core").IRevenue, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, setDeviceId: (deviceId: string) => void, setGroup: (groupType: string, groupName: string | string[], eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, setOptOut: (optOut: boolean) => void, setSessionId: (sessionId: number) => void, setTransport: (transport: import("@amplitude/analytics-core").TransportTypeOrOptions) => void, setUserId: (userId: string | undefined) => void, track: (eventInput: import("@amplitude/analytics-core").BaseEvent | string, eventProperties?: Record<string, any>, eventOptions?: import("@amplitude/analytics-core").EventOptions) => import("@amplitude/analytics-core").AmplitudeReturn<import("@amplitude/analytics-core").Result>, _setDiagnosticsSampleRate: (sampleRate: number) => void;
|
|
6
6
|
export { AmplitudeBrowser } from './browser-client';
|
|
7
7
|
export { runQueuedFunctions } from './utils/snippet-helper';
|
|
8
8
|
export { Revenue, Identify } from '@amplitude/analytics-core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,2NACH,aAAa,cACb,KAAK,mEACL,WAAW,4BACX,WAAW,+DACX,SAAS,6BACT,YAAY,4BACZ,SAAS,4BACT,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,eAAO,MACL,GAAG,2NACH,aAAa,cACb,KAAK,mEACL,WAAW,4BACX,WAAW,+DACX,SAAS,6BACT,YAAY,4BACZ,SAAS,4BACT,aAAa,kRACb,QAAQ,iOACR,IAAI;;;GACJ,QAAQ,mRACR,MAAM,qFACN,KAAK,cACL,OAAO,+NACP,WAAW,8BACX,QAAQ,yNACR,SAAS,6BACT,YAAY,+BACZ,YAAY,mFACZ,SAAS,wCACT,KAAK,mRACL,yBAAyB,8BACjB,CAAC;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugins/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAMlG,qBAAa,OAAQ,YAAW,YAAY;IAC1C,IAAI,SAAuC;IAC3C,IAAI,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugins/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAMlG,qBAAa,OAAQ,YAAW,YAAY;IAC1C,IAAI,SAAuC;IAC3C,IAAI,EAAG,QAAQ,CAAU;IAKzB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,SAA6B;;IASpC,KAAK,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC;IAM1C,OAAO,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;CAkC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-interaction-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-interaction-tracking.ts"],"names":[],"mappings":"AAQA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,uBAAuB,QAAO,gBAkI1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"form-interaction-tracking.d.ts","sourceRoot":"","sources":["../../../src/plugins/form-interaction-tracking.ts"],"names":[],"mappings":"AAQA,OAAO,EAAyB,gBAAgB,EAAiB,MAAM,2BAA2B,CAAC;AAQnG,eAAO,MAAM,uBAAuB,QAAO,gBAkI1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,MAAM,CAAC,KAAG,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAU1E,CAAC;AAGF,eAAO,MAAM,iBAAiB,GAAI,MAAM,eAAe,KAAG,MAAM,GAAG,IASlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippet-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/snippet-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmB,MAAM,2BAA2B,CAAC;AAEpE,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CAC9C;AAED,KAAK,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAEnC,UAAU,aAAa;IACrB,EAAE,EAAE,UAAU,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"snippet-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/snippet-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmB,MAAM,2BAA2B,CAAC;AAEpE,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CAC9C;AAED,KAAK,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAEnC,UAAU,aAAa;IACrB,EAAE,EAAE,UAAU,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,OAAO,UAAU,SAErE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GAAI,CAAC,EAAE,UAAU,CAAC,EAAE,OAAO,UAAU,KAAG,CAYlF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,OAAO,KAAG,QAAQ,IAAI,aAG/D,CAAC"}
|
package/lib/scripts/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.33.0";
|
|
1
|
+
export declare const VERSION = "2.33.2-SR-2360.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/analytics-browser",
|
|
3
|
-
"version": "2.33.0",
|
|
3
|
+
"version": "2.33.2-SR-2360.0",
|
|
4
4
|
"description": "Official Amplitude SDK for Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics",
|
|
@@ -21,39 +21,17 @@
|
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/amplitude/Amplitude-TypeScript.git"
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "yarn bundle && yarn build:es5 && yarn build:esm",
|
|
26
|
-
"bundle": "rollup --config rollup.config.js",
|
|
27
|
-
"build:es5": "tsc -p ./tsconfig.es5.json",
|
|
28
|
-
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
29
|
-
"watch": "tsc -p ./tsconfig.esm.json --watch",
|
|
30
|
-
"clean": "rimraf node_modules lib coverage",
|
|
31
|
-
"fix": "yarn fix:eslint & yarn fix:prettier",
|
|
32
|
-
"fix:eslint": "eslint '{src,test}/**/*.ts' --fix",
|
|
33
|
-
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
|
|
34
|
-
"lint": "yarn lint:eslint & yarn lint:prettier",
|
|
35
|
-
"lint:eslint": "eslint '{src,test}/**/*.ts'",
|
|
36
|
-
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
|
|
37
|
-
"playground:html": "cp lib/scripts/amplitude-min.js playground/html/amplitude.js && http-server ./playground/html",
|
|
38
|
-
"playground:react-spa": "cp lib/scripts/amplitude-min.js playground/react-spa/public/amplitude.js && cd ./playground/react-spa && yarn install && yarn start",
|
|
39
|
-
"publish": "node ../../scripts/publish/upload-to-s3.js",
|
|
40
|
-
"test": "jest",
|
|
41
|
-
"test:playwright": "playwright test",
|
|
42
|
-
"typecheck": "tsc -p ./tsconfig.json",
|
|
43
|
-
"version": "yarn version-file && GENERATE_SNIPPET=true yarn build && cp lib/scripts/amplitude-min.js playground/html/amplitude.js && cp lib/scripts/amplitude-min.js playground/react-spa/public/amplitude.js",
|
|
44
|
-
"version-file": "node -p \"'export const VERSION = \\'' + require('./package.json').version + '\\';'\" > src/version.ts"
|
|
45
|
-
},
|
|
46
24
|
"bugs": {
|
|
47
25
|
"url": "https://github.com/amplitude/Amplitude-TypeScript/issues"
|
|
48
26
|
},
|
|
49
27
|
"dependencies": {
|
|
50
|
-
"
|
|
51
|
-
"@amplitude/
|
|
52
|
-
"@amplitude/plugin-
|
|
53
|
-
"@amplitude/plugin-
|
|
54
|
-
"@amplitude/plugin-
|
|
55
|
-
"@amplitude/plugin-
|
|
56
|
-
"
|
|
28
|
+
"tslib": "^2.4.1",
|
|
29
|
+
"@amplitude/analytics-core": "2.36.0-SR-2360.0",
|
|
30
|
+
"@amplitude/plugin-page-view-tracking-browser": "2.6.7-SR-2360.0",
|
|
31
|
+
"@amplitude/plugin-web-vitals-browser": "1.1.5-SR-2360.0",
|
|
32
|
+
"@amplitude/plugin-autocapture-browser": "1.19.0-SR-2360.0",
|
|
33
|
+
"@amplitude/plugin-network-capture-browser": "1.7.4-SR-2360.0",
|
|
34
|
+
"@amplitude/plugin-page-url-enrichment-browser": "0.5.10-SR-2360.0"
|
|
57
35
|
},
|
|
58
36
|
"devDependencies": {
|
|
59
37
|
"@aws-sdk/client-s3": "^3.229.0",
|
|
@@ -71,5 +49,25 @@
|
|
|
71
49
|
"files": [
|
|
72
50
|
"lib"
|
|
73
51
|
],
|
|
74
|
-
"
|
|
75
|
-
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "pnpm bundle && pnpm build:es5 && pnpm build:esm",
|
|
54
|
+
"bundle": "rollup --config rollup.config.js",
|
|
55
|
+
"build:es5": "tsc -p ./tsconfig.es5.json",
|
|
56
|
+
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
57
|
+
"watch": "tsc -p ./tsconfig.esm.json --watch",
|
|
58
|
+
"clean": "rimraf node_modules lib coverage",
|
|
59
|
+
"fix": "pnpm fix:eslint & pnpm fix:prettier",
|
|
60
|
+
"fix:eslint": "eslint '{src,test}/**/*.ts' --fix",
|
|
61
|
+
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
|
|
62
|
+
"lint": "pnpm lint:eslint & pnpm lint:prettier",
|
|
63
|
+
"lint:eslint": "eslint '{src,test}/**/*.ts'",
|
|
64
|
+
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
|
|
65
|
+
"playground:html": "cp lib/scripts/amplitude-min.js playground/html/amplitude.js && http-server ./playground/html",
|
|
66
|
+
"playground:react-spa": "cp lib/scripts/amplitude-min.js playground/react-spa/public/amplitude.js && cd ./playground/react-spa && pnpm install && pnpm start",
|
|
67
|
+
"test": "jest",
|
|
68
|
+
"test:playwright": "playwright test",
|
|
69
|
+
"typecheck": "tsc -p ./tsconfig.json",
|
|
70
|
+
"version": "pnpm version-file && GENERATE_SNIPPET=true pnpm build && cp lib/scripts/amplitude-min.js playground/html/amplitude.js && cp lib/scripts/amplitude-min.js playground/react-spa/public/amplitude.js",
|
|
71
|
+
"version-file": "node -p \"'export const VERSION = \\'' + require('./package.json').version + '\\';'\" > src/version.ts"
|
|
72
|
+
}
|
|
73
|
+
}
|