@kong-ui-public/documentation 0.1.15 → 0.1.16

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,4 +1,4 @@
1
- import { defineComponent as G, openBlock as v, createBlock as F, resolveDynamicComponent as Y, unref as y, withCtx as q, createElementVNode as N, renderSlot as z, normalizeClass as _e, computed as L, createElementBlock as C, toDisplayString as E, createVNode as R, mergeProps as ke, ref as U, Fragment as et, createTextVNode as O, createCommentVNode as H, watch as ge, resolveComponent as $, pushScopeId as fe, popScopeId as he, normalizeStyle as Ge, reactive as tt, onMounted as nt, Teleport as rt, createSlots as je } from "vue";
1
+ import { defineComponent as G, openBlock as v, createBlock as F, resolveDynamicComponent as Y, unref as y, withCtx as D, createElementVNode as N, renderSlot as z, normalizeClass as _e, computed as L, createElementBlock as C, toDisplayString as E, createVNode as R, mergeProps as ke, ref as U, Fragment as et, createTextVNode as O, createCommentVNode as H, watch as ge, resolveComponent as $, pushScopeId as fe, popScopeId as he, normalizeStyle as Ge, reactive as tt, onMounted as nt, Teleport as rt, createSlots as je } from "vue";
2
2
  import { createI18n as Oe, Translation as Me } from "@kong-ui-public/i18n";
3
3
  import "axios";
4
4
  import "@kong/kongponents";
@@ -793,8 +793,8 @@ var Re = Be.exports, ze = { exports: {} };
793
793
  l.manual || l.highlightAll();
794
794
  }
795
795
  if (!l.manual) {
796
- var D = document.readyState;
797
- D === "loading" || D === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
796
+ var q = document.readyState;
797
+ q === "loading" || q === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
798
798
  }
799
799
  return l;
800
800
  }(n);
@@ -1189,17 +1189,17 @@ var Re = Be.exports, ze = { exports: {} };
1189
1189
  h: "c",
1190
1190
  tex: "latex"
1191
1191
  }, l = "data-src-status", g = "loading", h = "loaded", A = "failed", k = "pre[data-src]:not([" + l + '="' + h + '"]):not([' + l + '="' + g + '"])';
1192
- function P(b, S, D) {
1192
+ function P(b, S, q) {
1193
1193
  var i = new XMLHttpRequest();
1194
1194
  i.open("GET", b, !0), i.onreadystatechange = function() {
1195
- i.readyState == 4 && (i.status < 400 && i.responseText ? S(i.responseText) : i.status >= 400 ? D(r(i.status, i.statusText)) : D(c));
1195
+ i.readyState == 4 && (i.status < 400 && i.responseText ? S(i.responseText) : i.status >= 400 ? q(r(i.status, i.statusText)) : q(c));
1196
1196
  }, i.send(null);
1197
1197
  }
1198
1198
  function K(b) {
1199
1199
  var S = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
1200
1200
  if (S) {
1201
- var D = Number(S[1]), i = S[2], o = S[3];
1202
- return i ? o ? [D, Number(o)] : [D, void 0] : [D, D];
1201
+ var q = Number(S[1]), i = S[2], o = S[3];
1202
+ return i ? o ? [q, Number(o)] : [q, void 0] : [q, q];
1203
1203
  }
1204
1204
  }
1205
1205
  t.hooks.add("before-highlightall", function(b) {
@@ -1211,14 +1211,14 @@ var Re = Be.exports, ze = { exports: {} };
1211
1211
  );
1212
1212
  if (S.matches(k)) {
1213
1213
  b.code = "", S.setAttribute(l, g);
1214
- var D = S.appendChild(document.createElement("CODE"));
1215
- D.textContent = a;
1214
+ var q = S.appendChild(document.createElement("CODE"));
1215
+ q.textContent = a;
1216
1216
  var i = S.getAttribute("data-src"), o = b.language;
1217
1217
  if (o === "none") {
1218
1218
  var u = (/\.(\w+)$/.exec(i) || [, "none"])[1];
1219
1219
  o = s[u] || u;
1220
1220
  }
1221
- t.util.setLanguage(D, o), t.util.setLanguage(S, o);
1221
+ t.util.setLanguage(q, o), t.util.setLanguage(S, o);
1222
1222
  var d = t.plugins.autoloader;
1223
1223
  d && d.loadLanguages(o), P(
1224
1224
  i,
@@ -1230,10 +1230,10 @@ var Re = Be.exports, ze = { exports: {} };
1230
1230
  f < 0 && (f += w.length), f = Math.max(0, Math.min(f - 1, w.length)), _ < 0 && (_ += w.length), _ = Math.max(0, Math.min(_, w.length)), p = w.slice(f, _).join(`
1231
1231
  `), S.hasAttribute("data-start") || S.setAttribute("data-start", String(f + 1));
1232
1232
  }
1233
- D.textContent = p, t.highlightElement(D);
1233
+ q.textContent = p, t.highlightElement(q);
1234
1234
  },
1235
1235
  function(p) {
1236
- S.setAttribute(l, A), D.textContent = p;
1236
+ S.setAttribute(l, A), q.textContent = p;
1237
1237
  }
1238
1238
  );
1239
1239
  }
