@8wave/ai-elements 0.65.0 → 0.66.0

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 CHANGED
@@ -14338,8 +14338,8 @@ var xy = yy, Sy = {
14338
14338
  r.value = a.value || void 0, i.value = !1;
14339
14339
  }
14340
14340
  let f = j(() => r.value != null && r.value.trim().length > 0);
14341
- return (n, r) => {
14342
- let o = bn, p = xn, m = wn;
14341
+ return (n, o) => {
14342
+ let p = bn, m = xn, h = wn;
14343
14343
  return B(), P("div", { class: Yt(["pk-editor-code", {
14344
14344
  "pk-editor-code--disabled": e.disabled,
14345
14345
  "pk-editor-code--readonly": e.readonly,
@@ -14351,9 +14351,9 @@ var xy = yy, Sy = {
14351
14351
  title: U(t)("action.edit"),
14352
14352
  onClick: vn(u, ["stop"])
14353
14353
  }, [f.value ? (B(), P("div", Iy, [I(mt, {
14354
- code: a.value,
14354
+ code: r.value,
14355
14355
  language: e.language ?? "css"
14356
- }, null, 8, ["code", "language"])])) : (B(), P(A, { key: 1 }, [e.placeholder ? (B(), P("span", Ly, H(e.placeholder), 1)) : N("", !0), e.readonly ? N("", !0) : (B(), M(o, {
14356
+ }, null, 8, ["code", "language"])])) : (B(), P(A, { key: 1 }, [e.placeholder ? (B(), P("span", Ly, H(e.placeholder), 1)) : N("", !0), e.readonly ? N("", !0) : (B(), M(p, {
14357
14357
  key: 1,
14358
14358
  class: "pk-editor-code__edit",
14359
14359
  icon: "ri:edit-line",
@@ -14363,21 +14363,21 @@ var xy = yy, Sy = {
14363
14363
  onClick: u
14364
14364
  }, null, 8, ["disabled", "title"]))], 64))], 8, Fy),
14365
14365
  n.$slots.hint || e.hintLabel ? (B(), P("small", Ry, [an(n.$slots, "hint", {}, () => [Vt(H(e.hintLabel), 1)])])) : N("", !0),
14366
- I(m, {
14366
+ I(h, {
14367
14367
  modelValue: i.value,
14368
- "onUpdate:modelValue": r[2] ||= (e) => i.value = e,
14368
+ "onUpdate:modelValue": o[2] ||= (e) => i.value = e,
14369
14369
  title: e.label || U(t)("action.edit"),
14370
14370
  size: "large",
14371
14371
  "keep-open": ""
14372
14372
  }, {
14373
- footer: K(() => [I(p, null, {
14374
- default: K(() => [I(o, {
14373
+ footer: K(() => [I(m, null, {
14374
+ default: K(() => [I(p, {
14375
14375
  modifiers: "secondary",
14376
- onClick: r[1] ||= (e) => i.value = !1
14376
+ onClick: o[1] ||= (e) => i.value = !1
14377
14377
  }, {
14378
14378
  default: K(() => [Vt(H(U(t)("action.cancel")), 1)]),
14379
14379
  _: 1
14380
- }), I(o, { onClick: d }, {
14380
+ }), I(p, { onClick: d }, {
14381
14381
  default: K(() => [Vt(H(U(t)("action.save")), 1)]),
14382
14382
  _: 1
14383
14383
  })]),
@@ -14386,7 +14386,7 @@ var xy = yy, Sy = {
14386
14386
  default: K(() => [F("div", zy, [l.value ? (B(), M(sn(l.value), {
14387
14387
  key: 0,
14388
14388
  value: a.value,
14389
- "onUpdate:value": r[0] ||= (e) => a.value = e,
14389
+ "onUpdate:value": o[0] ||= (e) => a.value = e,
14390
14390
  language: e.language ?? "css",
14391
14391
  theme: s.value,
14392
14392
  options: c,