apiuikit 1.3.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.
- package/README.md +5 -0
- package/dist/{CodeSamples-6zm8Tjnl.js → CodeSamples-BTbc5r5x.js} +738 -782
- package/dist/CodeSamples-DnUDjxCK.cjs +50 -0
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +8 -8
- package/dist/components/AsyncCodeSample.d.ts +19 -0
- package/dist/components/Section.d.ts +13 -1
- package/dist/config/config.d.ts +10 -1
- package/dist/containers/Information/Information.d.ts +5 -1
- package/dist/containers/Information/InformationSection.d.ts +3 -1
- package/dist/containers/Information/OpenAPIInformation.d.ts +3 -1
- package/dist/containers/Messages/Messages.d.ts +3 -1
- package/dist/containers/Operation/Operations.d.ts +3 -2
- package/dist/containers/Path/Paths.d.ts +3 -2
- package/dist/containers/Schema/Schemas.d.ts +3 -1
- package/dist/containers/Server/OpenAPIServers.d.ts +3 -1
- package/dist/containers/Server/Servers.d.ts +3 -1
- package/dist/contexts/useSpec.d.ts +4 -2
- package/dist/helpers/asyncCodeSample.d.ts +35 -0
- package/dist/helpers/codeSamples.d.ts +9 -4
- package/dist/helpers/toMarkdown.d.ts +5 -5
- package/dist/hooks/useDocumentProviderValue.d.ts +2 -1
- package/dist/{index-B-1zJx9W.cjs → index-B56IGsKQ.cjs} +1 -1
- package/dist/{index-DxCSxdSs.js → index-B_FmNLVS.js} +4912 -3843
- package/dist/{index-DNLwvW38.js → index-BqoxEOEn.js} +1 -1
- package/dist/{index-CdicOrT3.js → index-C1wJpOpO.js} +1 -1
- package/dist/index-Cb-MitPO.cjs +177 -0
- package/dist/{index-BlUAYvlu.cjs → index-SjuDObn0.cjs} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/{protoToJsonSchema-CXmX3vNq.cjs → protoToJsonSchema-BE53lwwY.cjs} +1 -1
- package/dist/{protoToJsonSchema-BiGedOci.js → protoToJsonSchema-DuD3V4uf.js} +1 -1
- package/dist/{protobufSchemaParser-Bq5Fy-MT.js → protobufSchemaParser-DYXXb9bI.js} +2 -2
- package/dist/{protobufSchemaParser-CsPesPSp.cjs → protobufSchemaParser-SgDax0hE.cjs} +1 -1
- package/dist/public/openapiSections.d.ts +12 -5
- package/dist/public/sections.d.ts +12 -5
- package/package.json +2 -1
- package/dist/CodeSamples-OTh-LQZJ.cjs +0 -50
- package/dist/components/CopyMarkdownButton.d.ts +0 -15
- package/dist/index-D_7O8w46.cjs +0 -133
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface CopyMarkdownButtonProps {
|
|
2
|
-
/** Builds the Markdown string to copy. Called lazily, only on click. */
|
|
3
|
-
getMarkdown: () => string;
|
|
4
|
-
/** Used as both the button's `title` and `aria-label`. */
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Small inline icon button that copies `getMarkdown()`'s result to the
|
|
9
|
-
* clipboard, showing a transient checkmark on success. Unlike
|
|
10
|
-
* MarkdownExportMenu (a floating, viewport-pinned button with its own
|
|
11
|
-
* dropdown menu), this is meant to sit inline in normal document flow —
|
|
12
|
-
* e.g. a SidePanel header — so it has no positioning or portal logic.
|
|
13
|
-
*/
|
|
14
|
-
export default function CopyMarkdownButton({ getMarkdown, label }: CopyMarkdownButtonProps): import("react").JSX.Element;
|
|
15
|
-
export {};
|