@ddict/popup 1.4.3 → 1.4.4

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/popup.css CHANGED
@@ -1 +1 @@
1
- .absolute[data-v-f4b8c5a7]{position:absolute}.right-1[data-v-f4b8c5a7]{right:.25rem}.top-1[data-v-f4b8c5a7]{top:.25rem}.top-1\/2[data-v-f4b8c5a7]{top:50%}.transform[data-v-f4b8c5a7]{transform:translateY(-50%)}textarea[data-v-47595257]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-47595257]::-webkit-scrollbar{display:none}textarea[data-v-7257087b]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-7257087b]::-webkit-scrollbar{display:none}textarea[data-v-df86723d]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-df86723d]::-webkit-scrollbar{display:none}@keyframes moveGradient-de6c8dc2{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.animate-moveGradient[data-v-de6c8dc2]{animation:moveGradient-de6c8dc2 4s alternate infinite}.custom-scrollbar[data-v-38858bd5]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-38858bd5]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-38858bd5]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-38858bd5]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}
1
+ .absolute[data-v-c0c37006]{position:absolute}.right-1[data-v-c0c37006]{right:.25rem}.top-1[data-v-c0c37006]{top:.25rem}.top-1\/2[data-v-c0c37006]{top:50%}textarea[data-v-47595257]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-47595257]::-webkit-scrollbar{display:none}textarea[data-v-7017b8c3]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-7017b8c3]::-webkit-scrollbar{display:none}textarea[data-v-df86723d]{-ms-overflow-style:none;scrollbar-width:none}textarea[data-v-df86723d]::-webkit-scrollbar{display:none}@keyframes moveGradient-de6c8dc2{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.animate-moveGradient[data-v-de6c8dc2]{animation:moveGradient-de6c8dc2 4s alternate infinite}.custom-scrollbar[data-v-417d179b]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-417d179b]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-417d179b]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-417d179b]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}
package/dist/popup.es.js CHANGED
@@ -2537,7 +2537,7 @@ const f2 = H2("loader", () => {
2537
2537
  t.value.length > 0 ? (m(), x("div", sn, [
2538
2538
  (m(!0), x(q, null, Y(t.value, (i) => (m(), x("button", {
2539
2539
  key: i,
2540
- class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor transition-colors duration-200",
2540
+ class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor",
2541
2541
  onClick: (r) => T(n).src = i
2542
2542
  }, J(T(n).languages.src[i]), 9, an))), 128))
2543
2543
  ])) : P("", !0)
@@ -2546,7 +2546,7 @@ const f2 = H2("loader", () => {
2546
2546
  o.value.length > 0 ? (m(), x("div", un, [
2547
2547
  (m(!0), x(q, null, Y(o.value, (i) => (m(), x("button", {
2548
2548
  key: i,
2549
- class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor transition-colors duration-200",
2549
+ class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor",
2550
2550
  onClick: (r) => T(n).target = i
2551
2551
  }, J(T(n).languages.target[i]), 9, cn))), 128))
2552
2552
  ])) : P("", !0)
@@ -2640,7 +2640,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2640
2640
  v("img", {
2641
2641
  src: T(mn),
2642
2642
  alt: "Stop",
2643
- class: "w-4 transition-all duration-200"
2643
+ class: "w-4"
2644
2644
  }, null, 8, xn)
2645
2645
  ])) : (m(), x("button", {
2646
2646
  key: 0,
@@ -2654,7 +2654,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2654
2654
  v("img", {
2655
2655
  src: T(gn),
2656
2656
  alt: "Play",
2657
- class: R(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2657
+ class: R(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2658
2658
  }, null, 10, bn)
2659
2659
  ], 10, Cn));
2660
2660
  }
@@ -2678,7 +2678,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2678
2678
  v("img", {
2679
2679
  src: T(yn),
2680
2680
  alt: "Clear",
2681
- class: R(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2681
+ class: R(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2682
2682
  }, null, 10, Ln)
2683
2683
  ], 10, En)
2684
2684
  ]));
@@ -2704,7 +2704,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2704
2704
  v("img", {
2705
2705
  src: e.isFilled ? T($n) : T(Sn),
2706
2706
  alt: "Favorite",
2707
- class: R(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2707
+ class: R(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2708
2708
  }, null, 10, In)
2709
2709
  ], 10, On)
2710
2710
  ]));
@@ -2730,7 +2730,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2730
2730
  v("img", {
2731
2731
  src: e.isFilled ? T(kn) : T(Vn),
2732
2732
  alt: "AI",
2733
- class: R(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2733
+ class: R(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2734
2734
  }, null, 10, Bn)
2735
2735
  ], 10, Fn)
2736
2736
  ]));
@@ -2761,7 +2761,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2761
2761
  v("img", {
2762
2762
  src: T(Hn),
2763
2763
  alt: "Copy",
2764
- class: R(["w-3 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2764
+ class: R(["w-3", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2765
2765
  }, null, 10, Pn)
2766
2766
  ], 10, Rn)
2767
2767
  ], 8, Dn));
