File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
packages/components/src/stories-json Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,15 @@ const config: StorybookConfig = {
2121 return mergeConfig ( config , {
2222 resolve : {
2323 alias : {
24+ // Alias for .storybook directory to allow imports from stories
25+ '@storybook-config' : path . resolve ( __dirname , '.' ) ,
2426 // Alias components package to source to avoid circular dependency during build
2527 '@object-ui/core' : path . resolve ( __dirname , '../packages/core/src/index.ts' ) ,
2628 '@object-ui/react' : path . resolve ( __dirname , '../packages/react/src/index.ts' ) ,
2729 '@object-ui/components' : path . resolve ( __dirname , '../packages/components/src/index.ts' ) ,
2830 '@object-ui/fields' : path . resolve ( __dirname , '../packages/fields/src/index.tsx' ) ,
2931 '@object-ui/layout' : path . resolve ( __dirname , '../packages/layout/src/index.ts' ) ,
32+ '@object-ui/data-objectstack' : path . resolve ( __dirname , '../packages/data-objectstack/src/index.ts' ) ,
3033 // Alias example packages for Storybook to resolve them from workspace
3134 '@object-ui/example-crm' : path . resolve ( __dirname , '../examples/crm/src/index.ts' ) ,
3235 // Alias plugin packages for Storybook to resolve them from workspace
Original file line number Diff line number Diff line change 11import type { Meta , StoryObj } from '@storybook/react' ;
22import { SchemaRenderer , SchemaRendererProvider } from '@object-ui/react' ;
33import type { BaseSchema } from '@object-ui/types' ;
4- import { createStorybookDataSource } from '../../../. storybook/datasource' ;
4+ import { createStorybookDataSource } from '@ storybook-config /datasource' ;
55
66const meta = {
77 title : 'Views/Object Form' ,
Original file line number Diff line number Diff line change 11import type { Meta , StoryObj } from '@storybook/react' ;
22import { SchemaRenderer , SchemaRendererProvider } from '@object-ui/react' ;
33import type { BaseSchema } from '@object-ui/types' ;
4- import { createStorybookDataSource } from '../../../. storybook/datasource' ;
4+ import { createStorybookDataSource } from '@ storybook-config /datasource' ;
55
66const meta = {
77 title : 'Views/Object Grid' ,
You can’t perform that action at this time.
0 commit comments