@storybook/blocks 7.6.0-beta.2 → 8.0.0-alpha.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Conditional, DocsContextProps, PreparedStory, ModuleExports, ModuleExport, Parameters as Parameters$1, StrictArgTypes, Renderer as Renderer$1, Args as Args$1, StoryId, StoryContextForLoaders, StoryAnnotations, ResolvedModuleExportType, ResolvedModuleExportFromType, ProjectAnnotations, BaseAnnotations, ComponentTitle } from '@storybook/types';
2
2
  export { DocsContextProps } from '@storybook/types';
3
- import React, { ComponentProps, FunctionComponent, ReactNode, FC, PropsWithChildren, Context } from 'react';
3
+ import React, { ComponentProps, FunctionComponent, ReactNode, FC, PropsWithChildren, Context, ReactElement } from 'react';
4
4
  import { Renderer } from '@storybook/csf';
5
5
  import { PropDescriptor } from '@storybook/preview-api';
6
6
  import { SyntaxHighlighter, ActionItem, SyntaxHighlighterFormatTypes } from '@storybook/components';
@@ -518,9 +518,9 @@ type ExternalDocsProps<TRenderer extends Renderer$1 = Renderer$1> = {
518
518
  };
519
519
  declare function ExternalDocs<TRenderer extends Renderer$1 = Renderer$1>({ projectAnnotationsList, children, }: PropsWithChildren<ExternalDocsProps<TRenderer>>): React.JSX.Element;
520
520
 
521
- declare const ExternalDocsContainer: React.FC<{
521
+ declare const ExternalDocsContainer: React.FC<React.PropsWithChildren<{
522
522
  projectAnnotations: any;
523
- }>;
523
+ }>>;
524
524
 
525
525
  interface HeadingProps {
526
526
  disableAnchor?: boolean;
@@ -553,7 +553,7 @@ interface PrimaryProps {
553
553
  declare const Primary: FC<PrimaryProps>;
554
554
 
555
555
  interface StoriesProps {
556
- title?: JSX.Element | string;
556
+ title?: ReactElement | string;
557
557
  includePrimary?: boolean;
558
558
  }
559
559
  declare const Stories: FC<StoriesProps>;
@@ -576,11 +576,11 @@ declare const Unstyled: React.FC<React.DetailedHTMLProps<React.HTMLAttributes<HT
576
576
  declare const Wrapper: FC<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
577
577
 
578
578
  declare const assertIsFn: (val: any) => any;
579
- declare const AddContext: FC<DocsContextProps>;
579
+ declare const AddContext: FC<PropsWithChildren<DocsContextProps>>;
580
580
  interface CodeOrSourceMdxProps {
581
581
  className?: string;
582
582
  }
583
- declare const CodeOrSourceMdx: FC<CodeOrSourceMdxProps>;
583
+ declare const CodeOrSourceMdx: FC<PropsWithChildren<CodeOrSourceMdxProps>>;
584
584
  interface AnchorMdxProps {
585
585
  href: string;
586
586
  target: string;