@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.
- package/dist/{CodeSamples-CvGJUENN-CR16fFmG.js → CodeSamples-Dm277WGX-CiKryuS0.js} +404 -400
- package/dist/{LinkedInExtension-BL-4T9tt-CwUePUjv.js → LinkedInExtension-BL-4T9tt-CFjbqkhZ.js} +1 -1
- package/dist/{LogoExtension-BCPMpWxf-CD0UVJhy.js → LogoExtension-Bhw9grDi-DFPgcRdp.js} +1 -1
- package/dist/{XExtension-GyRtdHLL-DPPkXhkP.js → XExtension-GyRtdHLL-hbNYWxJs.js} +1 -1
- package/dist/elements/asyncapi-info.js +1 -1
- package/dist/elements/asyncapi-messages.js +1 -1
- package/dist/elements/asyncapi-operations.js +1 -1
- package/dist/elements/asyncapi-renderer.js +1 -1
- package/dist/elements/asyncapi-servers.js +1 -1
- package/dist/elements/asyncapi.js +1 -1
- package/dist/elements/openapi-endpoints.js +1 -1
- package/dist/elements/openapi-info.js +1 -1
- package/dist/elements/openapi-renderer.js +1 -1
- package/dist/elements/openapi-servers.js +1 -1
- package/dist/elements/openapi-webhooks.js +3 -3
- package/dist/elements/openapi.js +5 -5
- package/dist/elements/schemas.js +1 -1
- package/dist/{index-227TxMRF-BYlp71U_.js → index-ButmLtm3-BxvUFOqt.js} +1 -1
- package/dist/{index-Bf4YsziL-DPjrM_Iz.js → index-ByTEMZ1h-D8WOAtLD.js} +1 -1
- package/dist/{protoToJsonSchema-nTI0cRt8-B1zlLwd7.js → protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js} +1 -1
- package/dist/{protobufSchemaParser-ChAv0AAl-DDsAdtNH.js → protobufSchemaParser--9dltEfO-BJdsvVd_.js} +11 -11
- package/dist/registerElement-qkr8S33y.js +25763 -0
- package/dist/web-component.css +1 -1
- package/dist/web-component.es.js +21676 -21321
- package/dist/web-component.iife.js +320 -320
- package/package.json +1 -1
- package/dist/registerElement-DAVqIcyy.js +0 -25412
package/dist/{LinkedInExtension-BL-4T9tt-CwUePUjv.js → LinkedInExtension-BL-4T9tt-CFjbqkhZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./registerElement-
|
|
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 { j as r } from "./registerElement-
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
2
|
-
function r({ spec:
|
|
3
|
-
return
|
|
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",
|
package/dist/elements/openapi.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as r, s, j as
|
|
2
|
-
function
|
|
3
|
-
return e ? p ? /* @__PURE__ */
|
|
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(
|
|
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
|
-
|
|
16
|
+
t as OpenApiElement
|
|
17
17
|
};
|
package/dist/elements/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as t, s as i, j as o,
|
|
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 {
|
|
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 {
|
|
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");
|
package/dist/{protoToJsonSchema-nTI0cRt8-B1zlLwd7.js → protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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; )
|
package/dist/{protobufSchemaParser-ChAv0AAl-DDsAdtNH.js → protobufSchemaParser--9dltEfO-BJdsvVd_.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { protoToJsonSchema as e } from "./protoToJsonSchema-
|
|
2
|
-
import {
|
|
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 (
|
|
8
|
+
} catch (r) {
|
|
9
9
|
return [
|
|
10
|
-
|
|
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:
|
|
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((
|
|
35
|
-
message:
|
|
34
|
+
return s(o.data).map((r) => ({
|
|
35
|
+
message: r,
|
|
36
36
|
path: o.path
|
|
37
37
|
}));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function f(o) {
|
|
40
40
|
if (typeof o.data != "string")
|
|
41
41
|
return {
|
|
42
|
-
[
|
|
42
|
+
[t]: "Protobuf schema must be a string of .proto source"
|
|
43
43
|
};
|
|
44
44
|
try {
|
|
45
45
|
return e(o.data);
|
|
46
|
-
} catch (
|
|
46
|
+
} catch (r) {
|
|
47
47
|
return {
|
|
48
|
-
[
|
|
48
|
+
[t]: r instanceof Error ? r.message : "Failed to convert Protobuf schema"
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
}
|