Skip to content

Commit

Permalink
fix: folder rename to match original structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryG committed Dec 10, 2024
1 parent 8f400fa commit a322ec0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
20 changes: 2 additions & 18 deletions packages/elements-core/src/components/TableOfContents/types.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
import type { TableOfContentsItem } from '@stoplight/elements-utils';

export type TableOfContentsProps = {
tree: TableOfContentsItem[];
activeId: string;
Link: CustomLinkComponent;
maxDepthOpenByDefault?: number;
externalScrollbar?: boolean;
isInResponsiveMode?: boolean;
onLinkClick?(): void;
};

export type CustomLinkComponent = React.ComponentType<{
to: string;
className?: string;
children: React.ReactNode;
}>;

export type {
CustomLinkComponent,
TableOfContentsDivider,
TableOfContentsExternalLink,
TableOfContentsGroup,
TableOfContentsGroupItem,
TableOfContentsItem,
TableOfContentsNode,
TableOfContentsNodeGroup,
TableOfContentsProps,
} from '@stoplight/elements-utils';
4 changes: 3 additions & 1 deletion packages/elements-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ export * from './elements/utils/oas';
export type { OperationNode, SchemaNode, ServiceChildNode, ServiceNode, WebhookNode } from './elements/utils/oas/types';
export * from './elements/utils/oas/types';
export type {
CustomLinkComponent,
TableOfContentsDivider,
TableOfContentsExternalLink,
TableOfContentsGroup,
TableOfContentsGroupItem,
TableOfContentsItem,
TableOfContentsNode,
TableOfContentsNodeGroup,
} from './elements-core/components/Docs/types';
TableOfContentsProps,
} from './elements-core/components/TableOfContents/types';
export * from './elements-core/utils/guards';
export * from './elements-core/utils/oas/security';
export * from './elements-core/utils/securitySchemes';
Expand Down

0 comments on commit a322ec0

Please sign in to comment.