@storybook/blocks
Advanced tools
Comparing version 0.0.0-pr-30516-sha-0cd4ee4f to 0.0.0-pr-30534-sha-79a2a1e9
@@ -401,5 +401,35 @@ import { Conditional, DocsContextProps, PreparedStory, ModuleExports, Renderer as Renderer$1, Args as Args$1, StoryId, ModuleExport, ResolvedModuleExportType, ResolvedModuleExportFromType, Parameters as Parameters$1, ProjectAnnotations, BaseAnnotations, ComponentTitle } from 'storybook/internal/types'; | ||
/** | ||
* Slugger. | ||
*/ | ||
declare class BananaSlug { | ||
/** @type {Record<string, number>} */ | ||
occurrences: Record<string, number>; | ||
/** | ||
* Generate a unique slug. | ||
* | ||
* Tracks previously generated slugs: repeated calls with the same value | ||
* will result in different slugs. | ||
* Use the `slug` function to get same slugs. | ||
* | ||
* @param {string} value | ||
* String of text to slugify | ||
* @param {boolean} [maintainCase=false] | ||
* Keep the current case, otherwise make all lowercase | ||
* @return {string} | ||
* A unique slug string | ||
*/ | ||
slug(value: string, maintainCase?: boolean | undefined): string; | ||
/** | ||
* Reset - Forget all previous slugs | ||
* | ||
* @return void | ||
*/ | ||
reset(): void; | ||
} | ||
interface HeadingProps { | ||
disableAnchor?: boolean; | ||
} | ||
declare const slugs: BananaSlug; | ||
declare const Heading: FC<PropsWithChildren<HeadingProps>>; | ||
@@ -1003,2 +1033,2 @@ | ||
export { AddContext, Anchor, AnchorMdx, AnchorProps, ArgTypes, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Canvas, CodeOrSourceMdx, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Component, 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, Markdown, Meta, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Of, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, PRIMARY_STORY, PresetColor, Primary, ArgsTable as PureArgsTable, RangeConfig, RangeControl, SortType, Source, SourceContainer, SourceContext, SourceContextProps, SourceItem, SourceProps, Stories, Story, StoryProps, StorySources, Subheading, Subtitle, TextConfig, TextControl, TextProps, TextValue, Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format, formatDate, formatTime, getStoryId, getStoryProps, parse, parseDate, parseTime, useOf, useSourceProps }; | ||
export { AddContext, Anchor, AnchorMdx, AnchorProps, ArgTypes, BooleanConfig, BooleanControl, BooleanProps, BooleanValue, Canvas, CodeOrSourceMdx, ColorConfig, ColorControl, ColorItem, ColorPalette, ColorProps, ColorValue, Component, 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, Markdown, Meta, NormalizedOptionsConfig, NumberConfig, NumberControl, NumberValue, ObjectConfig, ObjectControl, ObjectProps, ObjectValue, Of, Options, OptionsArray, OptionsConfig, OptionsControl, OptionsControlType, OptionsMultiSelection, OptionsObject, OptionsProps, OptionsSelection, OptionsSingleSelection, PRIMARY_STORY, PresetColor, Primary, ArgsTable as PureArgsTable, RangeConfig, RangeControl, SortType, Source, SourceContainer, SourceContext, SourceContextProps, SourceItem, SourceParameters, SourceProps, Stories, Story, StoryProps, StorySources, Subheading, Subtitle, TextConfig, TextControl, TextProps, TextValue, Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format, formatDate, formatTime, getStoryId, getStoryProps, parse, parseDate, parseTime, slugs, useOf, useSourceProps }; |
{ | ||
"name": "@storybook/blocks", | ||
"version": "0.0.0-pr-30516-sha-0cd4ee4f", | ||
"version": "0.0.0-pr-30534-sha-79a2a1e9", | ||
"description": "Storybook Doc Blocks", | ||
@@ -50,8 +50,9 @@ "keywords": [ | ||
"devDependencies": { | ||
"@storybook/addon-actions": "0.0.0-pr-30516-sha-0cd4ee4f", | ||
"@storybook/react": "0.0.0-pr-30516-sha-0cd4ee4f", | ||
"@storybook/test": "0.0.0-pr-30516-sha-0cd4ee4f", | ||
"@storybook/addon-actions": "0.0.0-pr-30534-sha-79a2a1e9", | ||
"@storybook/react": "0.0.0-pr-30534-sha-79a2a1e9", | ||
"@storybook/test": "0.0.0-pr-30534-sha-79a2a1e9", | ||
"@types/color-convert": "^2.0.0", | ||
"color-convert": "^2.0.1", | ||
"es-toolkit": "^1.22.0", | ||
"github-slugger": "^2.0.0", | ||
"markdown-to-jsx": "^7.7.2", | ||
@@ -67,3 +68,3 @@ "memoizerific": "^1.11.3", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", | ||
"storybook": "^0.0.0-pr-30516-sha-0cd4ee4f" | ||
"storybook": "^0.0.0-pr-30534-sha-79a2a1e9" | ||
}, | ||
@@ -70,0 +71,0 @@ "peerDependenciesMeta": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
626391
3426
13