@amplitude/session-replay-browser 1.52.0-codexsemantic-review-integration.0 → 1.52.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/lib/cjs/config/joined-config.d.ts +1 -0
- package/lib/cjs/config/joined-config.d.ts.map +1 -1
- package/lib/cjs/config/joined-config.js +10 -1
- package/lib/cjs/config/joined-config.js.map +1 -1
- package/lib/cjs/config/local-config.d.ts +3 -3
- package/lib/cjs/config/local-config.d.ts.map +1 -1
- package/lib/cjs/config/local-config.js +5 -3
- package/lib/cjs/config/local-config.js.map +1 -1
- package/lib/cjs/config/types.d.ts +17 -9
- package/lib/cjs/config/types.d.ts.map +1 -1
- package/lib/cjs/config/types.js.map +1 -1
- package/lib/cjs/helpers.d.ts.map +1 -1
- package/lib/cjs/helpers.js +7 -4
- package/lib/cjs/helpers.js.map +1 -1
- package/lib/cjs/hooks/click.d.ts +2 -8
- package/lib/cjs/hooks/click.d.ts.map +1 -1
- package/lib/cjs/hooks/click.js +3 -42
- package/lib/cjs/hooks/click.js.map +1 -1
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/plugins/url-tracking-plugin.d.ts +0 -3
- package/lib/cjs/plugins/url-tracking-plugin.d.ts.map +1 -1
- package/lib/cjs/plugins/url-tracking-plugin.js +9 -16
- package/lib/cjs/plugins/url-tracking-plugin.js.map +1 -1
- package/lib/cjs/semantic-identity.d.ts +1 -1
- package/lib/cjs/semantic-identity.d.ts.map +1 -1
- package/lib/cjs/semantic-identity.js +4 -3
- package/lib/cjs/semantic-identity.js.map +1 -1
- package/lib/cjs/semantic-types.d.ts +45 -0
- package/lib/cjs/semantic-types.d.ts.map +1 -0
- package/lib/cjs/semantic-types.js +3 -0
- package/lib/cjs/semantic-types.js.map +1 -0
- package/lib/cjs/semantic.d.ts +9 -12
- package/lib/cjs/semantic.d.ts.map +1 -1
- package/lib/cjs/semantic.js +17 -90
- package/lib/cjs/semantic.js.map +1 -1
- package/lib/cjs/session-replay.d.ts +39 -2
- package/lib/cjs/session-replay.d.ts.map +1 -1
- package/lib/cjs/session-replay.js +267 -132
- package/lib/cjs/session-replay.js.map +1 -1
- package/lib/cjs/utils/rrweb.d.ts +0 -3
- package/lib/cjs/utils/rrweb.d.ts.map +1 -1
- package/lib/cjs/utils/rrweb.js.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/cjs/window-focus.d.ts +40 -0
- package/lib/cjs/window-focus.d.ts.map +1 -0
- package/lib/cjs/window-focus.js +182 -0
- package/lib/cjs/window-focus.js.map +1 -0
- package/lib/esm/config/joined-config.d.ts +1 -0
- package/lib/esm/config/joined-config.d.ts.map +1 -1
- package/lib/esm/config/joined-config.js +10 -1
- package/lib/esm/config/joined-config.js.map +1 -1
- package/lib/esm/config/local-config.d.ts +3 -3
- package/lib/esm/config/local-config.d.ts.map +1 -1
- package/lib/esm/config/local-config.js +5 -3
- package/lib/esm/config/local-config.js.map +1 -1
- package/lib/esm/config/types.d.ts +17 -9
- package/lib/esm/config/types.d.ts.map +1 -1
- package/lib/esm/config/types.js.map +1 -1
- package/lib/esm/helpers.d.ts.map +1 -1
- package/lib/esm/helpers.js +8 -5
- package/lib/esm/helpers.js.map +1 -1
- package/lib/esm/hooks/click.d.ts +2 -8
- package/lib/esm/hooks/click.d.ts.map +1 -1
- package/lib/esm/hooks/click.js +3 -42
- package/lib/esm/hooks/click.js.map +1 -1
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/plugins/url-tracking-plugin.d.ts +0 -3
- package/lib/esm/plugins/url-tracking-plugin.d.ts.map +1 -1
- package/lib/esm/plugins/url-tracking-plugin.js +9 -16
- package/lib/esm/plugins/url-tracking-plugin.js.map +1 -1
- package/lib/esm/semantic-identity.d.ts +1 -1
- package/lib/esm/semantic-identity.d.ts.map +1 -1
- package/lib/esm/semantic-identity.js +4 -3
- package/lib/esm/semantic-identity.js.map +1 -1
- package/lib/esm/semantic-types.d.ts +45 -0
- package/lib/esm/semantic-types.d.ts.map +1 -0
- package/lib/esm/semantic-types.js +2 -0
- package/lib/esm/semantic-types.js.map +1 -0
- package/lib/esm/semantic.d.ts +9 -12
- package/lib/esm/semantic.d.ts.map +1 -1
- package/lib/esm/semantic.js +17 -90
- package/lib/esm/semantic.js.map +1 -1
- package/lib/esm/session-replay.d.ts +39 -2
- package/lib/esm/session-replay.d.ts.map +1 -1
- package/lib/esm/session-replay.js +267 -132
- package/lib/esm/session-replay.js.map +1 -1
- package/lib/esm/utils/rrweb.d.ts +0 -3
- package/lib/esm/utils/rrweb.d.ts.map +1 -1
- package/lib/esm/utils/rrweb.js.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/esm/window-focus.d.ts +40 -0
- package/lib/esm/window-focus.d.ts.map +1 -0
- package/lib/esm/window-focus.js +179 -0
- package/lib/esm/window-focus.js.map +1 -0
- package/lib/scripts/index-min.js +1 -1
- package/lib/scripts/index-min.js.gz +0 -0
- package/lib/scripts/index-min.js.map +1 -1
- package/lib/scripts/session-replay-browser-min.js +1 -1
- package/lib/scripts/session-replay-browser-min.js.gz +0 -0
- package/lib/scripts/session-replay-browser-min.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-identity.js","sourceRoot":"","sources":["../../src/semantic-identity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"semantic-identity.js","sourceRoot":"","sources":["../../src/semantic-identity.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,2BA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I;gBAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,uBAAM,QAAQ,KAAE,MAAM,EAAE,MAAM,CAAC,MAAM,IAAG,CAAC;YAC7F,IAAM,OAAK,GAAG,UAAC,KAAoB;gBACjC,IAAI;oBACF,SAAO,CAAC,OAAO,CAAC,wBAAwB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC,CAAC;iBAC/F;gBAAC,WAAM;oBACN,6EAA6E;iBAC9E;YACH,CAAC,CAAC;YACF,SAAO,CAAC,OAAO,CACb,wBAAwB,EACxB,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CACzE,CAAC;YACF,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE;;gBACjC,2EAA2E;gBAC3E,kFAAkF;gBAClF,IAAI,CAAA,MAAA,MAAI,EAAE,0CAAE,KAAK,MAAK,QAAQ,CAAC,WAAW;oBAAE,OAAK,CAAC,IAAI,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAC,KAAK;gBACvC,IAAI,KAAK,CAAC,SAAS;oBAAE,OAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACnD,CAAC,CAAC,CAAC;SACJ;QAAC,WAAM;YACN,4DAA4D;YAC5D,QAAQ,GAAG,QAAQ,CAAC;SACrB;KACF;IACD,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnC,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { UUID } from '@amplitude/analytics-core';\nimport type { SemanticIdentity } from './semantic-types';\n\nexport const SEMANTIC_TAB_STORAGE_KEY = 'AMP_semantic_tab_v1';\nconst identities = new WeakMap<Document, SemanticIdentity>();\ntype StoredTab = { tab_id: string; owner: string | null };\nconst uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\n/** Called only when semantic capture accepts an event. Shared by SDK instances in this document. */\nexport function getSemanticIdentity(scope: Window): SemanticIdentity {\n const document = scope.document;\n const existing = identities.get(document);\n if (existing) return existing;\n const fallback = Object.freeze({ tab_id: UUID(), document_id: UUID() });\n let identity = fallback;\n // Child frames share their parent's sessionStorage. Do not claim its tab record.\n if (scope.top === scope) {\n try {\n const storage = scope.sessionStorage;\n const read = (): StoredTab | undefined => {\n try {\n const value = JSON.parse(storage.getItem(SEMANTIC_TAB_STORAGE_KEY) ?? 'null') as StoredTab | null;\n if (value && uuidPattern.test(value.tab_id) && (value.owner === null || typeof value.owner === 'string')) {\n return value;\n }\n } catch {\n // Corrupt or blocked storage is equivalent to no saved identity.\n }\n return undefined;\n };\n const stored = read();\n // A copied record still owned by a live document belongs to the opener/duplicated tab.\n if (stored?.owner === null) identity = Object.freeze({ ...identity, tab_id: stored.tab_id });\n const write = (owner: string | null) => {\n try {\n storage.setItem(SEMANTIC_TAB_STORAGE_KEY, JSON.stringify({ tab_id: identity.tab_id, owner }));\n } catch {\n // Keep the current in-memory identity stable if storage becomes unavailable.\n }\n };\n storage.setItem(\n SEMANTIC_TAB_STORAGE_KEY,\n JSON.stringify({ tab_id: identity.tab_id, owner: identity.document_id }),\n );\n scope.addEventListener('pagehide', () => {\n // Release on actual navigation, not beforeunload (which can be cancelled).\n // This also allows same-tab navigation while the current document enters bfcache.\n if (read()?.owner === identity.document_id) write(null);\n });\n scope.addEventListener('pageshow', (event) => {\n if (event.persisted) write(identity.document_id);\n });\n } catch {\n // No storage access: identity lasts for this document only.\n identity = fallback;\n }\n }\n identities.set(document, identity);\n return identity;\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { PrivacyConfig } from '@amplitude/session-replay-dom-privacy';
|
|
2
|
+
/** Serializable controls; remote configuration cannot supply executable code. */
|
|
3
|
+
export interface SemanticCaptureConfig {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
sampleRate?: number;
|
|
6
|
+
families?: Partial<Record<string, boolean>>;
|
|
7
|
+
}
|
|
8
|
+
export interface SemanticAnalyticsContext {
|
|
9
|
+
present: boolean;
|
|
10
|
+
autocapture: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface SemanticIdentity {
|
|
13
|
+
readonly tab_id: string;
|
|
14
|
+
readonly document_id: string;
|
|
15
|
+
}
|
|
16
|
+
/** Structural contract keeps the semantic implementation out of the replay SDK. */
|
|
17
|
+
export interface SemanticCaptureHost {
|
|
18
|
+
document: Document;
|
|
19
|
+
window: Window;
|
|
20
|
+
sdk: string;
|
|
21
|
+
emit: (event: {
|
|
22
|
+
name: string;
|
|
23
|
+
timestamp: number;
|
|
24
|
+
payload: object;
|
|
25
|
+
}) => void;
|
|
26
|
+
getPrivacy: () => PrivacyConfig;
|
|
27
|
+
getIdentity?: () => SemanticIdentity;
|
|
28
|
+
getAnalyticsContext?: () => SemanticAnalyticsContext;
|
|
29
|
+
inlineStylesheet?: boolean;
|
|
30
|
+
onError?: (error: unknown) => void;
|
|
31
|
+
}
|
|
32
|
+
export interface SemanticCaptureController {
|
|
33
|
+
isActive: () => boolean;
|
|
34
|
+
start: () => void;
|
|
35
|
+
stop: () => void;
|
|
36
|
+
updateConfig: (config: SemanticCaptureConfig) => void;
|
|
37
|
+
resetSession: () => void;
|
|
38
|
+
notify: (signal: 'snapshot', value: undefined) => void;
|
|
39
|
+
}
|
|
40
|
+
export type SemanticCaptureFactory = (config: SemanticCaptureConfig, host: SemanticCaptureHost) => SemanticCaptureController;
|
|
41
|
+
export interface SemanticCaptureOptions extends SemanticCaptureConfig {
|
|
42
|
+
/** Local implementation. No semantic capture runs without a supplied createCapture callback. */
|
|
43
|
+
createCapture?: SemanticCaptureFactory;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingUR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,EAAE,MAAM,IAAI,CAAC;IACjB,YAAY,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACxD;AACD,MAAM,MAAM,sBAAsB,GAAG,CACnC,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE,mBAAmB,KACtB,yBAAyB,CAAC;AAC/B,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,gGAAgG;IAChG,aAAa,CAAC,EAAE,sBAAsB,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-types.js","sourceRoot":"","sources":["../../src/semantic-types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PrivacyConfig } from '@amplitude/session-replay-dom-privacy';\n\n/** Serializable controls; remote configuration cannot supply executable code. */\nexport interface SemanticCaptureConfig {\n enabled: boolean;\n sampleRate?: number;\n families?: Partial<Record<string, boolean>>;\n}\nexport interface SemanticAnalyticsContext {\n present: boolean;\n autocapture: string[];\n}\nexport interface SemanticIdentity {\n readonly tab_id: string;\n readonly document_id: string;\n}\n/** Structural contract keeps the semantic implementation out of the replay SDK. */\nexport interface SemanticCaptureHost {\n document: Document;\n window: Window;\n sdk: string;\n emit: (event: { name: string; timestamp: number; payload: object }) => void;\n getPrivacy: () => PrivacyConfig;\n getIdentity?: () => SemanticIdentity;\n getAnalyticsContext?: () => SemanticAnalyticsContext;\n inlineStylesheet?: boolean;\n onError?: (error: unknown) => void;\n}\nexport interface SemanticCaptureController {\n isActive: () => boolean;\n start: () => void;\n stop: () => void;\n updateConfig: (config: SemanticCaptureConfig) => void;\n resetSession: () => void;\n notify: (signal: 'snapshot', value: undefined) => void;\n}\nexport type SemanticCaptureFactory = (\n config: SemanticCaptureConfig,\n host: SemanticCaptureHost,\n) => SemanticCaptureController;\nexport interface SemanticCaptureOptions extends SemanticCaptureConfig {\n /** Local implementation. No semantic capture runs without a supplied createCapture callback. */\n createCapture?: SemanticCaptureFactory;\n}\n"]}
|
package/lib/esm/semantic.d.ts
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SemanticCaptureConfig, SemanticCaptureFactory, SemanticCaptureHost } from './semantic-types';
|
|
2
|
+
/** Transport startup queue bound, independent of recorder-specific event budgets. */
|
|
3
|
+
export declare const MAX_PENDING_SEMANTIC_SNAPSHOTS = 200;
|
|
2
4
|
import { eventWithTime } from '@amplitude/rrweb-types';
|
|
3
|
-
/**
|
|
5
|
+
/** Starts capture only after rrweb can accept custom events. */
|
|
4
6
|
export declare class ReplaySemanticAdapter {
|
|
7
|
+
readonly createCapture: SemanticCaptureFactory;
|
|
5
8
|
private readonly capture;
|
|
6
9
|
private sessionId?;
|
|
7
10
|
private ready;
|
|
8
|
-
private firstSnapshot;
|
|
9
11
|
private pendingSnapshots;
|
|
10
|
-
private pendingEvents;
|
|
11
|
-
private startSignal;
|
|
12
|
-
private resumeReason;
|
|
13
12
|
private config;
|
|
14
|
-
constructor(host:
|
|
13
|
+
constructor(createCapture: SemanticCaptureFactory, host: SemanticCaptureHost);
|
|
15
14
|
prepare(config: SemanticCaptureConfig, sessionId: string | number): void;
|
|
16
|
-
/** rrweb may synchronously emit its initial snapshot before returning its cancellation callback. */
|
|
17
15
|
recordingReady(): void;
|
|
18
|
-
/** Called only
|
|
16
|
+
/** Called only for replay events accepted for delivery; custom events cannot recurse. */
|
|
19
17
|
event(event: eventWithTime): void;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
stop(reason?: RecordingSignal['reason'], state?: 'stop' | 'pause'): void;
|
|
18
|
+
private snapshot;
|
|
19
|
+
stop(): void;
|
|
23
20
|
}
|
|
24
21
|
//# sourceMappingURL=semantic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../../src/semantic.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../../src/semantic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAErB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAE1B,qFAAqF;AACrF,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAClD,OAAO,EAAa,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAElE,gEAAgE;AAChE,qBAAa,qBAAqB;IAOpB,QAAQ,CAAC,aAAa,EAAE,sBAAsB;IAN1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;IACpD,OAAO,CAAC,SAAS,CAAC,CAAkB;IACpC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,MAAM,CAA6C;gBAEtC,aAAa,EAAE,sBAAsB,EAAE,IAAI,EAAE,mBAAmB;IAIrF,OAAO,CAAC,MAAM,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAQxE,cAAc,IAAI,IAAI;IAStB,yFAAyF;IACzF,KAAK,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAIjC,OAAO,CAAC,QAAQ;IAUhB,IAAI,IAAI,IAAI;CAKb"}
|
package/lib/esm/semantic.js
CHANGED
|
@@ -1,126 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { EventType
|
|
4
|
-
/**
|
|
1
|
+
/** Transport startup queue bound, independent of recorder-specific event budgets. */
|
|
2
|
+
export var MAX_PENDING_SEMANTIC_SNAPSHOTS = 200;
|
|
3
|
+
import { EventType } from '@amplitude/rrweb-types';
|
|
4
|
+
/** Starts capture only after rrweb can accept custom events. */
|
|
5
5
|
var ReplaySemanticAdapter = /** @class */ (function () {
|
|
6
|
-
function ReplaySemanticAdapter(host) {
|
|
6
|
+
function ReplaySemanticAdapter(createCapture, host) {
|
|
7
|
+
this.createCapture = createCapture;
|
|
7
8
|
this.ready = false;
|
|
8
|
-
this.firstSnapshot = false;
|
|
9
9
|
this.pendingSnapshots = 0;
|
|
10
|
-
this.pendingEvents = [];
|
|
11
|
-
this.startSignal = { state: 'start', reason: 'init' };
|
|
12
|
-
this.resumeReason = 'focus';
|
|
13
10
|
this.config = { enabled: false };
|
|
14
|
-
this.capture =
|
|
11
|
+
this.capture = createCapture(this.config, host);
|
|
15
12
|
}
|
|
16
13
|
ReplaySemanticAdapter.prototype.prepare = function (config, sessionId) {
|
|
17
|
-
|
|
18
|
-
var firstSession = this.sessionId === undefined;
|
|
14
|
+
this.stop();
|
|
19
15
|
this.config = config;
|
|
20
16
|
this.capture.updateConfig(config);
|
|
21
|
-
if (
|
|
17
|
+
if (this.sessionId !== sessionId)
|
|
22
18
|
this.capture.resetSession();
|
|
23
|
-
this.startSignal = {
|
|
24
|
-
state: newSession ? 'start' : 'resume',
|
|
25
|
-
reason: firstSession ? 'init' : newSession ? 'new_session' : this.resumeReason,
|
|
26
|
-
};
|
|
27
19
|
this.sessionId = sessionId;
|
|
28
|
-
this.ready = false;
|
|
29
|
-
this.firstSnapshot = false;
|
|
30
|
-
this.pendingSnapshots = 0;
|
|
31
|
-
this.pendingEvents = [];
|
|
32
20
|
};
|
|
33
|
-
/** rrweb may synchronously emit its initial snapshot before returning its cancellation callback. */
|
|
34
21
|
ReplaySemanticAdapter.prototype.recordingReady = function () {
|
|
35
|
-
var e_1, _a;
|
|
36
22
|
if (!this.config.enabled || this.ready)
|
|
37
23
|
return;
|
|
38
24
|
this.ready = true;
|
|
39
25
|
this.capture.start();
|
|
40
|
-
var events = this.pendingEvents;
|
|
41
|
-
this.pendingEvents = [];
|
|
42
|
-
try {
|
|
43
|
-
for (var events_1 = __values(events), events_1_1 = events_1.next(); !events_1_1.done; events_1_1 = events_1.next()) {
|
|
44
|
-
var event_1 = events_1_1.value;
|
|
45
|
-
this.event(event_1);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
49
|
-
finally {
|
|
50
|
-
try {
|
|
51
|
-
if (events_1_1 && !events_1_1.done && (_a = events_1.return)) _a.call(events_1);
|
|
52
|
-
}
|
|
53
|
-
finally { if (e_1) throw e_1.error; }
|
|
54
|
-
}
|
|
55
26
|
var pending = this.pendingSnapshots;
|
|
56
27
|
this.pendingSnapshots = 0;
|
|
57
28
|
for (var i = 0; i < pending; i++)
|
|
58
29
|
this.snapshot();
|
|
59
30
|
};
|
|
60
|
-
/** Called only
|
|
31
|
+
/** Called only for replay events accepted for delivery; custom events cannot recurse. */
|
|
61
32
|
ReplaySemanticAdapter.prototype.event = function (event) {
|
|
62
|
-
if (
|
|
63
|
-
return;
|
|
64
|
-
var snapshot = event.type === EventType.FullSnapshot;
|
|
65
|
-
var mutation = event.type === EventType.IncrementalSnapshot && event.data.source === IncrementalSource.Mutation;
|
|
66
|
-
var payload = event.type === EventType.Plugin && event.data.plugin === 'amplitude/url-tracking@1'
|
|
67
|
-
? event.data.payload
|
|
68
|
-
: undefined;
|
|
69
|
-
var url = payload && typeof payload === 'object' && payload.type === 'url-change-event' && typeof payload.href === 'string'
|
|
70
|
-
? payload.href
|
|
71
|
-
: undefined;
|
|
72
|
-
if (!snapshot && !mutation && url === undefined)
|
|
73
|
-
return;
|
|
74
|
-
if (!this.ready) {
|
|
75
|
-
// Startup is synchronous; retain a bounded number of recorder events until start().
|
|
76
|
-
if (this.pendingEvents.length < 128)
|
|
77
|
-
this.pendingEvents.push(event);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (!this.capture.isActive())
|
|
81
|
-
return;
|
|
82
|
-
if (url !== undefined) {
|
|
83
|
-
this.capture.notify('url', { url: url, timestamp: event.timestamp });
|
|
84
|
-
}
|
|
85
|
-
else if (event.type === EventType.FullSnapshot) {
|
|
86
|
-
this.capture.notify('dom', { type: 'snapshot', node: event.data.node });
|
|
33
|
+
if (event.type === EventType.FullSnapshot)
|
|
87
34
|
this.snapshot();
|
|
88
|
-
}
|
|
89
|
-
else if (event.type === EventType.IncrementalSnapshot && event.data.source === IncrementalSource.Mutation) {
|
|
90
|
-
this.capture.notify('dom', __assign(__assign({}, event.data), { type: 'mutation' }));
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
ReplaySemanticAdapter.prototype.click = function (event) {
|
|
94
|
-
if (this.ready)
|
|
95
|
-
this.capture.notify('click', event);
|
|
96
35
|
};
|
|
97
36
|
ReplaySemanticAdapter.prototype.snapshot = function () {
|
|
98
37
|
if (!this.config.enabled)
|
|
99
38
|
return;
|
|
100
39
|
if (!this.ready) {
|
|
101
|
-
|
|
40
|
+
// No DOM retention; bound deferred work before the supplied runtime is ready.
|
|
41
|
+
this.pendingSnapshots = Math.min(this.pendingSnapshots + 1, MAX_PENDING_SEMANTIC_SNAPSHOTS);
|
|
102
42
|
return;
|
|
103
43
|
}
|
|
104
|
-
if (
|
|
105
|
-
this.
|
|
106
|
-
this.capture.notify('recording', this.startSignal);
|
|
107
|
-
}
|
|
108
|
-
this.capture.notify('snapshot', undefined);
|
|
44
|
+
if (this.capture.isActive())
|
|
45
|
+
this.capture.notify('snapshot', undefined);
|
|
109
46
|
};
|
|
110
|
-
ReplaySemanticAdapter.prototype.stop = function (
|
|
111
|
-
if (reason === void 0) { reason = 'targeting'; }
|
|
112
|
-
if (state === void 0) { state = 'stop'; }
|
|
113
|
-
var emitStop = this.ready && this.firstSnapshot;
|
|
114
|
-
this.ready = false;
|
|
115
|
-
this.firstSnapshot = false;
|
|
116
|
-
if (emitStop) {
|
|
117
|
-
this.resumeReason = reason;
|
|
118
|
-
this.capture.notify('recording', { state: state, reason: reason });
|
|
119
|
-
}
|
|
120
|
-
this.capture.stop();
|
|
121
|
-
this.pendingEvents = [];
|
|
47
|
+
ReplaySemanticAdapter.prototype.stop = function () {
|
|
122
48
|
this.ready = false;
|
|
123
49
|
this.pendingSnapshots = 0;
|
|
50
|
+
this.capture.stop();
|
|
124
51
|
};
|
|
125
52
|
return ReplaySemanticAdapter;
|
|
126
53
|
}());
|
package/lib/esm/semantic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.js","sourceRoot":"","sources":["../../src/semantic.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"semantic.js","sourceRoot":"","sources":["../../src/semantic.ts"],"names":[],"mappings":"AAOA,qFAAqF;AACrF,MAAM,CAAC,IAAM,8BAA8B,GAAG,GAAG,CAAC;AAClD,OAAO,EAAE,SAAS,EAAiB,MAAM,wBAAwB,CAAC;AAElE,gEAAgE;AAChE;IAOE,+BAAqB,aAAqC,EAAE,IAAyB;QAAhE,kBAAa,GAAb,aAAa,CAAwB;QAJlD,UAAK,GAAG,KAAK,CAAC;QACd,qBAAgB,GAAG,CAAC,CAAC;QACrB,WAAM,GAA0B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAGzD,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,uCAAO,GAAP,UAAQ,MAA6B,EAAE,SAA0B;QAC/D,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;YAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAC9D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,8CAAc,GAAd;QACE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpD,CAAC;IAED,yFAAyF;IACzF,qCAAK,GAAL,UAAM,KAAoB;QACxB,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,YAAY;YAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC7D,CAAC;IAEO,wCAAQ,GAAhB;QACE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO;QACjC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,8EAA8E;YAC9E,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,EAAE,8BAA8B,CAAC,CAAC;YAC5F,OAAO;SACR;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,oCAAI,GAAJ;QACE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;IACH,4BAAC;AAAD,CAAC,AAhDD,IAgDC","sourcesContent":["import type {\n SemanticCaptureConfig,\n SemanticCaptureController,\n SemanticCaptureFactory,\n SemanticCaptureHost,\n} from './semantic-types';\n\n/** Transport startup queue bound, independent of recorder-specific event budgets. */\nexport const MAX_PENDING_SEMANTIC_SNAPSHOTS = 200;\nimport { EventType, eventWithTime } from '@amplitude/rrweb-types';\n\n/** Starts capture only after rrweb can accept custom events. */\nexport class ReplaySemanticAdapter {\n private readonly capture: SemanticCaptureController;\n private sessionId?: string | number;\n private ready = false;\n private pendingSnapshots = 0;\n private config: SemanticCaptureConfig = { enabled: false };\n\n constructor(readonly createCapture: SemanticCaptureFactory, host: SemanticCaptureHost) {\n this.capture = createCapture(this.config, host);\n }\n\n prepare(config: SemanticCaptureConfig, sessionId: string | number): void {\n this.stop();\n this.config = config;\n this.capture.updateConfig(config);\n if (this.sessionId !== sessionId) this.capture.resetSession();\n this.sessionId = sessionId;\n }\n\n recordingReady(): void {\n if (!this.config.enabled || this.ready) return;\n this.ready = true;\n this.capture.start();\n const pending = this.pendingSnapshots;\n this.pendingSnapshots = 0;\n for (let i = 0; i < pending; i++) this.snapshot();\n }\n\n /** Called only for replay events accepted for delivery; custom events cannot recurse. */\n event(event: eventWithTime): void {\n if (event.type === EventType.FullSnapshot) this.snapshot();\n }\n\n private snapshot(): void {\n if (!this.config.enabled) return;\n if (!this.ready) {\n // No DOM retention; bound deferred work before the supplied runtime is ready.\n this.pendingSnapshots = Math.min(this.pendingSnapshots + 1, MAX_PENDING_SEMANTIC_SNAPSHOTS);\n return;\n }\n if (this.capture.isActive()) this.capture.notify('snapshot', undefined);\n }\n\n stop(): void {\n this.ready = false;\n this.pendingSnapshots = 0;\n this.capture.stop();\n }\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { RecordingSignal } from '@amplitude/amp-semantic';
|
|
2
1
|
import { ILogger } from '@amplitude/analytics-core';
|
|
3
2
|
import { LoggingConfig, SessionReplayJoinedConfig, SessionReplayJoinedConfigGenerator } from './config/types';
|
|
4
3
|
import { CustomRRwebEvent } from './constants';
|
|
@@ -56,6 +55,14 @@ export declare class SessionReplay implements AmplitudeSessionReplay {
|
|
|
56
55
|
*/
|
|
57
56
|
private startChildRecordingOnSetup;
|
|
58
57
|
private pendingEmitEvents;
|
|
58
|
+
/**
|
|
59
|
+
* Tab hide/blur uploads are deferred by one macrotask. `visibilitychange` (hidden)
|
|
60
|
+
* fires before `pagehide`, and the default memory store clears the beacon buffer
|
|
61
|
+
* as soon as `sendEvents` resolves. If that happens first, the page-leave beacon
|
|
62
|
+
* is empty and the fetch it raced is cancelled on unload.
|
|
63
|
+
*/
|
|
64
|
+
private hiddenFlushTimer;
|
|
65
|
+
private windowFocus;
|
|
59
66
|
/** Current page URL, kept in sync with SPA navigations for URL-based masking */
|
|
60
67
|
private currentPageUrl;
|
|
61
68
|
private recordEventsPendingShouldLogMetadata;
|
|
@@ -97,7 +104,36 @@ export declare class SessionReplay implements AmplitudeSessionReplay {
|
|
|
97
104
|
[key: string]: string | null;
|
|
98
105
|
};
|
|
99
106
|
blurListener: () => void;
|
|
107
|
+
/**
|
|
108
|
+
* Tab show/hide. `focus` is the wrong signal for this: it also fires for iframes
|
|
109
|
+
* and editors, which is why `captureFullSnapshotOnFocus` defaults off. A document
|
|
110
|
+
* visibility change happens once per real tab switch.
|
|
111
|
+
*
|
|
112
|
+
* Hidden: flush queued mutations so playback is not left on the last snapshot that
|
|
113
|
+
* happened to be in the store.
|
|
114
|
+
* Visible: take one checkout snapshot of this document and send it. Incremental
|
|
115
|
+
* events from another tab use that tab's node ids and are dropped, so without a
|
|
116
|
+
* fresh checkout the player stays on whichever snapshot it last applied.
|
|
117
|
+
*/
|
|
118
|
+
visibilityListener: () => void;
|
|
100
119
|
focusListener: () => void;
|
|
120
|
+
/** Move idle-queued rrweb events into the store, then ship the current sequence. */
|
|
121
|
+
private flushPendingReplayEvents;
|
|
122
|
+
/**
|
|
123
|
+
* Flush now, upload on the next macrotask. The flush is synchronous so a
|
|
124
|
+
* following `pagehide` still sees the events in the beacon buffer. The upload
|
|
125
|
+
* waits so a memory-store `sendEvents` cannot clear that buffer before the
|
|
126
|
+
* beacon copies it. A tab switch never reaches `pagehide`, so the timer uploads.
|
|
127
|
+
*/
|
|
128
|
+
private scheduleHiddenSend;
|
|
129
|
+
private cancelHiddenSend;
|
|
130
|
+
private hostSetTimeout;
|
|
131
|
+
private hostClearTimeout;
|
|
132
|
+
/**
|
|
133
|
+
* Checkout the DOM the user can actually see, then send it. Queued mutations are
|
|
134
|
+
* flushed first so they stay ordered ahead of the new snapshot.
|
|
135
|
+
*/
|
|
136
|
+
private captureVisibleTab;
|
|
101
137
|
/**
|
|
102
138
|
* This is an instance member so that if init is called multiple times
|
|
103
139
|
* it doesn't add another listener to the page leave event. This is to
|
|
@@ -116,13 +152,14 @@ export declare class SessionReplay implements AmplitudeSessionReplay {
|
|
|
116
152
|
recordEvents(shouldLogMetadata?: boolean): Promise<void>;
|
|
117
153
|
private shouldAbandonRecordStart;
|
|
118
154
|
private _recordEvents;
|
|
155
|
+
private useSemanticAdapter;
|
|
119
156
|
private prepareSemanticCapture;
|
|
120
157
|
private buildRRWebRecordOptions;
|
|
121
158
|
private _recordEventsInChildMode;
|
|
122
159
|
addCustomRRWebEvent: (eventName: CustomRRwebEvent, eventData?: {
|
|
123
160
|
[key: string]: any;
|
|
124
161
|
}, addStorageInfo?: boolean) => Promise<void>;
|
|
125
|
-
stopRecordingEvents: (
|
|
162
|
+
stopRecordingEvents: () => void;
|
|
126
163
|
getDeviceId(): string | undefined;
|
|
127
164
|
getSessionId(): string | number | undefined;
|
|
128
165
|
start(): import("@amplitude/analytics-core").AmplitudeReturn<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-replay.d.ts","sourceRoot":"","sources":["../../src/session-replay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-replay.d.ts","sourceRoot":"","sources":["../../src/session-replay.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,OAAO,EASR,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,kCAAkC,EAInC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,EAQjB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;A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