@@ -2869,7 +2869,7 @@ const L0 = /* @__PURE__ */ x2(vn, [["render", hn]]), $0 = H2("tts", () => {
2869
2869
  ])
2870
2870
  ]));
2871
2871
  }
2872
- }, He = /* @__PURE__ */ x2(Un, [["__scopeId", "data-v-f4b8c5a7"]]), v2 = H2("translation", () => {
2872
+ }, He = /* @__PURE__ */ x2(Un, [["__scopeId", "data-v-c0c37006"]]), v2 = H2("translation", () => {
2873
2873
  const e = $(null), n = $(null), t = $(null), o = $({
2874
2874
  src: null,
2875
2875
  target: null
@@ -3068,7 +3068,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3068
3068
  ])
3069
3069
  ]));
3070
3070
  }
3071
- }, oo = /* @__PURE__ */ x2(no, [["__scopeId", "data-v-47595257"]]), lo = (e) => (le("data-v-7257087b"), e = e(), se(), e), so = { class: "bg-white relative z-10 rounded-md h-full" }, io = { class: "bg-transparent" }, ao = {
3071
+ }, oo = /* @__PURE__ */ x2(no, [["__scopeId", "data-v-47595257"]]), lo = (e) => (le("data-v-7017b8c3"), e = e(), se(), e), so = { class: "bg-white relative z-10 rounded-md h-full" }, io = { class: "bg-transparent" }, ao = {
3072
3072
  key: 0,
3073
3073
  class: "w-full flex items-center justify-end absolute -bottom-8 left-2 right-0 px-2 z-20"
3074
3074
  }, ro = /* @__PURE__ */ lo(() => /* @__PURE__ */ v("span", { class: "text-sm text-gray-600" }, " Powered by Ddict AI ", -1)), uo = {
@@ -3090,7 +3090,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3090
3090
  }), r = f2(), u = L(() => r.isLoading("translation")), { textarea: c, input: d } = t0({ input: o, styleProp: "minHeight" }), b = n;
3091
3091
  return (h, C) => (m(), x("div", {
3092
3092
  class: R([
3093
- "relative p-0.5 transition-all duration-300 ease-in-out bg-[length:300%_300%] bg-[position:0%_50%] border rounded-lg",
3093
+ "relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border rounded-lg",
3094
3094
  {
3095
3095
  "bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-white": e.isAITranslate && !u.value
3096
3096
  }
@@ -3138,7 +3138,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3138
3138
  ])) : P("", !0)
3139
3139
  ], 2));
3140
3140
  }
3141
- }, co = /* @__PURE__ */ x2(uo, [["__scopeId", "data-v-7257087b"]]), fo = { class: "btn btn-sm btn-circle btn-ghost" }, n0 = {
3141
+ }, co = /* @__PURE__ */ x2(uo, [["__scopeId", "data-v-7017b8c3"]]), fo = { class: "btn btn-sm btn-circle btn-ghost" }, n0 = {
3142
3142
  __name: "ToggleBtn",
3143
3143
  props: {
3144
3144
  isExpanded: Boolean
@@ -3174,7 +3174,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3174
3174
  }, null, 8, ["isExpanded"])
3175
3175
  ]),
