@stoplight/elements-core 8.3.2 → 8.3.4
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/components/Docs/HttpOperation/Request.d.ts +1 -0
- package/components/TableOfContents/constants.d.ts +15 -27
- package/components/TryIt/Parameters/parameter-utils.d.ts +2 -1
- package/components/TryIt/Parameters/useOperationParameters.d.ts +1 -1
- package/constants.d.ts +9 -89
- package/index.esm.js +3826 -3822
- package/index.js +3692 -3727
- package/index.mjs +3826 -3822
- package/package.json +2 -2
- package/utils/exampleGeneration/exampleGeneration.d.ts +3 -1
- package/web-components/createElementClass.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements-core",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"web-components.min.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=16"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8",
|
|
@@ -8,6 +8,8 @@ declare type Example = {
|
|
|
8
8
|
export declare type GenerateExampleFromMediaTypeContentOptions = Sampler.Options;
|
|
9
9
|
export declare const useGenerateExampleFromMediaTypeContent: (mediaTypeContent: IMediaTypeContent | undefined, chosenExampleIndex?: number, { skipReadOnly, skipWriteOnly, skipNonRequired, ticks }?: GenerateExampleFromMediaTypeContentOptions) => string;
|
|
10
10
|
export declare const generateExampleFromMediaTypeContent: (mediaTypeContent: IMediaTypeContent | undefined, document: any, chosenExampleIndex?: number, options?: GenerateExampleFromMediaTypeContentOptions) => string;
|
|
11
|
-
export declare const generateExamplesFromJsonSchema: (schema: JSONSchema7
|
|
11
|
+
export declare const generateExamplesFromJsonSchema: (schema: JSONSchema7 & {
|
|
12
|
+
'x-examples'?: unknown;
|
|
13
|
+
}) => Example[];
|
|
12
14
|
export declare const exceedsSize: (example: string, size?: number) => boolean;
|
|
13
15
|
export {};
|
|
@@ -13,5 +13,5 @@ declare type PropDescriptorMap<P> = {
|
|
|
13
13
|
declare type Complete<T> = {
|
|
14
14
|
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
15
15
|
};
|
|
16
|
-
export declare const createElementClass: <P
|
|
16
|
+
export declare const createElementClass: <P extends Record<string, any>>(Component: React.ComponentType<P>, propDescriptors: PropDescriptorMap<P>) => new () => HTMLElement;
|
|
17
17
|
export {};
|