@apiuikit/web-component 1.5.0 → 1.6.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 (27) hide show
  1. package/dist/{CodeSamples-CvGJUENN-CR16fFmG.js → CodeSamples-Dm277WGX-CiKryuS0.js} +404 -400
  2. package/dist/{LinkedInExtension-BL-4T9tt-CwUePUjv.js → LinkedInExtension-BL-4T9tt-CFjbqkhZ.js} +1 -1
  3. package/dist/{LogoExtension-BCPMpWxf-CD0UVJhy.js → LogoExtension-Bhw9grDi-DFPgcRdp.js} +1 -1
  4. package/dist/{XExtension-GyRtdHLL-DPPkXhkP.js → XExtension-GyRtdHLL-hbNYWxJs.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 +1 -1
  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 +3 -3
  16. package/dist/elements/openapi.js +5 -5
  17. package/dist/elements/schemas.js +1 -1
  18. package/dist/{index-227TxMRF-BYlp71U_.js → index-ButmLtm3-BxvUFOqt.js} +1 -1
  19. package/dist/{index-Bf4YsziL-DPjrM_Iz.js → index-ByTEMZ1h-D8WOAtLD.js} +1 -1
  20. package/dist/{protoToJsonSchema-nTI0cRt8-B1zlLwd7.js → protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js} +1 -1
  21. package/dist/{protobufSchemaParser-ChAv0AAl-DDsAdtNH.js → protobufSchemaParser--9dltEfO-BJdsvVd_.js} +11 -11
  22. package/dist/registerElement-qkr8S33y.js +25763 -0
  23. package/dist/web-component.css +1 -1
  24. package/dist/web-component.es.js +21676 -21321
  25. package/dist/web-component.iife.js +320 -320
  26. package/package.json +1 -1
  27. package/dist/registerElement-DAVqIcyy.js +0 -25412
@@ -1,4 +1,4 @@
1
- import { j as r } from "./registerElement-DAVqIcyy.js";
1
+ import { j as r } from "./registerElement-qkr8S33y.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,4 +1,4 @@
1
- import { w as l, j as r } from "./registerElement-DAVqIcyy.js";
1
+ import { a as l, j as r } from "./registerElement-qkr8S33y.js";
2
2
  function n({ value: a }) {
3
3
  const o = l(a);
4
4
  return o ? /* @__PURE__ */ r.jsx(
@@ -1,4 +1,4 @@
1
- import { j as r } from "./registerElement-DAVqIcyy.js";
1
+ import { j as r } from "./registerElement-qkr8S33y.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, X as r } from "../registerElement-DAVqIcyy.js";
1
+ import { d as s, s as t, j as e, E as r } from "../registerElement-qkr8S33y.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, J as r } from "../registerElement-DAVqIcyy.js";
1
+ import { d as i, s as t, j as o, v as r } from "../registerElement-qkr8S33y.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, V as r } from "../registerElement-DAVqIcyy.js";
1
+ import { d as s, s as t, j as e, k as r } from "../registerElement-qkr8S33y.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, U as t } from "../registerElement-DAVqIcyy.js";
1
+ import { d as i, s, j as o, g as t } from "../registerElement-qkr8S33y.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, K as o } from "../registerElement-DAVqIcyy.js";
1
+ import { d as r, s as i, j as t, w as o } from "../registerElement-qkr8S33y.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,4 +1,4 @@
1
- import { d as a, s as r, j as i, P as e } from "../registerElement-DAVqIcyy.js";
1
+ import { d as a, s as r, j as i, X as e } from "../registerElement-qkr8S33y.js";
2
2
  function p({ spec: n, resolved: o, config: s }) {
3
3
  return n ? o ? /* @__PURE__ */ i.jsx(e, { kind: "resolved", asyncapi: n, config: s }) : /* @__PURE__ */ i.jsx(e, { asyncapi: n, config: s }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { d as t, s as e, j as p, q as s } from "../registerElement-DAVqIcyy.js";
1
+ import { d as t, s as e, j as p, T as s } from "../registerElement-qkr8S33y.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, n as r } from "../registerElement-DAVqIcyy.js";
1
+ import { d as e, s as t, j as p, $ as r } from "../registerElement-qkr8S33y.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, W as t } from "../registerElement-DAVqIcyy.js";
1
+ import { d as i, s as o, j as s, y as t } from "../registerElement-qkr8S33y.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, Q as t } from "../registerElement-DAVqIcyy.js";
1
+ import { d as i, s, j as o, N as t } from "../registerElement-qkr8S33y.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,6 +1,6 @@
1
- import { d as i, s, j as t, e as p } from "../registerElement-DAVqIcyy.js";
2
- function r({ spec: e, config: o, layout: n }) {
3
- return e ? /* @__PURE__ */ t.jsx(p, { document: e, config: o, layout: n }) : null;
1
+ import { d as i, s, j as t, _ as p } from "../registerElement-qkr8S33y.js";
2
+ function r({ spec: o, config: n, layout: e }) {
3
+ return o ? /* @__PURE__ */ t.jsx(p, { document: o, config: n, layout: e }) : null;
4
4
  }
5
5
  i(
6
6
  "apiuikit-openapi-webhooks",
@@ -1,10 +1,10 @@
1
- import { d as r, s, j as o, a as i } from "../registerElement-DAVqIcyy.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;
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;
4
4
  }
5
5
  r(
6
6
  "apiuikit-openapi",
7
- s(a, {
7
+ s(t, {
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
- a as OpenApiElement
16
+ t as OpenApiElement
17
17
  };
@@ -1,4 +1,4 @@
1
- import { d as t, s as i, j as o, Y as r } from "../registerElement-DAVqIcyy.js";
1
+ import { d as t, s as i, j as o, A as r } from "../registerElement-qkr8S33y.js";
2
2
  function u({ spec: n, config: s, layout: e }) {
3
3
  return n ? /* @__PURE__ */ o.jsx(r, { document: n, config: s, layout: e }) : null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { v as yd } from "./registerElement-DAVqIcyy.js";
1
+ import { I as yd } from "./registerElement-qkr8S33y.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 { v as Rs } from "./registerElement-DAVqIcyy.js";
1
+ import { I as Rs } from "./registerElement-qkr8S33y.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 { b as Ee, D as Xi } from "./registerElement-DAVqIcyy.js";
1
+ import { u as Ee, b as Xi } from "./registerElement-qkr8S33y.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-nTI0cRt8-B1zlLwd7.js";
2
- import { p as a, Z as r, G as n } from "./registerElement-DAVqIcyy.js";
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";
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 (t) {
8
+ } catch (r) {
9
9
  return [
10
- t instanceof Error ? t.message : "Failed to parse protobuf schema"
10
+ r instanceof Error ? r.message : "Failed to parse protobuf schema"
11
11
  ];
12
12
  }
13
13
  }
@@ -19,7 +19,7 @@ const i = [
19
19
  function u() {
20
20
  return {
21
21
  validate: c,
22
- parse: p,
22
+ parse: f,
23
23
  getMimeTypes: () => i
24
24
  };
25
25
  }
@@ -31,21 +31,21 @@ function g(o) {
31
31
  );
32
32
  }
33
33
  function c(o) {
34
- return s(o.data).map((t) => ({
35
- message: t,
34
+ return s(o.data).map((r) => ({
35
+ message: r,
36
36
  path: o.path
37
37
  }));
38
38
  }
39
- function p(o) {
39
+ function f(o) {
40
40
  if (typeof o.data != "string")
41
41
  return {
42
- [r]: "Protobuf schema must be a string of .proto source"
42
+ [t]: "Protobuf schema must be a string of .proto source"
43
43
  };
44
44
  try {
45
45
  return e(o.data);
46
- } catch (t) {
46
+ } catch (r) {
47
47
  return {
48
- [r]: t instanceof Error ? t.message : "Failed to convert Protobuf schema"
48
+ [t]: r instanceof Error ? r.message : "Failed to convert Protobuf schema"
49
49
  };
50
50
  }
51
51
  }