@8wave/ai-elements 0.121.0-beta.6 → 0.121.0-beta.8
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-vue/index.js +43 -43
- package/dist-vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist-vue/index.js
CHANGED
|
@@ -17517,7 +17517,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17517
17517
|
if (!e) return t("hint.webSearchNativeFallback");
|
|
17518
17518
|
let r = n.fallbackModels ?? [], i = [.../* @__PURE__ */ new Set([e, ...r.flatMap((e) => re(e) ?? [])])], a = r.some((e) => !re(e));
|
|
17519
17519
|
return i.length === 1 ? t(a ? "hint.webSearchNativeWithoutSearch" : "hint.webSearchNative", { provider: e }) : t(a ? "hint.webSearchNativeChainWithoutSearch" : "hint.webSearchNativeChain", { providers: i.join(", ") });
|
|
17520
|
-
}), i = G(e, "webSearch"), a = j({
|
|
17520
|
+
}), i = G(e, "webSearch"), a = j(() => i.value?.provider ?? be.Native), o = j({
|
|
17521
17521
|
get: () => i.value?.perplexity?.searchDomainFilter?.join(", ") ?? "",
|
|
17522
17522
|
set: (e) => {
|
|
17523
17523
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
@@ -17529,7 +17529,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17529
17529
|
}
|
|
17530
17530
|
};
|
|
17531
17531
|
}
|
|
17532
|
-
}),
|
|
17532
|
+
}), s = j({
|
|
17533
17533
|
get: () => i.value?.parallel?.sourcePolicy?.includeDomains?.join(", ") ?? "",
|
|
17534
17534
|
set: (e) => {
|
|
17535
17535
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
@@ -17544,7 +17544,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17544
17544
|
}
|
|
17545
17545
|
};
|
|
17546
17546
|
}
|
|
17547
|
-
}),
|
|
17547
|
+
}), c = j({
|
|
17548
17548
|
get: () => i.value?.parallel?.sourcePolicy?.excludeDomains?.join(", ") ?? "",
|
|
17549
17549
|
set: (e) => {
|
|
17550
17550
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
@@ -17559,7 +17559,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17559
17559
|
}
|
|
17560
17560
|
};
|
|
17561
17561
|
}
|
|
17562
|
-
}),
|
|
17562
|
+
}), l = j({
|
|
17563
17563
|
get: () => i.value?.native?.anthropic?.allowedDomains?.join(", ") ?? "",
|
|
17564
17564
|
set: (e) => {
|
|
17565
17565
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
@@ -17574,7 +17574,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17574
17574
|
}
|
|
17575
17575
|
};
|
|
17576
17576
|
}
|
|
17577
|
-
}),
|
|
17577
|
+
}), u = j({
|
|
17578
17578
|
get: () => i.value?.native?.anthropic?.blockedDomains?.join(", ") ?? "",
|
|
17579
17579
|
set: (e) => {
|
|
17580
17580
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
@@ -17590,8 +17590,8 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17590
17590
|
};
|
|
17591
17591
|
}
|
|
17592
17592
|
});
|
|
17593
|
-
return (n,
|
|
17594
|
-
let
|
|
17593
|
+
return (n, d) => {
|
|
17594
|
+
let f = br, p = Dr;
|
|
17595
17595
|
return B(), P(A, null, [L(GC, {
|
|
17596
17596
|
"model-value": i.value?.enabled ?? !1,
|
|
17597
17597
|
name: "webSearchEnabled",
|
|
@@ -17599,7 +17599,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17599
17599
|
disabled: e.disabled,
|
|
17600
17600
|
label: W(t)("label.webSearchEnabled"),
|
|
17601
17601
|
"hint-label": W(t)("hint.webSearchEnabled"),
|
|
17602
|
-
"onUpdate:modelValue":
|
|
17602
|
+
"onUpdate:modelValue": d[0] ||= (e) => i.value = {
|
|
17603
17603
|
...i.value,
|
|
17604
17604
|
enabled: e
|
|
17605
17605
|
}
|
|
@@ -17608,8 +17608,8 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17608
17608
|
"disabled",
|
|
17609
17609
|
"label",
|
|
17610
17610
|
"hint-label"
|
|
17611
|
-
]), i.value?.enabled ? (B(), P(A, { key: 0 }, [L(
|
|
17612
|
-
"model-value":
|
|
17611
|
+
]), i.value?.enabled ? (B(), P(A, { key: 0 }, [L(f, {
|
|
17612
|
+
"model-value": a.value,
|
|
17613
17613
|
name: "webSearchProvider",
|
|
17614
17614
|
"select-hint-label": "",
|
|
17615
17615
|
"deselect-hint-label": "",
|
|
@@ -17618,7 +17618,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17618
17618
|
strategy: "fixed",
|
|
17619
17619
|
label: W(t)("label.webSearchProvider"),
|
|
17620
17620
|
placeholder: W(t)("placeholder.select"),
|
|
17621
|
-
"hint-label":
|
|
17621
|
+
"hint-label": a.value === "native" ? r.value : void 0,
|
|
17622
17622
|
unselectable: !1,
|
|
17623
17623
|
options: [
|
|
17624
17624
|
{
|
|
@@ -17635,7 +17635,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17635
17635
|
}
|
|
17636
17636
|
],
|
|
17637
17637
|
class: "mb-0",
|
|
17638
|
-
"onUpdate:modelValue":
|
|
17638
|
+
"onUpdate:modelValue": d[1] ||= (e) => i.value = {
|
|
17639
17639
|
...i.value,
|
|
17640
17640
|
provider: e
|
|
17641
17641
|
}
|
|
@@ -17645,8 +17645,8 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17645
17645
|
"placeholder",
|
|
17646
17646
|
"hint-label",
|
|
17647
17647
|
"options"
|
|
17648
|
-
]),
|
|
17649
|
-
L(
|
|
17648
|
+
]), a.value === "perplexity" ? (B(), P(A, { key: 0 }, [
|
|
17649
|
+
L(p, {
|
|
17650
17650
|
"model-value": i.value?.perplexity?.maxResults,
|
|
17651
17651
|
name: "webSearch.perplexity.maxResults",
|
|
17652
17652
|
type: "number",
|
|
@@ -17656,7 +17656,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17656
17656
|
placeholder: "10",
|
|
17657
17657
|
disabled: e.disabled,
|
|
17658
17658
|
class: "mt-md",
|
|
17659
|
-
"onUpdate:modelValue":
|
|
17659
|
+
"onUpdate:modelValue": d[2] ||= (e) => i.value = {
|
|
17660
17660
|
...i.value,
|
|
17661
17661
|
perplexity: {
|
|
17662
17662
|
...i.value?.perplexity,
|
|
@@ -17668,7 +17668,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17668
17668
|
"label",
|
|
17669
17669
|
"disabled"
|
|
17670
17670
|
]),
|
|
17671
|
-
L(
|
|
17671
|
+
L(f, {
|
|
17672
17672
|
"model-value": i.value?.perplexity?.searchRecencyFilter,
|
|
17673
17673
|
name: "webSearch.perplexity.searchRecencyFilter",
|
|
17674
17674
|
"select-hint-label": "",
|
|
@@ -17695,7 +17695,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17695
17695
|
}
|
|
17696
17696
|
],
|
|
17697
17697
|
disabled: e.disabled,
|
|
17698
|
-
"onUpdate:modelValue":
|
|
17698
|
+
"onUpdate:modelValue": d[3] ||= (e) => i.value = {
|
|
17699
17699
|
...i.value,
|
|
17700
17700
|
perplexity: {
|
|
17701
17701
|
...i.value?.perplexity,
|
|
@@ -17709,12 +17709,12 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17709
17709
|
"options",
|
|
17710
17710
|
"disabled"
|
|
17711
17711
|
]),
|
|
17712
|
-
L(
|
|
17712
|
+
L(p, {
|
|
17713
17713
|
"model-value": i.value?.perplexity?.country,
|
|
17714
17714
|
name: "webSearch.perplexity.country",
|
|
17715
17715
|
label: W(t)("label.country"),
|
|
17716
17716
|
placeholder: "US",
|
|
17717
|
-
"onUpdate:modelValue":
|
|
17717
|
+
"onUpdate:modelValue": d[4] ||= (e) => i.value = {
|
|
17718
17718
|
...i.value,
|
|
17719
17719
|
perplexity: {
|
|
17720
17720
|
...i.value?.perplexity,
|
|
@@ -17722,9 +17722,9 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17722
17722
|
}
|
|
17723
17723
|
}
|
|
17724
17724
|
}, null, 8, ["model-value", "label"]),
|
|
17725
|
-
L(
|
|
17726
|
-
modelValue:
|
|
17727
|
-
"onUpdate:modelValue":
|
|
17725
|
+
L(p, {
|
|
17726
|
+
modelValue: o.value,
|
|
17727
|
+
"onUpdate:modelValue": d[5] ||= (e) => o.value = e,
|
|
17728
17728
|
name: "webSearch.perplexity.searchDomainFilter",
|
|
17729
17729
|
label: W(t)("label.domainFilter"),
|
|
17730
17730
|
placeholder: "reuters.com, bbc.com, -reddit.com",
|
|
@@ -17737,8 +17737,8 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17737
17737
|
"hint-label",
|
|
17738
17738
|
"disabled"
|
|
17739
17739
|
])
|
|
17740
|
-
], 64)) :
|
|
17741
|
-
L(
|
|
17740
|
+
], 64)) : a.value === "parallel" ? (B(), P(A, { key: 1 }, [
|
|
17741
|
+
L(f, {
|
|
17742
17742
|
"model-value": i.value?.parallel?.mode,
|
|
17743
17743
|
name: "webSearch.parallel.mode",
|
|
17744
17744
|
"select-hint-label": "",
|
|
@@ -17755,7 +17755,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17755
17755
|
}],
|
|
17756
17756
|
disabled: e.disabled,
|
|
17757
17757
|
class: "mt-md",
|
|
17758
|
-
"onUpdate:modelValue":
|
|
17758
|
+
"onUpdate:modelValue": d[6] ||= (e) => i.value = {
|
|
17759
17759
|
...i.value,
|
|
17760
17760
|
parallel: {
|
|
17761
17761
|
...i.value?.parallel,
|
|
@@ -17768,7 +17768,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17768
17768
|
"placeholder",
|
|
17769
17769
|
"disabled"
|
|
17770
17770
|
]),
|
|
17771
|
-
L(
|
|
17771
|
+
L(p, {
|
|
17772
17772
|
"model-value": i.value?.parallel?.maxResults,
|
|
17773
17773
|
name: "webSearch.parallel.maxResults",
|
|
17774
17774
|
type: "number",
|
|
@@ -17777,7 +17777,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17777
17777
|
label: W(t)("label.maxResults"),
|
|
17778
17778
|
placeholder: "10",
|
|
17779
17779
|
disabled: e.disabled,
|
|
17780
|
-
"onUpdate:modelValue":
|
|
17780
|
+
"onUpdate:modelValue": d[7] ||= (e) => i.value = {
|
|
17781
17781
|
...i.value,
|
|
17782
17782
|
parallel: {
|
|
17783
17783
|
...i.value?.parallel,
|
|
@@ -17789,9 +17789,9 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17789
17789
|
"label",
|
|
17790
17790
|
"disabled"
|
|
17791
17791
|
]),
|
|
17792
|
-
L(
|
|
17793
|
-
modelValue:
|
|
17794
|
-
"onUpdate:modelValue":
|
|
17792
|
+
L(p, {
|
|
17793
|
+
modelValue: s.value,
|
|
17794
|
+
"onUpdate:modelValue": d[8] ||= (e) => s.value = e,
|
|
17795
17795
|
name: "webSearch.parallel.includeDomains",
|
|
17796
17796
|
label: W(t)("label.includeDomains"),
|
|
17797
17797
|
placeholder: "arxiv.org, nature.com",
|
|
@@ -17803,9 +17803,9 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17803
17803
|
"hint-label",
|
|
17804
17804
|
"disabled"
|
|
17805
17805
|
]),
|
|
17806
|
-
L(
|
|
17807
|
-
modelValue:
|
|
17808
|
-
"onUpdate:modelValue":
|
|
17806
|
+
L(p, {
|
|
17807
|
+
modelValue: c.value,
|
|
17808
|
+
"onUpdate:modelValue": d[9] ||= (e) => c.value = e,
|
|
17809
17809
|
name: "webSearch.parallel.excludeDomains",
|
|
17810
17810
|
label: W(t)("label.excludeDomains"),
|
|
17811
17811
|
placeholder: "reddit.com, quora.com",
|
|
@@ -17818,8 +17818,8 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17818
17818
|
"hint-label",
|
|
17819
17819
|
"disabled"
|
|
17820
17820
|
])
|
|
17821
|
-
], 64)) :
|
|
17822
|
-
L(
|
|
17821
|
+
], 64)) : a.value === "native" ? (B(), P(A, { key: 2 }, [e.activeProvider === "anthropic" ? (B(), P(A, { key: 0 }, [
|
|
17822
|
+
L(p, {
|
|
17823
17823
|
"model-value": i.value?.native?.anthropic?.maxUses,
|
|
17824
17824
|
name: "webSearch.native.anthropic.maxUses",
|
|
17825
17825
|
type: "number",
|
|
@@ -17828,7 +17828,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17828
17828
|
placeholder: W(t)("placeholder.insert"),
|
|
17829
17829
|
disabled: e.disabled,
|
|
17830
17830
|
class: "mt-md",
|
|
17831
|
-
"onUpdate:modelValue":
|
|
17831
|
+
"onUpdate:modelValue": d[10] ||= (e) => i.value = {
|
|
17832
17832
|
...i.value,
|
|
17833
17833
|
native: {
|
|
17834
17834
|
...i.value?.native,
|
|
@@ -17844,9 +17844,9 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17844
17844
|
"placeholder",
|
|
17845
17845
|
"disabled"
|
|
17846
17846
|
]),
|
|
17847
|
-
L(
|
|
17848
|
-
modelValue:
|
|
17849
|
-
"onUpdate:modelValue":
|
|
17847
|
+
L(p, {
|
|
17848
|
+
modelValue: l.value,
|
|
17849
|
+
"onUpdate:modelValue": d[11] ||= (e) => l.value = e,
|
|
17850
17850
|
name: "webSearch.native.anthropic.allowedDomains",
|
|
17851
17851
|
label: W(t)("label.allowedDomains"),
|
|
17852
17852
|
placeholder: "techcrunch.com, wired.com",
|
|
@@ -17858,9 +17858,9 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
17858
17858
|
"hint-label",
|
|
17859
17859
|
"disabled"
|
|
17860
17860
|
]),
|
|
17861
|
-
L(
|
|
17862
|
-
modelValue:
|
|
17863
|
-
"onUpdate:modelValue":
|
|
17861
|
+
L(p, {
|
|
17862
|
+
modelValue: u.value,
|
|
17863
|
+
"onUpdate:modelValue": d[12] ||= (e) => u.value = e,
|
|
17864
17864
|
name: "webSearch.native.anthropic.blockedDomains",
|
|
17865
17865
|
label: W(t)("label.blockedDomains"),
|
|
17866
17866
|
placeholder: "spam-site.com",
|
|
@@ -18463,7 +18463,7 @@ var Nw = { class: "flex items-center gap-xs min-w-0" }, Pw = { class: "truncate"
|
|
|
18463
18463
|
reasoningModifiers: {},
|
|
18464
18464
|
webSearch: { default: () => ({
|
|
18465
18465
|
enabled: !1,
|
|
18466
|
-
provider: be.
|
|
18466
|
+
provider: be.Native
|
|
18467
18467
|
}) },
|
|
18468
18468
|
webSearchModifiers: {},
|
|
18469
18469
|
theme: { default: "auto" },
|