FIX remaining issues after merging in next

This commit is contained in:
Norbert de Langen 2019-07-10 16:19:04 +02:00
parent 9571fe1572
commit da40913ba4
5 changed files with 18 additions and 6 deletions

View File

@ -46,7 +46,7 @@ export default class Preview {
constructor() {
this._addons = {};
this._decorators = [];
this._stories = new StoryStore({});
this._stories = new StoryStore({ channel: null });
this._clientApi = new ClientApi({ storyStore: this._stories });
}
@ -211,7 +211,7 @@ export default class Preview {
_selectStory(story: any) {
const channel = addons.getChannel();
this._stories.setSelection({ storyId: story.id });
this._stories.setSelection({ storyId: story.id, viewMode: 'story' }, null);
channel.emit(Events.SELECT_STORY, story);
}

View File

@ -1 +1 @@
export const version = '5.2.0-alpha.39';
export const version = '5.2.0-alpha.40';

View File

@ -1 +0,0 @@
export * from './hooks';

View File

@ -19,7 +19,7 @@ export interface StoreData {
export interface ClientApiParams {
storyStore: StoryStore;
decorateStory: (storyFn: any, decorators: any) => any;
decorateStory?: (storyFn: any, decorators: any) => any;
}
export type ClientApiReturnFn<TApi> = (...args: any[]) => StoryApi<TApi>;

View File

@ -14447,6 +14447,14 @@ global-prefix@^3.0.0:
kind-of "^6.0.2"
which "^1.3.1"
global@^3.0.1:
version "3.0.2"
resolved "https://registry.yarnpkg.com/global/-/global-3.0.2.tgz#a278d23f35acc041e4938e8982dc66e383fb1329"
integrity sha1-onjSPzWswEHkk46Jgtxm44P7Eyk=
dependencies:
min-document "^2.6.1"
process "~0.5.1"
global@^4.3.0, global@^4.3.2:
version "4.4.0"
resolved "https://registry.yarnpkg.com/global/-/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406"
@ -20303,7 +20311,7 @@ mimic-response@^1.0.0, mimic-response@^1.0.1:
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==
min-document@^2.19.0:
min-document@^2.19.0, min-document@^2.6.1:
version "2.19.0"
resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685"
integrity sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=
@ -23509,6 +23517,11 @@ process@^0.11.10, process@~0.11.0:
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
process@~0.5.1:
version "0.5.2"
resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf"
integrity sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=
progress-bar-webpack-plugin@^1.12.1:
version "1.12.1"
resolved "https://registry.yarnpkg.com/progress-bar-webpack-plugin/-/progress-bar-webpack-plugin-1.12.1.tgz#bbf3b1137a4ba2474eeb111377d6c1a580c57dd1"