@apiuikit/web-component 1.6.0 → 1.7.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.
Files changed (26) hide show
  1. package/dist/{CodeSamples-Dm277WGX-CiKryuS0.js → CodeSamples-DM23Rux1-ekmYilIR.js} +1048 -1066
  2. package/dist/{LinkedInExtension-BL-4T9tt-CFjbqkhZ.js → LinkedInExtension-BL-4T9tt-CPTJWNAI.js} +1 -1
  3. package/dist/{LogoExtension-Bhw9grDi-DFPgcRdp.js → LogoExtension-DgzRHghk-C-gboZmI.js} +3 -3
  4. package/dist/{XExtension-GyRtdHLL-hbNYWxJs.js → XExtension-GyRtdHLL-B7d4Tyjo.js} +1 -1
  5. package/dist/elements/asyncapi-info.js +1 -1
  6. package/dist/elements/asyncapi-messages.js +1 -1
  7. package/dist/elements/asyncapi-operations.js +1 -1
  8. package/dist/elements/asyncapi-renderer.js +1 -1
  9. package/dist/elements/asyncapi-servers.js +1 -1
  10. package/dist/elements/asyncapi.js +4 -4
  11. package/dist/elements/openapi-endpoints.js +1 -1
  12. package/dist/elements/openapi-info.js +1 -1
  13. package/dist/elements/openapi-renderer.js +1 -1
  14. package/dist/elements/openapi-servers.js +1 -1
  15. package/dist/elements/openapi-webhooks.js +1 -1
  16. package/dist/elements/openapi.js +5 -5
  17. package/dist/elements/schemas.js +4 -4
  18. package/dist/{index-ButmLtm3-BxvUFOqt.js → index-B6iEqqD5-pOAlv4zA.js} +1 -1
  19. package/dist/{index-ByTEMZ1h-D8WOAtLD.js → index-JrbC06_1-Gmece7-V.js} +1 -1
  20. package/dist/{protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js → protoToJsonSchema-DSwxELWE-DBlwJigZ.js} +1 -1
  21. package/dist/{protobufSchemaParser--9dltEfO-BJdsvVd_.js → protobufSchemaParser-CXhrG3bk-BLghei1k.js} +9 -9
  22. package/dist/{registerElement-qkr8S33y.js → registerElement-DbKXLDu_.js} +10432 -10372
  23. package/dist/web-component.css +1 -1
  24. package/dist/web-component.es.js +22755 -22713
  25. package/dist/web-component.iife.js +310 -310
  26. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { j as r } from "./registerElement-qkr8S33y.js";
1
+ import { j as r } from "./registerElement-DbKXLDu_.js";
2
2
  function t({ className: e }) {
3
3
  return /* @__PURE__ */ r.jsx("svg", { className: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 110-4.124 2.062 2.062 0 010 4.124zM7.119 20.452H3.554V9h3.565v11.452z" }) });
4
4
  }
@@ -1,7 +1,7 @@
1
- import { a as l, j as r } from "./registerElement-qkr8S33y.js";
1
+ import { g as r, j as t } from "./registerElement-DbKXLDu_.js";
2
2
  function n({ value: a }) {
3
- const o = l(a);
4
- return o ? /* @__PURE__ */ r.jsx(
3
+ const o = r(a);
4
+ return o ? /* @__PURE__ */ t.jsx(
5
5
  "img",
6
6
  {
7
7
  src: o.url,
@@ -1,4 +1,4 @@
1
- import { j as r } from "./registerElement-qkr8S33y.js";
1
+ import { j as r } from "./registerElement-DbKXLDu_.js";
2
2
  function l({ className: e }) {
3
3
  return /* @__PURE__ */ r.jsx("svg", { className: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" }) });
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as s, s as t, j as e, E as r } from "../registerElement-qkr8S33y.js";
1
+ import { d as s, s as t, j as e, R as r } from "../registerElement-DbKXLDu_.js";
2
2
  function p({ spec: n, config: i, layout: o }) {
3
3
  return n ? /* @__PURE__ */ e.jsx(r, { document: n, config: i, layout: o }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as i, s as t, j as o, v as r } from "../registerElement-qkr8S33y.js";
1
+ import { d as i, s as t, j as o, M as r } from "../registerElement-DbKXLDu_.js";
2
2
  function a({ spec: s, config: n, layout: e }) {
3
3
  return s ? /* @__PURE__ */ o.jsx(r, { document: s, config: n, layout: e }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as s, s as t, j as e, k as r } from "../registerElement-qkr8S33y.js";
1
+ import { d as s, s as t, j as e, O as r } from "../registerElement-DbKXLDu_.js";
2
2
  function p({ spec: n, config: i, layout: o }) {
3
3
  return n ? /* @__PURE__ */ e.jsx(r, { document: n, config: i, layout: o }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as i, s, j as o, g as t } from "../registerElement-qkr8S33y.js";
1
+ import { d as i, s, j as o, $ as t } from "../registerElement-DbKXLDu_.js";
2
2
  function a({ spec: n, config: r, onDiagnostics: e }) {
3
3
  return n ? /* @__PURE__ */ o.jsx(t, { raw: n, config: r, onDiagnostics: e }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as r, s as i, j as t, w as o } from "../registerElement-qkr8S33y.js";
1
+ import { d as r, s as i, j as t, _ as o } from "../registerElement-DbKXLDu_.js";
2
2
  function p({ spec: n, config: s, layout: e }) {
3
3
  return n ? /* @__PURE__ */ t.jsx(o, { document: n, config: s, layout: e }) : null;
4
4
  }
@@ -1,8 +1,8 @@
1
- import { d as a, s as r, j as i, X as e } from "../registerElement-qkr8S33y.js";
2
- function p({ spec: n, resolved: o, config: s }) {
3
- return n ? o ? /* @__PURE__ */ i.jsx(e, { kind: "resolved", asyncapi: n, config: s }) : /* @__PURE__ */ i.jsx(e, { asyncapi: n, config: s }) : null;
1
+ import { d as o, s as r, j as i, a } from "../registerElement-DbKXLDu_.js";
2
+ function p({ spec: n, resolved: e, config: s }) {
3
+ return n ? e ? /* @__PURE__ */ i.jsx(a, { kind: "resolved", asyncapi: n, config: s }) : /* @__PURE__ */ i.jsx(a, { asyncapi: n, config: s }) : null;
4
4
  }
5
- a(
5
+ o(
6
6
  "apiuikit-asyncapi",
7
7
  r(p, {
8
8
  props: {
@@ -1,4 +1,4 @@
1
- import { d as t, s as e, j as p, T as s } from "../registerElement-qkr8S33y.js";
1
+ import { d as t, s as e, j as p, D as s } from "../registerElement-DbKXLDu_.js";
2
2
  function r({ spec: n, config: i, layout: o }) {
3
3
  return n ? /* @__PURE__ */ p.jsx(s, { document: n, config: i, layout: o }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as e, s as t, j as p, $ as r } from "../registerElement-qkr8S33y.js";
1
+ import { d as e, s as t, j as p, z as r } from "../registerElement-DbKXLDu_.js";
2
2
  function s({ spec: n, config: i, layout: o }) {
3
3
  return n ? /* @__PURE__ */ p.jsx(r, { document: n, config: i, layout: o }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as i, s as o, j as s, y as t } from "../registerElement-qkr8S33y.js";
1
+ import { d as i, s as o, j as s, T as t } from "../registerElement-DbKXLDu_.js";
2
2
  function p({ spec: n, config: e, onDiagnostics: r }) {
3
3
  return n ? /* @__PURE__ */ s.jsx(t, { raw: n, config: e, onDiagnostics: r }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as i, s, j as o, N as t } from "../registerElement-qkr8S33y.js";
1
+ import { d as i, s, j as o, b as t } from "../registerElement-DbKXLDu_.js";
2
2
  function p({ spec: e, config: n, layout: r }) {
3
3
  return e ? /* @__PURE__ */ o.jsx(t, { document: e, config: n, layout: r }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as i, s, j as t, _ as p } from "../registerElement-qkr8S33y.js";
1
+ import { d as i, s, j as t, F as p } from "../registerElement-DbKXLDu_.js";
2
2
  function r({ spec: o, config: n, layout: e }) {
3
3
  return o ? /* @__PURE__ */ t.jsx(p, { document: o, config: n, layout: e }) : null;
4
4
  }
@@ -1,10 +1,10 @@
1
- import { d as r, s, j as n, o as i } from "../registerElement-qkr8S33y.js";
2
- function t({ spec: e, resolved: p, config: o }) {
3
- return e ? p ? /* @__PURE__ */ n.jsx(i, { kind: "resolved", openapi: e, config: o }) : /* @__PURE__ */ n.jsx(i, { openapi: e, config: o }) : null;
1
+ import { d as r, s, j as o, U as i } from "../registerElement-DbKXLDu_.js";
2
+ function a({ spec: e, resolved: p, config: n }) {
3
+ return e ? p ? /* @__PURE__ */ o.jsx(i, { kind: "resolved", openapi: e, config: n }) : /* @__PURE__ */ o.jsx(i, { openapi: e, config: n }) : null;
4
4
  }
5
5
  r(
6
6
  "apiuikit-openapi",
7
- s(t, {
7
+ s(a, {
8
8
  props: {
9
9
  spec: void 0,
10
10
  resolved: "boolean",
@@ -13,5 +13,5 @@ r(
13
13
  })
14
14
  );
15
15
  export {
16
- t as OpenApiElement
16
+ a as OpenApiElement
17
17
  };
@@ -1,10 +1,10 @@
1
- import { d as t, s as i, j as o, A as r } from "../registerElement-qkr8S33y.js";
2
- function u({ spec: n, config: s, layout: e }) {
1
+ import { d as t, s as i, j as o, J as r } from "../registerElement-DbKXLDu_.js";
2
+ function a({ spec: n, config: s, layout: e }) {
3
3
  return n ? /* @__PURE__ */ o.jsx(r, { document: n, config: s, layout: e }) : null;
4
4
  }
5
5
  t(
6
6
  "apiuikit-schemas",
7
- i(u, {
7
+ i(a, {
8
8
  props: {
9
9
  spec: void 0,
10
10
  config: "json",
@@ -13,5 +13,5 @@ t(
13
13
  })
14
14
  );
15
15
  export {
16
- u as SchemasElement
16
+ a as SchemasElement
17
17
  };
@@ -1,4 +1,4 @@
1
- import { I as yd } from "./registerElement-qkr8S33y.js";
1
+ import { k as yd } from "./registerElement-DbKXLDu_.js";
2
2
  var gd = Object.defineProperty, Np = (Si) => {
3
3
  throw TypeError(Si);
4
4
  }, bd = (Si, Ti, Ii) => Ti in Si ? gd(Si, Ti, { enumerable: !0, configurable: !0, writable: !0, value: Ii }) : Si[Ti] = Ii, vd = (Si, Ti, Ii) => bd(Si, Ti + "", Ii), Fp = (Si, Ti, Ii) => Ti.has(Si) || Np("Cannot " + Ii), $r = (Si, Ti, Ii) => (Fp(Si, Ti, "read from private field"), Ii ? Ii.call(Si) : Ti.get(Si)), Ys = (Si, Ti, Ii) => Ti.has(Si) ? Np("Cannot add the same private member more than once") : Ti instanceof WeakSet ? Ti.add(Si) : Ti.set(Si, Ii), Cp = (Si, Ti, Ii, bn) => (Fp(Si, Ti, "write to private field"), Ti.set(Si, Ii), Ii);
@@ -1,4 +1,4 @@
1
- import { I as Rs } from "./registerElement-qkr8S33y.js";
1
+ import { k as Rs } from "./registerElement-DbKXLDu_.js";
2
2
  var _f = Object.defineProperty, Of = (t, e, r) => e in t ? _f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, ct = (t, e, r) => Of(t, typeof e != "symbol" ? e + "" : e, r);
3
3
  function oo(t) {
4
4
  return t.replace(/~/g, "~0").replace(/\//g, "~1");
@@ -1,4 +1,4 @@
1
- import { u as Ee, b as Xi } from "./registerElement-qkr8S33y.js";
1
+ import { w as Ee, v as Xi } from "./registerElement-DbKXLDu_.js";
2
2
  var Ki = Object.defineProperty, Hi = (i, e, r) => e in i ? Ki(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r, be = (i, e, r) => Hi(i, typeof e != "symbol" ? e + "" : e, r), xi = { exports: {} }, ki = { exports: {} }, ji = {}, Ve = {}, Ei = Qi;
3
3
  function Qi(i, e) {
4
4
  for (var r = new Array(arguments.length - 1), f = 0, a = 2, s = !0; a < arguments.length; )
@@ -1,13 +1,13 @@
1
- import { protoToJsonSchema as e } from "./protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js";
2
- import { z as a, f as t, h as n } from "./registerElement-qkr8S33y.js";
1
+ import { protoToJsonSchema as e } from "./protoToJsonSchema-DSwxELWE-DBlwJigZ.js";
2
+ import { Q as a, i as r, l as n } from "./registerElement-DbKXLDu_.js";
3
3
  function s(o) {
4
4
  if (typeof o != "string")
5
5
  return ["Protobuf schema must be a string of .proto source"];
6
6
  try {
7
7
  return e(o), [];
8
- } catch (r) {
8
+ } catch (t) {
9
9
  return [
10
- r instanceof Error ? r.message : "Failed to parse protobuf schema"
10
+ t instanceof Error ? t.message : "Failed to parse protobuf schema"
11
11
  ];
12
12
  }
13
13
  }
@@ -31,21 +31,21 @@ function g(o) {
31
31
  );
32
32
  }
33
33
  function c(o) {
34
- return s(o.data).map((r) => ({
35
- message: r,
34
+ return s(o.data).map((t) => ({
35
+ message: t,
36
36
  path: o.path
37
37
  }));
38
38
  }
39
39
  function f(o) {
40
40
  if (typeof o.data != "string")
41
41
  return {
42
- [t]: "Protobuf schema must be a string of .proto source"
42
+ [r]: "Protobuf schema must be a string of .proto source"
43
43
  };
44
44
  try {
45
45
  return e(o.data);
46
- } catch (r) {
46
+ } catch (t) {
47
47
  return {
48
- [t]: r instanceof Error ? r.message : "Failed to convert Protobuf schema"
48
+ [r]: t instanceof Error ? t.message : "Failed to convert Protobuf schema"
49
49
  };
50
50
  }
51
51
  }