UNPKG

@stories-js/core

Version:

Stories web components to build stories

5 lines 812 B
/*! * (C) StoriesJS https://storiesjs.org - GPL-2.0 License */ import{r as o,h as s,c as t,g as n}from"./p-dea5a230.js";import{a as r}from"./p-8734f9a2.js";import{m as e}from"./p-e9f23957.js";import"./p-1e8c2016.js";const a="CONTROL_EVENT";const c=":host{display:block}";const i=class{constructor(s){o(this,s);this.controls=[];this.onControl=o=>{console.log("onControl.event",o)}}title(){return"Controls"}async storyContextChanged(o,s){console.log("AddonControls.storyContextChanged",o,s)}async componentDidLoad(){r.registerAddon(this);e.on(a,this.onControl)}async disconnectedCallback(){e.off(a,this.onControl);r.unregisterAddon(this)}render(){return s(t,null,s("div",null,"Addon Controls"))}get el(){return n(this)}};i.style=c;export{i as stories_addon_controls}; //# sourceMappingURL=p-42195fa5.entry.js.map