-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of experimental channel for essential addons
- Loading branch information
1 parent
e36a1c0
commit 9264728
Showing
5 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import type { Options } from '@storybook/types'; | ||
import type { Channel } from '@storybook/channels'; | ||
import { initFileSearchChannel } from './server-channel/file-search-channel'; | ||
import { initCreateNewStoryChannel } from './server-channel/create-new-story-channel'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
export const experimental_serverChannel = async (channel: Channel, options: Options) => { | ||
initCreateNewStoryChannel(channel, options); | ||
initFileSearchChannel(channel, options); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/preset'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// @ts-expect-error no types | ||
import { experimental_serverChannel as experimentalServerChannelControls } from '@storybook/addon-controls/dist/preset'; | ||
|
||
import type { Channel } from '@storybook/channels'; | ||
import type { Options } from '@storybook/types'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
export const experimental_serverChannel = async (channel: Channel, options: Options) => { | ||
experimentalServerChannelControls(channel, options); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters