@apiuikit/web-component 1.4.0 → 1.5.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 (58) hide show
  1. package/README.md +21 -1
  2. package/dist/CodeSamples-CvGJUENN-CR16fFmG.js +4234 -0
  3. package/dist/LinkedInExtension-BL-4T9tt-CwUePUjv.js +21 -0
  4. package/dist/LogoExtension-BCPMpWxf-CD0UVJhy.js +16 -0
  5. package/dist/XExtension-GyRtdHLL-DPPkXhkP.js +23 -0
  6. package/dist/c-Bz1-FJiA-CwNanOv1.js +277 -0
  7. package/dist/clojure-aY2138WD-CzZhvUkO.js +135 -0
  8. package/dist/crystal-BtD5fR4q-B1F7Ovrt.js +283 -0
  9. package/dist/csharp-AnFv7wyC-DBJ0ahb9.js +382 -0
  10. package/dist/elements/asyncapi-info.d.ts +7 -0
  11. package/dist/elements/asyncapi-info.js +17 -0
  12. package/dist/elements/asyncapi-messages.d.ts +7 -0
  13. package/dist/elements/asyncapi-messages.js +17 -0
  14. package/dist/elements/asyncapi-operations.d.ts +7 -0
  15. package/dist/elements/asyncapi-operations.js +17 -0
  16. package/dist/elements/asyncapi-renderer.d.ts +7 -0
  17. package/dist/elements/asyncapi-renderer.js +17 -0
  18. package/dist/elements/asyncapi-servers.d.ts +7 -0
  19. package/dist/elements/asyncapi-servers.js +17 -0
  20. package/dist/elements/asyncapi.d.ts +7 -0
  21. package/dist/elements/asyncapi.js +17 -0
  22. package/dist/elements/openapi-endpoints.d.ts +7 -0
  23. package/dist/elements/openapi-endpoints.js +17 -0
  24. package/dist/elements/openapi-info.d.ts +7 -0
  25. package/dist/elements/openapi-info.js +17 -0
  26. package/dist/elements/openapi-renderer.d.ts +7 -0
  27. package/dist/elements/openapi-renderer.js +17 -0
  28. package/dist/elements/openapi-servers.d.ts +7 -0
  29. package/dist/elements/openapi-servers.js +17 -0
  30. package/dist/elements/openapi-webhooks.d.ts +7 -0
  31. package/dist/elements/openapi-webhooks.js +17 -0
  32. package/dist/elements/openapi.d.ts +7 -0
  33. package/dist/elements/openapi.js +17 -0
  34. package/dist/elements/schemas.d.ts +7 -0
  35. package/dist/elements/schemas.js +17 -0
  36. package/dist/go-CkZ9_bn0-BavTPlHs.js +151 -0
  37. package/dist/http-DKeNlJKS-CncZekYb.js +85 -0
  38. package/dist/index-227TxMRF-BYlp71U_.js +25403 -0
  39. package/dist/index-Bf4YsziL-DPjrM_Iz.js +17529 -0
  40. package/dist/index-DCDYBZcY-B5md4zhj.js +1459 -0
  41. package/dist/java-BicX26Pg-BE9j1hqd.js +240 -0
  42. package/dist/kotlin-BwB8b-YX-DrhZ7rRS.js +242 -0
  43. package/dist/objectivec-CnyrJ13Z-crbGiB8Q.js +237 -0
  44. package/dist/ocaml-T8IqWCjo-T8IqWCjo.js +67 -0
  45. package/dist/php-BL35ZHWM-BVESXHm8.js +566 -0
  46. package/dist/powershell-DuhUKWoO-BkKc-lpt.js +236 -0
  47. package/dist/protoToJsonSchema-nTI0cRt8-B1zlLwd7.js +6127 -0
  48. package/dist/protobufSchemaParser-ChAv0AAl-DDsAdtNH.js +55 -0
  49. package/dist/r-B8fCBydS-B8fCBydS.js +207 -0
  50. package/dist/registerElement-DAVqIcyy.js +25412 -0
  51. package/dist/ruby-CvOid-1s-CANQXRsZ.js +386 -0
  52. package/dist/rust-BocnJ3Ns-BBcgTcYY.js +305 -0
  53. package/dist/swift-C35Eof-I-CeYSuGtY.js +799 -0
  54. package/dist/web-component.css +1 -1
  55. package/dist/web-component.es.js +20637 -20264
  56. package/dist/web-component.iife.js +329 -326
  57. package/package.json +57 -5
  58. package/dist/adapters.d.ts +0 -25
package/README.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  Framework-agnostic web components for [apiuikit](https://www.npmjs.com/package/apiuikit) — use it from Vue, Angular, Svelte, plain HTML, or any environment that supports custom elements, with no React installation required on the consumer side.
4
4
 
5
- Two custom elements are available:
5
+ Full-document elements:
6
6
 
7
7
  | Element | When to use |
8
8
  |---|---|
9
9
  | `<apiuikit-asyncapi-renderer>` | You have a raw AsyncAPI YAML or JSON string |
10
10
  | `<apiuikit-asyncapi>` | You already have a parsed AsyncAPI document object |
11
+ | `<apiuikit-openapi-renderer>` | You have a raw OpenAPI YAML or JSON string |
12
+ | `<apiuikit-openapi>` | You already have a parsed OpenAPI document object |
13
+
14
+ Plus standalone elements for individual sections — `<apiuikit-asyncapi-servers>`, `-operations`, `-messages`, `-info`, their OpenAPI equivalents (`<apiuikit-openapi-servers>`, `-endpoints`, `-webhooks`, `-info`), and a single `<apiuikit-schemas>` shared by both spec types (`components.schemas` is the same shape either way) — for when you want just one part of a document rendered on its own. See [docs/usage/with-webcomponents.md](https://github.com/AceTheCreator/apiuikit/blob/master/docs/usage/with-webcomponents.md#section-elements) for the full prop reference.
11
15
 
12
16
  If you're building a React app, use [apiuikit](https://www.npmjs.com/package/apiuikit) directly instead of this package.
13
17
 
@@ -26,6 +30,22 @@ import "@apiuikit/web-component/style.css";
26
30
 
27
31
  No extra packages are required — React, ReactDOM, and parsing support are bundled in.
28
32
 
33
+ ### Modular imports
34
+
35
+ Only need one or two elements? Import just those instead of the full bundle:
36
+
37
+ ```js
38
+ import "@apiuikit/web-component/asyncapi-renderer"; // <apiuikit-asyncapi-renderer> only
39
+ import "@apiuikit/web-component/asyncapi"; // <apiuikit-asyncapi> only
40
+ import "@apiuikit/web-component/asyncapi-operations"; // <apiuikit-asyncapi-operations> only
41
+ import "@apiuikit/web-component/openapi-renderer"; // <apiuikit-openapi-renderer> only
42
+ import "@apiuikit/web-component/openapi"; // <apiuikit-openapi> only
43
+ import "@apiuikit/web-component/openapi-endpoints"; // <apiuikit-openapi-endpoints> only
44
+ import "@apiuikit/web-component/style.css";
45
+ ```
46
+
47
+ (Every full-document and section element has a matching subpath — see the docs link above for the complete list.)
48
+
29
49
  ## Quick start
30
50
 
31
51
  ```html