Repository navigation
Allislet SDK v1.0.1
Allislet v1.0.1
Allislet now supports native custom sidebar views without requiring consumers to use Preact.
Highlights
- Add custom sidebar views with
sdk.addView(...). - Render views with plain HTML, CSS, and JavaScript.
- Access Allislet runtime services through the render context.
- Automatically clean up DOM nodes and event listeners when views are removed.
- Existing Preact-based views remain fully supported.
Native view example
sdk.addView({
id: "status",
label: "Status",
icon: "✓",
render({ container, storage }) {
const panel = document.createElement("section");
panel.innerHTML = `
<h2>Status</h2>
<button type="button">Save state</button>
`;
const button = panel.querySelector("button");
const onClick = () => storage.set("status:ready", true);
button.addEventListener("click", onClick);
container.append(panel);
return () => {
button.removeEventListener("click", onClick);
panel.remove();
};
},
});Compatibility
This release is backward compatible with existing Preact-based custom views and built-in sidebar functionality.
Validation
- TypeScript checks pass.
- Standalone SDK build passes.
- Native HTML/CSS/JavaScript UNPKG example included.