@stories-js/core
Version:
Stories web components to build stories
5 lines • 1.33 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
System.register(["./p-fbcb0011.system.js","./p-73ad0c01.system.js","./p-3d5a0b0e.system.js"],(function(t){"use strict";var e,s,o,n,r;return{setters:[function(t){e=t.r;s=t.i;o=t.h},function(t){n=t.a},function(t){r=t.s}],execute:function(){var i=":host{height:100%;width:100%;background-color:coral}";var a=t("stories_app",function(){function t(t){e(this,t);this.storyChange=s(this,"storyChange",7);this.storyContextChange=s(this,"storyContextChange",7);this.modules=[];this.store=r}t.prototype.createContext=function(t){var e={args:Object.assign({},t.args),argTypes:Object.assign({},t.argTypes),parameters:Object.assign({},t.parameters),initialArgs:Object.assign({},t.args)};return e};t.prototype.onHash=function(){var t=n.getStoryIdFromURL();var e=r.story=t?r.stories[t]:undefined;console.log("onHash",t,e);n.selectStory(t);this.storyChange.emit(e);console.log("storyChange emit",e);var s=e?this.createContext(e):undefined;r.context=s;this.storyContextChange.emit(s);console.log("storyContextChange emit",e)};t.prototype.componentDidLoad=function(){console.log("componentDidLoad",this.modules);n.setStories(this.modules);this.onHash()};t.prototype.render=function(){return o("slot",null)};return t}());a.style=i}}}));
//# sourceMappingURL=p-194c07b9.system.entry.js.map