Wire island hydration into post-swap lifecycle

- orchestration.sx: post-swap calls sx-hydrate-islands for new islands
  in swapped content, plus process-emit-elements for data-sx-emit
- Regenerate sx-ref.js

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 11:17:22 +00:00
parent e15b5c9dbc
commit 4709c6bf49
2 changed files with 3 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
// =========================================================================
var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } });
var SX_VERSION = "2026-03-08T11:14:47Z";
var SX_VERSION = "2026-03-08T11:17:09Z";
function isNil(x) { return x === NIL || x === null || x === undefined; }
function isSxTruthy(x) { return x !== false && !isNil(x); }
@@ -2138,6 +2138,7 @@ return postSwap(target); });
var postSwap = function(root) { activateScripts(root);
sxProcessScripts(root);
sxHydrate(root);
sxHydrateIslands(root);
return processElements(root); };
// activate-scripts

View File

@@ -432,6 +432,7 @@
(activate-scripts root)
(sx-process-scripts root)
(sx-hydrate root)
(sx-hydrate-islands root)
(process-elements root)))