@reverbia/sdk 1.0.0-next.20260111125929 → 1.0.0-next.20260111202106
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/dist/react/index.cjs +11 -16
- package/dist/react/index.mjs +11 -16
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -3434,22 +3434,17 @@ function useChatStorage(options) {
|
|
|
3434
3434
|
);
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
(
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
`[getMessages] No URL available for ${fileId}, placeholder ${match} will remain in content`
|
|
3449
|
-
);
|
|
3450
|
-
return match;
|
|
3451
|
-
}
|
|
3452
|
-
);
|
|
3437
|
+
let resolvedContent = msg.content;
|
|
3438
|
+
for (const [fileId, url] of fileIdToUrlMap) {
|
|
3439
|
+
const placeholder = createFilePlaceholder(fileId);
|
|
3440
|
+
const escapedPlaceholder = placeholder.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3441
|
+
const placeholderRegex = new RegExp(escapedPlaceholder, "g");
|
|
3442
|
+
const replacement = ``;
|
|
3443
|
+
console.log(
|
|
3444
|
+
`[getMessages] Replacing ${placeholder} with: ${replacement}`
|
|
3445
|
+
);
|
|
3446
|
+
resolvedContent = resolvedContent.replace(placeholderRegex, replacement);
|
|
3447
|
+
}
|
|
3453
3448
|
console.log(
|
|
3454
3449
|
`[getMessages] Resolved content length: ${resolvedContent.length}, original length: ${msg.content.length}`
|
|
3455
3450
|
);
|
package/dist/react/index.mjs
CHANGED
|
@@ -3298,22 +3298,17 @@ function useChatStorage(options) {
|
|
|
3298
3298
|
);
|
|
3299
3299
|
}
|
|
3300
3300
|
}
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
(
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
`[getMessages] No URL available for ${fileId}, placeholder ${match} will remain in content`
|
|
3313
|
-
);
|
|
3314
|
-
return match;
|
|
3315
|
-
}
|
|
3316
|
-
);
|
|
3301
|
+
let resolvedContent = msg.content;
|
|
3302
|
+
for (const [fileId, url] of fileIdToUrlMap) {
|
|
3303
|
+
const placeholder = createFilePlaceholder(fileId);
|
|
3304
|
+
const escapedPlaceholder = placeholder.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3305
|
+
const placeholderRegex = new RegExp(escapedPlaceholder, "g");
|
|
3306
|
+
const replacement = ``;
|
|
3307
|
+
console.log(
|
|
3308
|
+
`[getMessages] Replacing ${placeholder} with: ${replacement}`
|
|
3309
|
+
);
|
|
3310
|
+
resolvedContent = resolvedContent.replace(placeholderRegex, replacement);
|
|
3311
|
+
}
|
|
3317
3312
|
console.log(
|
|
3318
3313
|
`[getMessages] Resolved content length: ${resolvedContent.length}, original length: ${msg.content.length}`
|
|
3319
3314
|
);
|