@marketrix.ai/widget 3.8.314 → 3.8.329
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 +2 -13
- package/dist/src/context/ChatContext.d.ts +5 -5
- package/dist/src/context/sseReducer.d.ts +2 -2
- package/dist/src/design-system/semantic-tokens.d.ts +0 -1
- package/dist/src/index.d.ts +0 -6
- package/dist/src/sdk/contract.d.ts +0 -17
- package/dist/src/sdk/contracts/application.d.ts +3 -0
- package/dist/src/sdk/contracts/widget.d.ts +0 -51
- package/dist/src/sdk/index.d.ts +0 -17
- package/dist/src/services/StorageService.d.ts +0 -1
- package/dist/widget.mjs +8 -8
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -4
- package/dist/src/services/RrwebSessionRecorder.d.ts +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marketrix.ai/widget",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.329",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/widget.mjs",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@base-ui/react": "^1.6.0",
|
|
42
42
|
"@orpc/client": "^1.14.8",
|
|
43
43
|
"@orpc/contract": "^1.14.8",
|
|
44
|
-
"@rrweb/record": "^2.1.0",
|
|
45
44
|
"tailwind-merge": "^3.6.0",
|
|
46
45
|
"zod": "^4.4.3"
|
|
47
46
|
},
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@eslint/js": "^10.0.1",
|
|
54
|
-
"@rrweb/types": "^2.0.0-alpha.20",
|
|
55
53
|
"@tailwindcss/vite": "^4.3.3",
|
|
56
54
|
"@testing-library/jest-dom": "^6.9.1",
|
|
57
55
|
"@testing-library/react": "^16.3.2",
|
|
@@ -62,7 +60,6 @@
|
|
|
62
60
|
"@typescript-eslint/parser": "^8.59.0",
|
|
63
61
|
"@vitejs/plugin-react": "^6.0.3",
|
|
64
62
|
"@vitest/coverage-v8": "^4.1.10",
|
|
65
|
-
"axe-core": "^4.12.1",
|
|
66
63
|
"eslint": "^10.7.0",
|
|
67
64
|
"eslint-config-prettier": "^10.1.8",
|
|
68
65
|
"eslint-plugin-import-x": "^4.17.1",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** Real-time RRWeb recording; batched events POSTed to the API widget-message endpoint. */
|
|
2
|
-
export declare class RrwebSessionRecorder {
|
|
3
|
-
private eventQueue;
|
|
4
|
-
private estimatedQueueBytes;
|
|
5
|
-
private sessionId;
|
|
6
|
-
private stopRecording;
|
|
7
|
-
private isRecording;
|
|
8
|
-
private chatId;
|
|
9
|
-
private applicationId;
|
|
10
|
-
private metadataSent;
|
|
11
|
-
private startPromise;
|
|
12
|
-
private stopRequested;
|
|
13
|
-
private flushTimer;
|
|
14
|
-
private consecutiveFailures;
|
|
15
|
-
private isFlushing;
|
|
16
|
-
constructor(chatId: string, applicationId: number);
|
|
17
|
-
private metadataEmit;
|
|
18
|
-
private bufferEvent;
|
|
19
|
-
/**
|
|
20
|
-
* POST buffered events (batch capped at MAX_BATCH_BYTES). Transient errors (5xx/network) re-queue
|
|
21
|
-
* up to MAX_CONSECUTIVE_FAILURES; permanent errors (4xx) drop immediately (a retry never succeeds).
|
|
22
|
-
*/
|
|
23
|
-
private flush;
|
|
24
|
-
/** Concurrent-call safe — returns the in-flight startPromise. */
|
|
25
|
-
start(): Promise<void>;
|
|
26
|
-
/** Rechecks stopRequested at each async boundary so a mid-startup stop aborts cleanly. */
|
|
27
|
-
private doStart;
|
|
28
|
-
stop(): void;
|
|
29
|
-
getSessionId(): string;
|
|
30
|
-
isActive(): boolean;
|
|
31
|
-
}
|