@storybook/blocks 7.0.0-alpha.43 → 7.0.0-alpha.44

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,11 +1,9 @@
1
1
  import React, { FunctionComponent, ComponentProps, ReactNode, FC, ElementType, Context } from 'react';
2
- import { Conditional, Parameters, AnyFramework, StrictArgTypes, ProjectAnnotations, BaseAnnotations, StoryId as StoryId$1, StoryAnnotations, ComponentTitle } from '@storybook/csf';
3
- import { PropDescriptor, ModuleExports, Story as Story$2, ModuleExport } from '@storybook/store';
2
+ import { Conditional, Parameters, AnyFramework, Store_PropDescriptor, StrictArgTypes, StoryId, ProjectAnnotations, BaseAnnotations, Store_ModuleExports, Store_Story, StoryAnnotations, Store_ModuleExport, ComponentTitle } from '@storybook/types';
4
3
  import { DocsContextProps } from '@storybook/preview-web';
5
4
  export { DocsContextProps } from '@storybook/preview-web';
6
5
  import { SyntaxHighlighter, ActionItem, SyntaxHighlighterFormatTypes } from '@storybook/components';
7
6
  import { Channel } from '@storybook/channels';
8
- import { StoryId } from '@storybook/api';
9
7
  import { ThemeVars } from '@storybook/theming';
10
8
 
