SOURCE / PINNED RELEASE
Made of little things.
Black Site Map Editor
- Release
- 32a57733b7e9…
- Author-recorded commit
- 3f54890f542f…
- License
- LICENSE
- Author’s source reference
- nostr://npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr/wss%3A%2F%2Fgit.shakespeare.diy%2F/black-site-map-editor
Archive hash verified: 7a4b1abbac7db5b0…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import { LitElement } from 'lit';
import { StoreController } from '../state/store';
import { store, type EditorState } from '../state/editor-state';
/**
* Lit base for editor components. Renders into light DOM so the global stylesheet,
* element ids and test selectors keep applying; hosts are `display: contents`.
*/
export class LightElement extends LitElement {
protected createRenderRoot(): HTMLElement {
return this;
}
/** Subscribe this component to a slice of editor state. */
protected watch<T>(select: (state: EditorState) => T): StoreController<EditorState, T> {
return new StoreController(this, store, select);
}
}
