@mrrocket/sdk 0.27.0 → 0.28.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/CHANGELOG.md +9 -0
- package/dist/api-client.d.ts +2 -0
- package/dist/api-client.js.map +1 -1
- package/dist/browser/mrrocket-messenger.js +6 -3
- package/dist/browser/mrrocket.js +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/messenger-ui.js +8 -4
- package/dist/messenger-ui.js.map +1 -1
- package/dist/react-native/index.d.cts +3 -1
- package/dist/react-native/index.d.ts +3 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/styles-css.d.ts +1 -1
- package/dist/styles-css.js +3 -0
- package/dist/styles-css.js.map +1 -1
- package/package.json +1 -1
|
@@ -216,10 +216,12 @@ interface ChatSummary {
|
|
|
216
216
|
}
|
|
217
217
|
/** One chat (the one asked for, else the visitor's newest, open or closed) and its messages. */
|
|
218
218
|
interface ChatThread {
|
|
219
|
+
/** `typing`: the team's AI agent is writing an answer in it right now (server 2026-11-27; older servers leave it out). */
|
|
219
220
|
conversation: {
|
|
220
221
|
id: string;
|
|
221
222
|
status: "open" | "solved";
|
|
222
223
|
seenAt?: string;
|
|
224
|
+
typing?: boolean;
|
|
223
225
|
} | null;
|
|
224
226
|
messages: ChatMessage[];
|
|
225
227
|
/** All the visitor's conversations, the latest activity first (0.19). */
|
|
@@ -857,7 +859,7 @@ interface PaywallHost {
|
|
|
857
859
|
|
|
858
860
|
type VariantId = string;
|
|
859
861
|
/** This build of the SDK. Sent with the config request so MRRocket knows what the site runs (error tracking, flags). */
|
|
860
|
-
declare const SDK_VERSION = "0.
|
|
862
|
+
declare const SDK_VERSION = "0.28.0";
|
|
861
863
|
/** One variant of an experiment. `changes` replaces texts that the page marks with `<Text id>`. */
|
|
862
864
|
interface VariantConfig {
|
|
863
865
|
id: VariantId;
|
|
@@ -216,10 +216,12 @@ interface ChatSummary {
|
|
|
216
216
|
}
|
|
217
217
|
/** One chat (the one asked for, else the visitor's newest, open or closed) and its messages. */
|
|
218
218
|
interface ChatThread {
|
|
219
|
+
/** `typing`: the team's AI agent is writing an answer in it right now (server 2026-11-27; older servers leave it out). */
|
|
219
220
|
conversation: {
|
|
220
221
|
id: string;
|
|
221
222
|
status: "open" | "solved";
|
|
222
223
|
seenAt?: string;
|
|
224
|
+
typing?: boolean;
|
|
223
225
|
} | null;
|
|
224
226
|
messages: ChatMessage[];
|
|
225
227
|
/** All the visitor's conversations, the latest activity first (0.19). */
|
|
@@ -857,7 +859,7 @@ interface PaywallHost {
|
|
|
857
859
|
|
|
858
860
|
type VariantId = string;
|
|
859
861
|
/** This build of the SDK. Sent with the config request so MRRocket knows what the site runs (error tracking, flags). */
|
|
860
|
-
declare const SDK_VERSION = "0.
|
|
862
|
+
declare const SDK_VERSION = "0.28.0";
|
|
861
863
|
/** One variant of an experiment. `changes` replaces texts that the page marks with `<Text id>`. */
|
|
862
864
|
interface VariantConfig {
|
|
863
865
|
id: VariantId;
|
|
@@ -114,7 +114,7 @@ var onLocale = (fn) => {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
// src/core.ts
|
|
117
|
-
var SDK_VERSION = "0.
|
|
117
|
+
var SDK_VERSION = "0.28.0";
|
|
118
118
|
var propOf = (person, name) => {
|
|
119
119
|
const want = name.trim().toLowerCase();
|
|
120
120
|
for (const [k, v] of Object.entries(person)) if (k.toLowerCase() === want) return v;
|