@gitbook/react-openapi 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gitbook/react-openapi
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bd0ca5b: Fix missing react imports
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -1,12 +1,5 @@
1
1
  # `@gitbook/react-openapi`
2
2
 
3
- React components to render OpenAPI operations.
3
+ Style-less React components to render OpenAPI operation blocks.
4
4
 
5
- ## Features
6
-
7
- - Generate code samples for the request
8
- - Support custom cde samples with `x-codeSamples` (Redocly syntax)
9
-
10
- ## TODO
11
-
12
- - Support for trying out the request
5
+ Note: The package is a TypeScript package and do not expose JS built files.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitbook/react-openapi",
3
3
  "exports": "./src/index.ts",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "dependencies": {
6
6
  "@scalar/api-client-react": "^0.3.7",
7
7
  "@scalar/oas-utils": "0.1.6",
package/src/Markdown.tsx CHANGED
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import classNames from 'classnames';
2
3
 
3
4
  export function Markdown(props: { source: string; className?: string }) {
@@ -1,4 +1,4 @@
1
- import { OpenAPIV3 } from 'openapi-types';
1
+ import * as React from 'react';
2
2
 
3
3
  import { CodeSampleInput, codeSampleGenerators } from './code-samples';
4
4
  import { OpenAPIOperationData, toJSON } from './fetchOpenAPIOperation';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import classNames from 'classnames';
2
3
 
3
4
  import { OpenAPIOperationData, toJSON } from './fetchOpenAPIOperation';
@@ -1,3 +1,5 @@
1
+ import * as React from 'react';
2
+
1
3
  import { OpenAPIV3 } from 'openapi-types';
2
4
  import { OpenAPIRootSchema } from './OpenAPISchema';
3
5
  import { noReference } from './utils';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import classNames from 'classnames';
2
3
  import { OpenAPIV3 } from 'openapi-types';
3
4
  import { OpenAPIRootSchema, OpenAPISchemaProperties } from './OpenAPISchema';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { InteractiveSection } from './InteractiveSection';
2
3
  import { OpenAPIOperationData } from './fetchOpenAPIOperation';
3
4
  import { generateSchemaExample } from './generateSchemaExample';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import classNames from 'classnames';
2
3
  import { OpenAPIV3 } from 'openapi-types';
3
4
  import { noReference } from './utils';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { OpenAPIV3 } from 'openapi-types';
2
3
  import { OpenAPIClientContext } from './types';
3
4
  import { InteractiveSection } from './InteractiveSection';
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { OpenAPIV3 } from 'openapi-types';
2
3
  import { OpenAPIServerURLVariable } from './OpenAPIServerURLVariable';
3
4
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import * as React from 'react';
3
4
  import classNames from 'classnames';
4
5
  import { OpenAPIV3 } from 'openapi-types';
5
- import React from 'react';
6
6
 
7
7
  /**
8
8
  * Interactive component to show the value of a server variable and let the user change it.
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import * as React from 'react';
3
4
  import { OpenAPIV3 } from 'openapi-types';
4
5
 
5
6
  import { OpenAPIOperationData, fromJSON } from './fetchOpenAPIOperation';