@storybook/react
Advanced tools
Comparing version 0.0.0-pr-28483-sha-c6902abe to 0.0.0-pr-28519-sha-435dfc14
@@ -1,4 +0,3 @@ | ||
import * as core_dist_docs_tools from 'core/dist/docs-tools'; | ||
import { LegacyStoryFn, DecoratorFunction, ArgTypesEnhancer } from 'storybook/internal/types'; | ||
import { extractComponentDescription } from 'storybook/internal/docs-tools'; | ||
import { ArgTypesExtractor } from 'storybook/internal/docs-tools'; | ||
import { R as ReactRenderer } from './types-a5624094.js'; | ||
@@ -14,4 +13,4 @@ import 'react'; | ||
}; | ||
extractArgTypes: core_dist_docs_tools.ArgTypesExtractor; | ||
extractComponentDescription: typeof extractComponentDescription; | ||
extractArgTypes: ArgTypesExtractor; | ||
extractComponentDescription: (component?: any) => string; | ||
}; | ||
@@ -18,0 +17,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { Args, ComponentAnnotations, AnnotatedStoryFn, ArgsStoryFn, ArgsFromMeta, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations, NamedOrDefaultProjectAnnotations, StoryAnnotationsOrFn, Store_CSFExports, StoriesWithPartialProps } from 'storybook/internal/types'; | ||
import { Args, ComponentAnnotations, AnnotatedStoryFn, ArgsStoryFn, ArgsFromMeta, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations, NamedOrDefaultProjectAnnotations, StoryAnnotationsOrFn, ComposedStoryFn, Store_CSFExports, StoriesWithPartialProps } from 'storybook/internal/types'; | ||
export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types'; | ||
@@ -6,3 +6,2 @@ import { ComponentType, ComponentProps } from 'react'; | ||
import { R as ReactRenderer } from './types-a5624094.js'; | ||
import * as core_dist_types from 'core/dist/types'; | ||
@@ -87,3 +86,3 @@ /** | ||
*/ | ||
declare function composeStory<TArgs extends Args = Args>(story: StoryAnnotationsOrFn<ReactRenderer, TArgs>, componentAnnotations: Meta<TArgs | any>, projectAnnotations?: ProjectAnnotations<ReactRenderer>, exportsName?: string): core_dist_types.ComposedStoryFn<ReactRenderer, Partial<TArgs>>; | ||
declare function composeStory<TArgs extends Args = Args>(story: StoryAnnotationsOrFn<ReactRenderer, TArgs>, componentAnnotations: Meta<TArgs | any>, projectAnnotations?: ProjectAnnotations<ReactRenderer>, exportsName?: string): ComposedStoryFn<ReactRenderer, Partial<TArgs>>; | ||
/** | ||
@@ -90,0 +89,0 @@ * Function that will receive a stories import (e.g. `import * as stories from './Button.stories'`) |
{ | ||
"name": "@storybook/react", | ||
"version": "0.0.0-pr-28483-sha-c6902abe", | ||
"version": "0.0.0-pr-28519-sha-435dfc14", | ||
"description": "Storybook React renderer", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/react-dom-shim": "0.0.0-pr-28483-sha-c6902abe", | ||
"@storybook/react-dom-shim": "0.0.0-pr-28519-sha-435dfc14", | ||
"@types/escodegen": "^0.0.6", | ||
@@ -87,4 +87,3 @@ "@types/estree": "^0.0.51", | ||
"devDependencies": { | ||
"@storybook/blocks": "0.0.0-pr-28483-sha-c6902abe", | ||
"@storybook/test": "0.0.0-pr-28483-sha-c6902abe", | ||
"@storybook/test": "0.0.0-pr-28519-sha-435dfc14", | ||
"@types/babel-plugin-react-docgen": "^4", | ||
@@ -100,3 +99,3 @@ "@types/semver": "^7.3.4", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", | ||
"storybook": "^0.0.0-pr-28483-sha-c6902abe", | ||
"storybook": "^0.0.0-pr-28519-sha-435dfc14", | ||
"typescript": ">= 4.2.x" | ||
@@ -103,0 +102,0 @@ }, |
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { expect } from '@storybook/test'; | ||
import { within, userEvent, expect } from '@storybook/test'; | ||
@@ -22,10 +22,4 @@ import { Page } from './Page'; | ||
export const LoggedIn: Story = { | ||
parameters: { | ||
test: { | ||
demoMode: true, | ||
cursorStyle: 'hand', | ||
demoModeDelay: 1800, | ||
}, | ||
}, | ||
play: async ({ canvas, userEvent }) => { | ||
play: async ({ canvasElement }) => { | ||
const canvas = within(canvasElement); | ||
const loginButton = canvas.getByRole('button', { name: /Log in/i }); | ||
@@ -32,0 +26,0 @@ await expect(loginButton).toBeInTheDocument(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
108362
1292
+ Added@storybook/react-dom-shim@0.0.0-pr-28519-sha-435dfc14(transitive)
- Removed@storybook/react-dom-shim@0.0.0-pr-28483-sha-c6902abe(transitive)
Updated@storybook/react-dom-shim@0.0.0-pr-28519-sha-435dfc14