Changeset 0.37.9 (#221)
This commit is contained in:
@@ -127,8 +127,19 @@ export async function boot() {
|
||||
});
|
||||
};
|
||||
|
||||
// NotesPane render helper — surfaces call sw.notesPane(container, opts)
|
||||
// Returns Promise<imperative handle>.
|
||||
sw.notesPane = function (container, opts = {}) {
|
||||
return import('../components/notes-pane/index.js').then(({ NotesPane }) => {
|
||||
const handleRef = { current: null };
|
||||
const { render } = preact;
|
||||
render(html`<${NotesPane} handleRef=${handleRef} ...${opts} />`, container);
|
||||
return handleRef.current;
|
||||
});
|
||||
};
|
||||
|
||||
// Marker for idempotency
|
||||
sw._sdk = '0.37.8';
|
||||
sw._sdk = '0.37.9';
|
||||
|
||||
// 8. Expose globally
|
||||
window.sw = sw;
|
||||
@@ -150,7 +161,7 @@ export async function boot() {
|
||||
// 10. Signal ready
|
||||
events.emit('sdk.ready', {}, { localOnly: true });
|
||||
document.dispatchEvent(new CustomEvent('sw:ready', { detail: { sw } }));
|
||||
console.log('[sw] SDK v0.37.8 ready');
|
||||
console.log('[sw] SDK v0.37.9 ready');
|
||||
|
||||
return sw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user