@@ -1246,7 +1246,7 @@ var Re = Be.exports, ze = { exports: {} };
1246
1246
  * @param {ParentNode} [container=document]
1247
1247
  */
1248
1248
  highlight: function(b) {
1249
- for (var S = (b || document).querySelectorAll(k), D = 0, i; i = S[D++]; )
1249
+ for (var S = (b || document).querySelectorAll(k), q = 0, i; i = S[q++]; )
1250
1250
  t.highlightElement(i);
1251
1251
  }
1252
1252
  };
@@ -1334,7 +1334,7 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
1334
1334
  setup(e) {
1335
1335
  const n = e.level === 1 ? "em" : "strong";
1336
1336
  return (t, a) => (v(), F(Y(y(n)), null, {
1337
- default: q(() => [
1337
+ default: D(() => [
1338
1338
  z(t.$slots, "default")
1339
1339
  ]),
1340
1340
  _: 3
@@ -1361,7 +1361,7 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
1361
1361
  setup(e) {
1362
1362
  const n = e, t = `${n.slug}`, a = `h${n.level}`;
1363
1363
  return (r, c) => (v(), F(Y(a), { id: t }, {
1364
- default: q(() => [
1364
+ default: D(() => [
1365
1365
  z(r.$slots, "default", {}, void 0, !0)
1366
1366
  ]),
1367
1367
  _: 3
@@ -1390,11 +1390,11 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
1390
1390
  title: e.title
1391
1391
  }, null, 8, _t));
1392
1392
  }
1393
- }), Dt = /* @__PURE__ */ B(At, [["__scopeId", "data-v-13314abe"]]), qt = {};
1393
+ }), qt = /* @__PURE__ */ B(At, [["__scopeId", "data-v-13314abe"]]), Dt = {};
1394
1394
  function Ct(e, n) {
1395
1395
  return v(), C("hr");
1396
1396
  }
1397
- const Tt = /* @__PURE__ */ B(qt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
1397
+ const Tt = /* @__PURE__ */ B(Dt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
1398
1398
  function Ft(e, n) {
1399
1399
  return v(), C("s", null, [
1400
1400
  z(e.$slots, "default")
@@ -1418,7 +1418,7 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1418
1418
  const n = e;
1419
1419
  let t;
1420
1420
  return n.section === Z.header ? t = "thead" : n.section === Z.body ? t = "tbody" : n.section === Z.footer && (t = "tfoot"), (a, r) => (v(), F(Y(y(t)), null, {
1421
- default: q(() => [
1421
+ default: D(() => [
1422
1422
  N("tr", null, [
1423
1423
  z(a.$slots, "default", {}, void 0, !0)
1424
1424
  ])
@@ -1445,7 +1445,7 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1445
1445
  return t.alignment === pe.center ? r = "align-center" : t.alignment === pe.right && (r = "align-right"), (c, s) => (v(), F(Y(y(a)), {
1446
1446
  class: _e(y(r))
1447
1447
  }, {
1448
- default: q(() => [
1448
+ default: D(() => [
1449
1449
  z(c.$slots, "default", {}, void 0, !0)
1450
1450
  ]),
1451
1451
  _: 3
@@ -1519,7 +1519,7 @@ const Qt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530
1519
1519
  return (t, a) => (v(), F(Y(y(n)), {
1520
1520
  class: _e({ "has-task-items": e.hasTaskItems })
1521
1521
  }, {
1522
- default: q(() => [
1522
+ default: D(() => [
1523
1523
  z(t.$slots, "default", {}, void 0, !0)
1524
1524
  ]),
1525
1525
  _: 3
@@ -1558,7 +1558,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
1558
1558
  code_block: yt,
1559
1559
  emphasis: kt,
1560
1560
  heading: St,
1561
- image: Dt,
1561
+ image: qt,
1562
1562
  break: Tt,
1563
1563
  link: an,
1564
1564
  list: Zt,
@@ -1720,10 +1720,10 @@ function Sn(e, n) {
1720
1720
  function _n(e) {
1721
1721
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1722
1722
  }
1723
- var An = Ke, Dn = yn, qn = kn, Cn = Sn, Tn = _n, jn = xn, De = {
1723
+ var An = Ke, qn = yn, Dn = kn, Cn = Sn, Tn = _n, jn = xn, qe = {
1724
1724
  isNothing: An,
1725
- isObject: Dn,
1726
- toArray: qn,
1725
+ isObject: qn,
1726
+ toArray: Dn,
1727
1727
  repeat: Cn,
1728
1728
  isNegativeZero: Tn,
1729
1729
  extend: jn
@@ -1993,7 +1993,7 @@ function Yn(e) {
1993
1993
  return t * parseInt(n, 10);
1994
1994
  }
1995
1995
  function er(e) {
1996
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !De.isNegativeZero(e);
1996
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !qe.isNegativeZero(e);
1997
1997
  }
1998
1998
  var tr = new M("tag:yaml.org,2002:int", {
1999
1999
  kind: "scalar",
@@ -2065,12 +2065,12 @@ function or(e, n) {
2065
2065
  case "camelcase":
2066
2066
  return "-.Inf";
2067
2067
  }
2068
- else if (De.isNegativeZero(e))
2068
+ else if (qe.isNegativeZero(e))
2069
2069
  return "-0.0";
2070
2070
  return t = e.toString(10), ir.test(t) ? t.replace("e", ".e") : t;
2071
2071
  }
2072
2072
  function lr(e) {
2073
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || De.isNegativeZero(e));
2073
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || qe.isNegativeZero(e));
2074
2074
  }
2075
2075
  var sr = new M("tag:yaml.org,2002:float", {
2076
2076
  kind: "scalar",
@@ -2123,12 +2123,12 @@ function fr(e) {
2123
2123
  var hr = new M("tag:yaml.org,2002:merge", {
2124
2124
  kind: "scalar",
2125
2125
  resolve: fr
2126
- }), qe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2126
+ }), De = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2127
2127
  \r`;
2128
2128
  function vr(e) {
2129
2129
  if (e === null)
2130
2130
  return !1;
2131
- var n, t, a = 0, r = e.length, c = qe;
2131
+ var n, t, a = 0, r = e.length, c = De;
2132
2132
  for (t = 0; t < r; t++)
2133
2133
  if (n = c.indexOf(e.charAt(t)), !(n > 64)) {
2134
2134
  if (n < 0)
@@ -2138,13 +2138,13 @@ function vr(e) {
2138
2138
  return a % 8 === 0;
2139
2139
  }
2140
2140
  function wr(e) {
2141
- var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, c = qe, s = 0, l = [];
2141
+ var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, c = De, s = 0, l = [];
2142
2142
  for (n = 0; n < r; n++)
2143
2143
  n % 4 === 0 && n && (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)), s = s << 6 | c.indexOf(a.charAt(n));
2144
2144
  return t = r % 4 * 6, t === 0 ? (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)) : t === 18 ? (l.push(s >> 10 & 255), l.push(s >> 2 & 255)) : t === 12 && l.push(s >> 4 & 255), new Uint8Array(l);
2145
2145
  }
2146
2146
  function br(e) {
2147
- var n = "", t = 0, a, r, c = e.length, s = qe;
2147
+ var n = "", t = 0, a, r, c = e.length, s = De;
2148
2148
  for (a = 0; a < c; a++)
2149
2149
  a % 3 === 0 && a && (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]), t = (t << 8) + e[a];
2150
2150
  return r = c % 3, r === 0 ? (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]) : r === 2 ? (n += s[t >> 10 & 63], n += s[t >> 4 & 63], n += s[t << 2 & 63], n += s[64]) : r === 1 && (n += s[t >> 2 & 63], n += s[t << 4 & 63], n += s[64], n += s[64]), n;
@@ -2184,17 +2184,17 @@ function _r(e) {
2184
2184
  function Ar(e) {
2185
2185
  return e !== null ? e : [];
2186
2186
  }
2187
- var Dr = new M("tag:yaml.org,2002:omap", {
2187
+ var qr = new M("tag:yaml.org,2002:omap", {
2188
2188
  kind: "sequence",
2189
2189
  resolve: _r,
2190
2190
  construct: Ar
2191
- }), qr = Object.prototype.toString;
2191
+ }), Dr = Object.prototype.toString;
2192
2192
  function Cr(e) {
2193
2193
  if (e === null)
2194
2194
  return !0;
2195
2195
  var n, t, a, r, c, s = e;
2196
2196
  for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1) {
2197
- if (a = s[n], qr.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
2197
+ if (a = s[n], Dr.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
2198
2198
  return !1;
2199
2199
  c[n] = [r[0], a[r[0]]];
2200
2200
  }
@@ -2237,7 +2237,7 @@ cr.extend({
2237
2237
  ],
2238
2238
  explicit: [
2239
2239
  kr,
2240
- Dr,
2240
+ qr,
2241
2241
  jr,
2242
2242
  Er
2243
2243
  ]
@@ -2317,8 +2317,8 @@ const We = /* @__PURE__ */ G({
2317
2317
  emits: ["add", "edit", "toggle-published"],
2318
2318
  setup(e, { emit: n }) {
2319
2319
  const t = e, a = n, { i18n: r } = Ae.useI18n(), c = U(!0), s = L(() => {
2320
- var x, b, S, D, i;
2321
- return ((b = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : b.title) || ((i = (D = (S = t.selectedDocument) == null ? void 0 : S.document) == null ? void 0 : D.revision) == null ? void 0 : i.title) || "";
2320
+ var x, b, S, q, i;
2321
+ return ((b = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : b.title) || ((i = (q = (S = t.selectedDocument) == null ? void 0 : S.document) == null ? void 0 : q.revision) == null ? void 0 : i.title) || "";
2322
2322
  }), l = L(() => ""), g = U(!1), h = U(r.t("documentation.common.unpublished")), A = U(null);
2323
2323
  ge(() => t.selectedDocument, (x) => {
2324
2324
  var b;
@@ -2337,7 +2337,7 @@ const We = /* @__PURE__ */ G({
2337
2337
  }, c.value = !1;
2338
2338
  };
2339
2339
  return (x, b) => {
2340
- const S = $("KBadge"), D = $("KInputSwitch"), i = $("KButton"), o = $("KSkeleton");
2340
+ const S = $("KBadge"), q = $("KInputSwitch"), i = $("KButton"), o = $("KSkeleton");
2341
2341
  return v(), C("div", $r, [
2342
2342
  N("div", Gr, [
2343
2343
  N("div", Or, [
@@ -2353,7 +2353,7 @@ const We = /* @__PURE__ */ G({
2353
2353
  key: 0,
2354
2354
  appearance: "success"
2355
2355
  }, {
2356
- default: q(() => [
2356
+ default: D(() => [
2357
2357
  O(E(y(r).t("documentation.common.published")), 1)
2358
2358
  ]),
2359
2359
  _: 1
@@ -2361,7 +2361,7 @@ const We = /* @__PURE__ */ G({
2361
2361
  key: 1,
2362
2362
  appearance: "neutral"
2363
2363
  }, {
2364
- default: q(() => [
2364
+ default: D(() => [
2365
2365
  O(E(y(r).t("documentation.common.unpublished")), 1)
2366
2366
  ]),
2367
2367
  _: 1
@@ -2370,7 +2370,7 @@ const We = /* @__PURE__ */ G({
2370
2370
  l.value ? (v(), C("div", Hr, [
2371
2371
  N("span", Kr, E(y(r).t("documentation.documentation_display.added_label")), 1),
2372
2372
  R(S, { appearance: "neutral" }, {
2373
- default: q(() => [
2373
+ default: D(() => [
2374
2374
  O(E(l.value), 1)
2375
2375
  ]),
2376
2376
  _: 1
@@ -2380,8 +2380,8 @@ const We = /* @__PURE__ */ G({
2380
2380
  R(y(We), {
2381
2381
  "auth-function": () => e.canEdit()
2382
2382
  }, {
2383
- default: q(() => [
2384
- !e.hidePublishToggle && !e.card ? (v(), F(D, {
2383
+ default: D(() => [
2384
+ !e.hidePublishToggle && !e.card ? (v(), F(q, {
2385
2385
  key: 0,
2386
2386
  modelValue: g.value,
2387
2387
  "onUpdate:modelValue": b[0] || (b[0] = (u) => g.value = u),
@@ -2398,7 +2398,7 @@ const We = /* @__PURE__ */ G({
2398
2398
  size: "small",
2399
2399
  onClick: b[1] || (b[1] = (u) => a("edit"))
2400
2400
  }, {
2401
- default: q(() => [
2401
+ default: D(() => [
2402
2402
  O(E(y(r).t("documentation.documentation_display.edit_button")), 1)
2403
2403
  ]),
2404
2404
  _: 1
@@ -2409,7 +2409,7 @@ const We = /* @__PURE__ */ G({
2409
2409
  size: "small",
2410
2410
  onClick: b[2] || (b[2] = (u) => a("add"))
2411
2411
  }, {
2412
- default: q(() => [
2412
+ default: D(() => [
2413
2413
  O(E(y(r).t("documentation.documentation_display.add_new")), 1)
2414
2414
  ]),
2415
2415
  _: 1
@@ -2531,7 +2531,7 @@ const We = /* @__PURE__ */ G({
2531
2531
  "data-testid": "kui-icon-wrapper-add-icon",
2532
2532
  style: Ge(a.value)
2533
2533
  }, {
2534
- default: q(() => [
2534
+ default: D(() => [
2535
2535
  (v(), C("svg", {
2536
2536
  "aria-hidden": e.decorative ? "true" : void 0,
2537
2537
  "data-testid": "kui-icon-svg-add-icon",
@@ -2639,7 +2639,7 @@ const We = /* @__PURE__ */ G({
2639
2639
  "data-testid": "kui-icon-wrapper-progress-icon",
2640
2640
  style: Ge(a.value)
2641
2641
  }, {
2642
- default: q(() => [
2642
+ default: D(() => [
2643
2643
  (v(), C("svg", {
2644
2644
  "aria-hidden": e.decorative ? "true" : void 0,
2645
2645
  "data-testid": "kui-icon-svg-progress-icon",
@@ -2682,26 +2682,26 @@ const We = /* @__PURE__ */ G({
2682
2682
  icon: "stateGruceo",
2683
2683
  "icon-size": "96"
2684
2684
  }, {
2685
- title: q(() => [
2685
+ title: D(() => [
2686
2686
  O(E(y(a).t("documentation.show.empty_state.title")), 1)
2687
2687
  ]),
2688
- message: q(() => [
2688
+ message: D(() => [
2689
2689
  O(E(y(a).t("documentation.show.empty_state.message")), 1)
2690
2690
  ]),
2691
- cta: q(() => [
2691
+ cta: D(() => [
2692
2692
  R(y(We), {
2693
2693
  "auth-function": () => e.canEdit()
2694
2694
  }, {
2695
- default: q(() => [
2695
+ default: D(() => [
2696
2696
  R(s, {
2697
2697
  appearance: "primary",
2698
2698
  "data-testid": "add-new-page-button",
2699
2699
  onClick: c[0] || (c[0] = (g) => t("create-documentation"))
2700
2700
  }, {
2701
- icon: q(() => [
2701
+ icon: D(() => [
2702
2702
  R(y(na), { size: "22" })
2703
2703
  ]),
2704
- default: q(() => [
2704
+ default: D(() => [
2705
2705
  O(" " + E(y(a).t("documentation.show.empty_state.ctaText")), 1)
2706
2706
  ]),
2707
2707
  _: 1
@@ -2755,7 +2755,7 @@ const We = /* @__PURE__ */ G({
2755
2755
  return (m = t.record.file) == null ? void 0 : m.filename;
2756
2756
  }), s = L(() => {
2757
2757
  var m;
2758
- return D.value ? (m = D.value.name) == null ? void 0 : m.split(".")[0] : "";
2758
+ return q.value ? (m = q.value.name) == null ? void 0 : m.split(".")[0] : "";
2759
2759
  }), l = U(!0), g = L(() => l.value ? "published" : "unpublished"), h = tt({
2760
2760
  fileName: "",
2761
2761
  pageName: "",
@@ -2782,17 +2782,17 @@ const We = /* @__PURE__ */ G({
2782
2782
  value: "none",
2783
2783
  selected: !w
2784
2784
  }), m;
2785
- }), K = L(() => !t.editing && !D.value || !h.pageName || k.value), x = L(() => t.editing ? r.t("documentation.form_modal.edit_title") : r.t("documentation.form_modal.create_title")), b = L(() => t.editing ? r.t("documentation.form_modal.replace_file_button_text") : r.t("documentation.form_modal.filename_button_text")), S = L(() => g.value === "published" ? r.t("documentation.common.published") : r.t("documentation.common.unpublished")), D = U(null), i = (m) => {
2786
- D.value = m == null ? void 0 : m[0], h.pageName = s.value, h.urlSlug = s.value, h.fileName = s.value;
2785
+ }), K = L(() => !t.editing && !q.value || !h.pageName || k.value), x = L(() => t.editing ? r.t("documentation.form_modal.edit_title") : r.t("documentation.form_modal.create_title")), b = L(() => t.editing ? r.t("documentation.form_modal.replace_file_button_text") : r.t("documentation.form_modal.filename_button_text")), S = L(() => g.value === "published" ? r.t("documentation.common.published") : r.t("documentation.common.unpublished")), q = U(null), i = (m) => {
2786
+ q.value = m == null ? void 0 : m[0], h.pageName = s.value, h.urlSlug = s.value, h.fileName = s.value;
2787
2787
  }, o = () => {
2788
- D.value = null;
2788
+ q.value = null;
2789
2789
  }, u = () => {
2790
2790
  a("cancel"), p();
2791
2791
  }, d = () => {
2792
- a("save", Object.assign(h, { status: g.value }), D);
2792
+ a("save", Object.assign(h, { status: g.value }), q);
2793
2793
  }, p = () => {
2794
2794
  var m, w, f, _, j;
2795
- if (D.value = null, t.editing && ((m = t.record) != null && m.document)) {
2795
+ if (q.value = null, t.editing && ((m = t.record) != null && m.document)) {
2796
2796
  const I = Le(t.record), Q = I.status || t.record.document.status || l.value;
2797
2797
  h.fileName = ((w = I.document.file) == null ? void 0 : w.filename) || ((_ = (f = I.document.revision) == null ? void 0 : f.file) == null ? void 0 : _.filename), h.pageName = I.document.title || ((j = I.document.revision) == null ? void 0 : j.title), h.urlSlug = I.document.slug, h.parent = I.document.parent_document_id, h.status = Q, l.value = Q === "published";
2798
2798
  } else
@@ -2810,7 +2810,7 @@ const We = /* @__PURE__ */ G({
2810
2810
  onCanceled: u,
2811
2811
  onProceed: d
2812
2812
  }, {
2813
- "header-content": q(() => [
2813
+ "header-content": D(() => [
2814
2814
  N("div", da, [
2815
2815
  O(E(x.value) + " ", 1),
2816
2816
  N("div", pa, [
@@ -2820,7 +2820,7 @@ const We = /* @__PURE__ */ G({
2820
2820
  class: "doc-link",
2821
2821
  href: y(ua).serviceDocumentationDocs
2822
2822
  }, {
2823
- default: q(() => [
2823
+ default: D(() => [
2824
2824
  O(E(y(r).t("documentation.form_modal.documentation_link_text")), 1)
2825
2825
  ]),
2826
2826
  _: 1
@@ -2828,7 +2828,7 @@ const We = /* @__PURE__ */ G({
2828
2828
  ])
2829
2829
  ])
2830
2830
  ]),
2831
- "body-content": q(() => [
2831
+ "body-content": D(() => [
2832
2832
  e.errorMessage ? (v(), F(_, {
2833
2833
  key: 0,
2834
2834
  "alert-message": e.errorMessage,
@@ -2875,7 +2875,7 @@ const We = /* @__PURE__ */ G({
2875
2875
  e.hidePublishToggle ? H("", !0) : (v(), C("div", va, [
2876
2876
  N("div", null, [
2877
2877
  R(Q, null, {
2878
- default: q(() => [
2878
+ default: D(() => [
2879
2879
  O(E(y(r).t("documentation.form_modal.status_label")), 1)
2880
2880
  ]),
2881
2881
  _: 1
@@ -2900,7 +2900,7 @@ const We = /* @__PURE__ */ G({
2900
2900
  width: "100%"
2901
2901
  }, null, 8, ["modelValue", "items", "label"])
2902
2902
  ]),
2903
- "action-buttons": q(() => [
2903
+ "action-buttons": D(() => [
2904
2904
  N("div", wa, [
2905
2905
  e.editing ? (v(), F(ne, {
2906
2906
  key: 0,
@@ -2910,14 +2910,14 @@ const We = /* @__PURE__ */ G({
2910
2910
  disabled: e.actionPending,
2911
2911
  onClick: w[4] || (w[4] = (T) => a("delete"))
2912
2912
  }, je({
2913
- default: q(() => [
2913
+ default: D(() => [
2914
2914
  O(" " + E(y(r).t("documentation.form_modal.delete_button_text")), 1)
2915
2915
  ]),
2916
2916
  _: 2
2917
2917
  }, [
2918
2918
  e.actionPending ? {
2919
2919
  name: "icon",
2920
- fn: q(() => [
2920
+ fn: D(() => [
2921
2921
  R(y($e), { size: "16" })
2922
2922
  ]),
2923
2923
  key: "0"
@@ -2930,7 +2930,7 @@ const We = /* @__PURE__ */ G({
2930
2930
  "data-testid": "edit-documentation-cancel-button",
2931
2931
  onClick: u
2932
2932
  }, {
2933
- default: q(() => [
2933
+ default: D(() => [
2934
2934
  O(E(y(r).t("documentation.form_modal.cancel_button_text")), 1)
2935
2935
  ]),
2936
2936
  _: 1
@@ -2941,14 +2941,14 @@ const We = /* @__PURE__ */ G({
2941
2941
  disabled: e.actionPending || K.value,
2942
2942
  onClick: d
2943
2943
  }, je({
2944
- default: q(() => [
2944
+ default: D(() => [
2945
2945
  O(" " + E(y(r).t("documentation.form_modal.save_button_text")), 1)
2946
2946
  ]),
2947
2947
  _: 2
2948
2948
  }, [
2949
2949
  e.actionPending ? {
2950
2950
  name: "icon",
2951
- fn: q(() => [
2951
+ fn: D(() => [
2952
2952
  R(y($e), { size: "16" })
2953
2953
  ]),
2954
2954
  key: "0"
@@ -3045,7 +3045,7 @@ const We = /* @__PURE__ */ G({
3045
3045
  key: 1,
3046
3046
  class: "documentation-card"
3047
3047
  }, {
3048
- default: q(() => [
3048
+ default: D(() => [
3049
3049
  N("div", Sa, [
3050
3050
  (v(), F(P, {
3051
3051
  key: `tree-list-${e.cacheKey}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/documentation",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "main": "./dist/documentation.umd.js",
6
6
  "module": "./dist/documentation.es.js",
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "@kong/icons": "^1.8.3",
54
54
  "@kong-ui-public/document-viewer": "^2.0.12",
55
- "@kong-ui-public/entities-shared": "^2.1.8"
55
+ "@kong-ui-public/entities-shared": "^2.2.0"
56
56
  },
57
57
  "scripts": {
58
58
  "dev": "cross-env USE_SANDBOX=true vite",