11
9
  declare enum SourceError {
@@ -192,8 +190,8 @@ declare type DocsStoryProps = StoryData & {
192
190
  };
193
191
 
194
192
  interface BaseProps {
195
- include?: PropDescriptor;
196
- exclude?: PropDescriptor;
193
+ include?: Store_PropDescriptor;
194
+ exclude?: Store_PropDescriptor;
197
195
  sort?: SortType;
198
196
  }
199
197
  declare type OfProps = BaseProps & {
@@ -209,7 +207,7 @@ declare type StoryProps$1 = BaseProps & {
209
207
  showComponent?: boolean;
210
208
  };
211
209
  declare type ArgsTableProps = BaseProps | OfProps | ComponentsProps | StoryProps$1;
212
- declare const extractComponentArgTypes: (component: Component, context: DocsContextProps, include?: PropDescriptor, exclude?: PropDescriptor) => StrictArgTypes;
210
+ declare const extractComponentArgTypes: (component: Component, context: DocsContextProps, include?: Store_PropDescriptor, exclude?: Store_PropDescriptor) => StrictArgTypes;
213
211
  declare const getComponent: (props: ArgsTableProps, context: DocsContextProps) => Component;
214
212
  declare const StoryTable: FC<StoryProps$1 & {
215
213
  component: Component;
@@ -321,7 +319,7 @@ interface HeadingProps {
321
319
  declare const Heading: FC<HeadingProps>;
322
320
 
323
321
  declare type MetaProps = BaseAnnotations & {
324
- of?: ModuleExports;
322
+ of?: Store_ModuleExports;
325
323
  };
326
324
  /**
327
325
  * This component is used to declare component metadata in docs
@@ -334,8 +332,6 @@ interface PrimaryProps {
334
332
  }
335
333
  declare const Primary: FC<PrimaryProps>;
336
334
 
337
- declare const Props: (props: ComponentProps<typeof ArgsTable>) => JSX.Element;
338
-
339
335
  interface StoriesProps {
340
336
  title?: JSX.Element | string;
341
337
  includePrimary?: boolean;
@@ -354,16 +350,16 @@ declare type StoryDefProps = {
354
350
  };
355
351
  declare type StoryRefProps = {
356
352
  id?: string;
357
- of?: ModuleExport;
358
- meta?: ModuleExports;
353
+ of?: Store_ModuleExport;
354
+ meta?: Store_ModuleExports;
359
355
  };
360
356
  declare type StoryImportProps = {
361
357
  name: string;
362
358
  story: ElementType;
363
359
  };
364
360
  declare type StoryProps = (StoryDefProps | StoryRefProps | StoryImportProps) & CommonProps;
365
- declare const getStoryId: (props: StoryProps, context: DocsContextProps) => StoryId$1;
366
- declare const getStoryProps: <TFramework extends AnyFramework>({ height, inline }: StoryProps, story: Story$2<TFramework>) => PureStoryProps;
361
+ declare const getStoryId: (props: StoryProps, context: DocsContextProps) => StoryId;
362
+ declare const getStoryProps: <TFramework extends AnyFramework>({ height, inline }: StoryProps, story: Store_Story<TFramework>) => PureStoryProps;
367
363
  declare const Story: FC<StoryProps>;
368
364
 
369
365
  declare const Subheading: FC<HeadingProps>;
@@ -442,7 +438,6 @@ declare type Options = OptionsArray | OptionsObject;
442
438
  declare type OptionsControlType = 'radio' | 'inline-radio' | 'check' | 'inline-check' | 'select' | 'multi-select';
443
439
  interface OptionsConfig {
444
440
  labels: Record<any, string>;
445
- options: Options;
446
441
  type: OptionsControlType;
447
442
  }
448
443
  interface NormalizedOptionsConfig {
@@ -496,4 +491,4 @@ declare type ColorProps = ColorControlProps;
496
491
  declare const LazyColorControl: React.LazyExoticComponent<React.FC<ColorControlProps>>;
497
492
  declare const ColorControl: (props: ComponentProps<typeof LazyColorControl>) => JSX.Element;
498
493
 
499
- export { AddContext, Anchor, AnchorMdx, AnchorProps, ArgsTable, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Canvas, CodeOrSourceMdx, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Component, ComponentsTable, Control, ControlProps, ControlType, Controls, DateConfig, DateControl, DateProps, DateValue, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContainerProps, DocsContext, DocsPage, DocsProps, DocsStory, DocsStoryProps, ExternalDocs, ExternalDocsContainer, ExternalDocsProps, FilesControl, FilesControlProps, HeaderMdx, HeadersMdx, Heading, HeadingProps, IconGallery, IconItem, Meta, NoControlsWarning, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, PRIMARY_STORY, PresetColor, Primary, Props, ArgsTable$1 as PureArgsTable, RangeConfig, RangeControl, SortType, Source, SourceContainer, SourceContext, SourceContextProps, SourceItem, SourceState, Stories, Story, StoryData, StoryProps, StorySources, StoryTable, Subheading, Subtitle, TextConfig, TextControl, TextProps, TextValue, Title, Typeset, Wrapper, anchorBlockIdFromId, assertIsFn, extractComponentArgTypes, extractTitle, format, formatDate, formatTime, getComponent, getDescriptionProps, getSourceProps, getStoryId, getStoryProps, parse, parseDate, parseTime, storyBlockIdFromId };
494
+ export { AddContext, Anchor, AnchorMdx, AnchorProps, ArgsTable, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Canvas, CodeOrSourceMdx, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Component, ComponentsTable, Control, ControlProps, ControlType, Controls, DateConfig, DateControl, DateProps, DateValue, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContainerProps, DocsContext, DocsPage, DocsProps, DocsStory, DocsStoryProps, ExternalDocs, ExternalDocsContainer, ExternalDocsProps, FilesControl, FilesControlProps, HeaderMdx, HeadersMdx, Heading, HeadingProps, IconGallery, IconItem, Meta, NoControlsWarning, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, PRIMARY_STORY, PresetColor, Primary, ArgsTable$1 as PureArgsTable, RangeConfig, RangeControl, SortType, Source, SourceContainer, SourceContext, SourceContextProps, SourceItem, SourceState, Stories, Story, StoryData, StoryProps, StorySources, StoryTable, Subheading, Subtitle, TextConfig, TextControl, TextProps, TextValue, Title, Typeset, Wrapper, anchorBlockIdFromId, assertIsFn, extractComponentArgTypes, extractTitle, format, formatDate, formatTime, getComponent, getDescriptionProps, getSourceProps, getStoryId, getStoryProps, parse, parseDate, parseTime, storyBlockIdFromId };