@stoplight/elements-core 9.0.25-beta-0.4 → 9.0.26

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.
@@ -1,5 +1,6 @@
1
1
  import { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
2
+ import * as React from 'react';
2
3
  import { DocsComponentProps } from '..';
3
4
  declare type ArticleProps = DocsComponentProps<IMarkdownViewerProps['markdown']>;
4
- export declare const Article: import("react").FunctionComponent<ArticleProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
+ export declare const Article: React.FunctionComponent<ArticleProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
6
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHttpOperationRequestBody } from '@stoplight/types';
2
3
  export interface BodyProps {
3
4
  body: IHttpOperationRequestBody;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHttpCallbackOperation } from '@stoplight/types';
2
3
  import { ExtensionAddonRenderer } from '../Docs';
3
4
  export interface CallbacksProps {
@@ -1,7 +1,8 @@
1
1
  import { IHttpEndpointOperation } from '@stoplight/types';
2
+ import * as React from 'react';
2
3
  import { DocsComponentProps } from '..';
3
4
  export declare type HttpOperationProps = DocsComponentProps<IHttpEndpointOperation>;
4
- export declare const HttpOperation: import("react").FunctionComponent<HttpOperationProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
+ export declare const HttpOperation: React.FunctionComponent<HttpOperationProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
6
  export declare function OperationHeader({ id, noHeading, hasBadges, name, isDeprecated, isInternal, hideServerUrl, method, path, }: {
6
7
  id: string;
7
8
  noHeading?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHttpOperationResponse } from '@stoplight/types';
2
3
  interface ResponsesProps {
3
4
  responses: IHttpOperationResponse[];
@@ -1,4 +1,5 @@
1
1
  import { IHttpService } from '@stoplight/types';
2
+ import * as React from 'react';
2
3
  import { DocsComponentProps } from '..';
3
4
  export declare type HttpServiceProps = DocsComponentProps<Partial<IHttpService>>;
4
- export declare const HttpService: import("react").FunctionComponent<HttpServiceProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
+ export declare const HttpService: React.FunctionComponent<HttpServiceProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -1,4 +1,5 @@
1
1
  import { JSONSchema7 } from 'json-schema';
2
+ import * as React from 'react';
2
3
  import { DocsComponentProps } from '..';
3
4
  export declare type ModelProps = DocsComponentProps<JSONSchema7>;
4
- export declare const Model: import("react").FunctionComponent<ModelProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
5
+ export declare const Model: React.FunctionComponent<ModelProps & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const DocsSkeleton: ({ className, padding }: {
2
3
  className?: string | undefined;
3
4
  padding?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExtensionAddonRenderer } from './Docs';
2
3
  export declare const renderExtensionRenderer: ExtensionAddonRenderer;
3
4
  export declare const wrapOptionsContext: (story: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LogoProps } from '../../types';
2
3
  import type { TableOfContentsItem } from '../TableOfContents';
3
4
  export declare const MobileTopNav: ({ name, logo, tree, pathname, onTocClick, }: {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Loading: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LinkProps } from '@stoplight/mosaic';
2
3
  export declare const ReactRouterMarkdownLink: ({ title, to, href: _href, children, }: Omit<LinkProps<"a">, "target" | "rel"> & {
3
4
  to?: string | undefined;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { BundledBranchNode } from '../../../types';
3
- export declare const createResolvedImageComponent: (branchNode: BundledBranchNode) => React.NamedExoticComponent<import("react").ImgHTMLAttributes<HTMLImageElement> & import("@stoplight/markdown/ast-types/hast").ImageProperties>;
3
+ export declare const createResolvedImageComponent: (branchNode: BundledBranchNode) => React.NamedExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & import("@stoplight/markdown/ast-types/hast").ImageProperties>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
2
3
  export declare const MarkdownViewer: {
3
4
  (props: IMarkdownViewerProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHttpEndpointOperation } from '@stoplight/types';
2
3
  export interface ResponseExamplesProps {
3
4
  httpOperation: IHttpEndpointOperation;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type TableOfContentsProps = {
2
3
  tree: TableOfContentsItem[];
3
4
  activeId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IServer } from '@stoplight/types';
2
3
  export declare type ServersDropdownProps = {
3
4
  servers: IServer[];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- export declare const PersistenceContextProvider: ({ initialValues, scope, children, }: import("react").PropsWithChildren<{
2
+ export declare const PersistenceContextProvider: ({ initialValues, scope, children, }: React.PropsWithChildren<{
3
3
  initialValues?: Iterable<readonly [import("jotai").Atom<unknown>, unknown]> | undefined;
4
4
  scope?: import("jotai/core/atom").Scope | undefined;
5
- }>) => import("react").FunctionComponentElement<import("react").ProviderProps<import("jotai/core/contexts").ScopeContainer>>;
5
+ }>) => React.FunctionComponentElement<React.ProviderProps<import("jotai/core/contexts").ScopeContainer>>;
6
6
  export declare function withPersistenceBoundary<T>(WrappedComponent: React.ComponentType<T>): React.FC<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements-core",
3
- "version": "9.0.25-beta-0.4",
3
+ "version": "9.0.26",
4
4
  "main": "./index.js",
5
5
  "sideEffects": [
6
6
  "web-components.min.js",