g-ai-robot3 0.1.39 → 0.1.40

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 yuchen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2024 yuchen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
@@ -26948,7 +26948,7 @@ function cu() {
26948
26948
  stopOrderPlayAudio: t
26949
26949
  };
26950
26950
  }
26951
- const rt = (n) => (St("data-v-0958b478"), n = n(), At(), n), au = {
26951
+ const rt = (n) => (St("data-v-e05f4d65"), n = n(), At(), n), au = {
26952
26952
  key: 0,
26953
26953
  src: Tt,
26954
26954
  alt: "",
@@ -27090,7 +27090,7 @@ const rt = (n) => (St("data-v-0958b478"), n = n(), At(), n), au = {
27090
27090
  onmessage: (b) => {
27091
27091
  console.log(b, "message");
27092
27092
  const { audioUrl: A, data: q } = b;
27093
- q && (Rn.value = q, q.action && ($.value = K(q.action), $.value && ($.value.trigger === "before" || $.value.trigger === "together") && $.value.fun(q))), e(A);
27093
+ q && (Rn.value = q, q.action && (q.action === "stop" && t(), $.value = K(q.action), $.value && ($.value.trigger === "before" || $.value.trigger === "together") && $.value.fun(q))), e(A);
27094
27094
  },
27095
27095
  onclose: () => {
27096
27096
  console.log("onclose"), $.value && $.value.trigger == "after" && $.value.fun(Rn.value), u.value = !1;
@@ -27123,7 +27123,11 @@ const rt = (n) => (St("data-v-0958b478"), n = n(), At(), n), au = {
27123
27123
  let x = sn.value[sn.value.length - 2];
27124
27124
  Ln(x.wholeText);
27125
27125
  }, En = () => {
27126
- u.value || g.value === "start" || (Gn(), t(), r.value && (sn.value.push({ type: "user", wholeText: r.value, singleText: r.value }), Ln(r.value), r.value = ""));
27126
+ u.value || g.value === "start" || (Gn(), t(), r.value && (sn.value.push({
27127
+ type: "user",
27128
+ wholeText: r.value,
27129
+ singleText: r.value
27130
+ }), Ln(r.value), r.value = ""));
27127
27131
  }, Ln = (x) => {
27128
27132
  let M = {
27129
27133
  searchText: x,
@@ -27287,13 +27291,17 @@ const rt = (n) => (St("data-v-0958b478"), n = n(), At(), n), au = {
27287
27291
  }),
27288
27292
  b.ttsMaleAddress ? (qn(), vn("i", {
27289
27293
  key: 0,
27290
- class: Fn(["iconfont icon-nansheng audio", [j.value === `ttsMaleAddress_${A}` && z.value ? "open" : "close"]]),
27294
+ class: Fn(["iconfont icon-nansheng audio", [
27295
+ j.value === `ttsMaleAddress_${A}` && z.value ? "open" : "close"
27296
+ ]]),
27291
27297
  title: "男声播报",
27292
27298
  onClick: (q) => p(b.ttsMaleAddress, `ttsMaleAddress_${A}`)
27293
27299
  }, null, 10, bu)) : On("", !0),
27294
27300
  b.ttsFemaleAddress ? (qn(), vn("i", {
27295
27301
  key: 1,
27296
- class: Fn(["iconfont icon-nvsheng audio", [j.value === `ttsFemaleAddress_${A}` && z.value ? "open" : "close"]]),
27302
+ class: Fn(["iconfont icon-nvsheng audio", [
27303
+ j.value === `ttsFemaleAddress_${A}` && z.value ? "open" : "close"
27304
+ ]]),
27297
27305
  title: "女声播报",
27298
27306
  onClick: (q) => p(b.ttsFemaleAddress, `ttsFemaleAddress_${A}`)
27299
27307
  }, null, 10, xu)) : On("", !0)
@@ -27361,7 +27369,7 @@ const rt = (n) => (St("data-v-0958b478"), n = n(), At(), n), au = {
27361
27369
  for (const [t, h] of i)
27362
27370
  e[t] = h;
27363
27371
  return e;
27364
- }, Ui = /* @__PURE__ */ Ru(Eu, [["__scopeId", "data-v-0958b478"]]);
27372
+ }, Ui = /* @__PURE__ */ Ru(Eu, [["__scopeId", "data-v-e05f4d65"]]);
27365
27373
  Ui.name = "gAiRoot3";
27366
27374
  Ui.install = function(n) {
27367
27375
  n.component("GAiRoot3", Ui);