3176
3176
  v("div", {
3177
- class: R(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3177
+ class: R(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3178
3178
  }, [
3179
3179
  v("ul", null, [
3180
3180
  (m(!0), x(q, null, Y(s.value, (d, b) => (m(), x("li", {
@@ -3218,7 +3218,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3218
3218
  }, null, 8, ["isExpanded"])
3219
3219
  ]),
3220
3220
  v("div", {
3221
- class: R(["overflow-hidden transition-all duration-300 ease-in-out", n.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3221
+ class: R(["overflow-hidden", n.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3222
3222
  }, [
3223
3223
  v("ul", null, [
3224
3224
  (m(!0), x(q, null, Y(o.value, (i, r) => (m(), x("li", {
@@ -3258,7 +3258,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3258
3258
  }, null, 8, ["isExpanded"])
3259
3259
  ]),
3260
3260
  v("div", {
3261
- class: R(["overflow-hidden transition-all duration-300 ease-in-out", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3261
+ class: R(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3262
3262
  }, [
3263
3263
  v("ul", Fo, [
3264
3264
  (m(!0), x(q, null, Y(o.value, (i, r) => (m(), x("li", {
@@ -3289,7 +3289,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3289
3289
  }, null, 8, ["isExpanded"])
3290
3290
  ]),
3291
3291
  v("div", {
3292
- class: R(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3292
+ class: R(["overflow-hidden", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3293
3293
  }, [
3294
3294
  v("ul", null, [
3295
3295
  (m(!0), x(q, null, Y(l.value, (c, d) => (m(), x("li", {
@@ -3334,7 +3334,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3334
3334
  v("img", {
3335
3335
  src: e.isExpanded ? T(qo) : T(Go),
3336
3336
  alt: "AI",
3337
- class: R(["w-6 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3337
+ class: R(["w-6", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3338
3338
  }, null, 10, Yo)
3339
3339
  ], 10, Jo));
3340
3340
  }
@@ -3366,7 +3366,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3366
3366
  var r, u;
3367
3367
  return m(), x("div", {
3368
3368
  class: R(["card border bg-white rounded-lg mb-8", [
3369
- "relative p-0.5 transition-all duration-300 ease-in-out bg-[length:300%_300%] bg-[position:0%_50%] border rounded-lg",
3369
+ "relative p-0.5 bg-[length:300%_300%] bg-[position:0%_50%] border rounded-lg",
3370
3370
  {
3371
3371
  "bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-white": e.isAIExplain
3372
3372
  }
@@ -3387,7 +3387,7 @@ const to = { class: "bg-white relative z-10 border rounded-md" }, no = {
3387
3387
  ])
3388
3388
  ]),
3389
3389
  v("div", {
3390
- class: R(["overflow-hidden transition-all duration-300 ease-in-out", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3390
+ class: R(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3391
3391
  }, [
3392
3392
  (r = e.explanation) != null && r.result ? (m(), x("ul", ol, [
3393
3393
  (m(!0), x(q, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
@@ -3585,7 +3585,7 @@ const q0 = {
3585
3585
  emits: ["click"],
3586
3586
  setup(e) {
3587
3587
  return (n, t) => (m(), x("button", {
3588
- class: "p-2 bg-white rounded-full hover:bg-gray-100 transition-colors focus:outline-none active:scale-95 transform",
3588
+ class: "p-2 bg-white rounded-full hover:bg-gray-100 focus:outline-none active:scale-95",
3589
3589
  onClick: t[0] || (t[0] = (o) => n.$emit("click")),
3590
3590
  disabled: e.disabled,
3591
3591
  "aria-label": "Retry"
@@ -3620,7 +3620,7 @@ const q0 = {
3620
3620
  v("img", {
3621
3621
  src: e.isDiffMode ? T(_l) : T(El),
3622
3622
  alt: e.isDiffMode ? "Hide Differences" : "Show Differences",
3623
- class: R(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3623
+ class: R(["w-4", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
3624
3624
  }, null, 10, Sl)
3625
3625
  ], 10, $l)
3626
3626
  ], 8, Ll));
@@ -4142,7 +4142,7 @@ const Rl = { class: "bg-white relative z-10 border rounded-md" }, Pl = { class:
4142
4142
  ])
4143
4143
  ]));
4144
4144
  }
4145
- }, zl = { class: "card border bg-white rounded-lg" }, Ul = { class: "card-body px-4 py-2 gap-0" }, Wl = { class: "overflow-hidden transition-all duration-300 ease-in-out" }, ql = { class: "text-textCustom list-decimal list-outside ml-7 my-2" }, Gl = ["innerHTML"], Jl = {
4145
+ }, zl = { class: "card border bg-white rounded-lg" }, Ul = { class: "card-body px-4 py-2 gap-0" }, Wl = { class: "overflow-hidden" }, ql = { class: "text-textCustom list-decimal list-outside ml-7 my-2" }, Gl = ["innerHTML"], Jl = {
4146
4146
  __name: "ImproveData",
4147
4147
  props: {
4148
4148
  suggestions: {
@@ -4461,14 +4461,14 @@ const Rl = { class: "bg-white relative z-10 border rounded-md" }, Pl = { class:
4461
4461
  v("div", qs, [
4462
4462
  v("button", {
4463
4463
  class: R([
4464
- "w-1/2 px-4 py-2 text-sm font-medium transition-colors duration-200",
4464
+ "w-1/2 px-4 py-2 text-sm font-medium",
4465
4465
  e.activeTab === "translate" ? "text-primaryColor border-b-2 border-primaryColor" : "text-textSecondary hover:text-primaryColor"
4466
4466
  ]),
4467
4467
  onClick: s[4] || (s[4] = (a) => l.$emit("activeTab", "translate"))
4468
4468
  }, " Translate ", 2),
4469
4469
  v("button", {
4470
4470
  class: R([
4471
- "w-1/2 px-4 py-2 text-sm font-medium transition-colors duration-200",
4471
+ "w-1/2 px-4 py-2 text-sm font-medium",
4472
4472
  e.activeTab === "write" ? "text-primaryColor border-b-2 border-primaryColor" : "text-textSecondary hover:text-primaryColor"
4473
4473
  ]),
4474
4474
  onClick: s[5] || (s[5] = (a) => l.$emit("activeTab", "write"))
@@ -4511,7 +4511,7 @@ const Rl = { class: "bg-white relative z-10 border rounded-md" }, Pl = { class:
4511
4511
  ])
4512
4512
  ]));
4513
4513
  }
4514
- }, Ks = /* @__PURE__ */ x2(Ys, [["__scopeId", "data-v-38858bd5"]]);
4514
+ }, Ks = /* @__PURE__ */ x2(Ys, [["__scopeId", "data-v-417d179b"]]);
4515
4515
  export {
4516
4516
  Ks as default
4517
4517
  };