@cloudflare/ai-search-snippet 0.0.33 → 0.0.35
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (n, i, e) =>
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var U = (n, i, e) => i in n ? P(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
|
|
3
|
+
var a = (n, i, e) => U(n, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
const g = [
|
|
5
5
|
"Searching...",
|
|
6
6
|
"Digging through results...",
|
|
@@ -180,7 +180,10 @@ class K {
|
|
|
180
180
|
timestamp: l.item.timestamp ?? void 0,
|
|
181
181
|
url: l.item.key,
|
|
182
182
|
image: l.item.metadata?.image || void 0,
|
|
183
|
-
metadata:
|
|
183
|
+
metadata: {
|
|
184
|
+
...l.item.metadata,
|
|
185
|
+
instance_id: l.instance_id
|
|
186
|
+
}
|
|
184
187
|
})
|
|
185
188
|
);
|
|
186
189
|
throw c.success === !1 ? new Error(c.error) : new Error("Unknown error");
|
|
@@ -213,8 +216,8 @@ class K {
|
|
|
213
216
|
const { done: u, value: S } = await l.read();
|
|
214
217
|
if (u)
|
|
215
218
|
break;
|
|
216
|
-
const
|
|
217
|
-
c +=
|
|
219
|
+
const _ = p.decode(S, { stream: !0 });
|
|
220
|
+
c += _;
|
|
218
221
|
}
|
|
219
222
|
yield {
|
|
220
223
|
type: "result",
|
|
@@ -2525,7 +2528,7 @@ a.search-result-item:focus-visible {
|
|
|
2525
2528
|
border-radius: 2px;
|
|
2526
2529
|
font-weight: var(--search-snippet-font-weight-medium);
|
|
2527
2530
|
}
|
|
2528
|
-
`, A = "search-bar-snippet", Q = 10, ee =
|
|
2531
|
+
`, A = "search-bar-snippet", Q = 10, ee = 50;
|
|
2529
2532
|
class te extends HTMLElement {
|
|
2530
2533
|
constructor() {
|
|
2531
2534
|
super();
|
|
@@ -3264,7 +3267,7 @@ a.modal-result-item:focus-visible {
|
|
|
3264
3267
|
.modal-container.open {
|
|
3265
3268
|
animation: modal-slide-in var(--search-snippet-transition) ease-out;
|
|
3266
3269
|
}
|
|
3267
|
-
`, T = "search-modal-snippet", ie = 10, re =
|
|
3270
|
+
`, T = "search-modal-snippet", ie = 10, re = 50;
|
|
3268
3271
|
class ae extends HTMLElement {
|
|
3269
3272
|
constructor() {
|
|
3270
3273
|
super();
|