@askrjs/askr 0.0.56 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/benchmark.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { r as flushRuntimeScheduler } from "./access-Bg4RJNC8.js";
2
- import { t as installRendererBridge } from "./renderer-CJFgcaun.js";
2
+ import { t as installRendererBridge } from "./renderer-CCvnNMna.js";
3
3
  import { t as state } from "./state-DPl8lffD.js";
4
4
  import { t as selector } from "./selector-DafVYzV4.js";
5
5
  import { jsx, jsxs } from "./jsx-runtime.js";
6
6
  import { i as For } from "./control-BJmonrpE.js";
7
- import { t as createIsland } from "./boot-ylKadz_Y.js";
7
+ import { t as createIsland } from "./boot-BaFSlNg6.js";
8
8
  //#region src/bench/components/benchmark-row.tsx
9
9
  function BenchmarkRow({ item, isSelected, onSelect, onRemove }) {
10
10
  return /* @__PURE__ */ jsxs("tr", {
@@ -63,8 +63,8 @@ function BenchmarkTable({ rows, isSelected, onSelect, onRemove }) {
63
63
  installRendererBridge();
64
64
  const benchmarkMetadata = {
65
65
  packageName: "@askrjs/askr",
66
- packageVersion: "0.0.56",
67
- buildLabel: "0.0.56-local"
66
+ packageVersion: "0.0.57",
67
+ buildLabel: "0.0.57-local"
68
68
  };
69
69
  function getBenchmarkMetadata() {
70
70
  return { ...benchmarkMetadata };
@@ -1,2 +1,2 @@
1
- import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-ylKadz_Y.js";
1
+ import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-BaFSlNg6.js";
2
2
  export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
@@ -2,7 +2,7 @@ import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger,
2
2
  import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
3
3
  import { n as createComponentInstance, r as executeComponent } from "./component-internal-NdN_bJ2-.js";
4
4
  import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-C7lnU9Bt.js";
5
- import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-CJFgcaun.js";
5
+ import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-CCvnNMna.js";
6
6
  import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-DScKZG2i.js";
7
7
  import { D as assertExecutionModel, E as route, a as resolveRouteMeta, b as createAppRenderRuntime, c as registerAppInstance, d as clearRoutes, g as _snapshotRouteSourceLazy, h as _snapshotLazy, i as reconcileRouteMeta, l as unregisterAppInstance, m as _drainLazy, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest, y as setServerLocation } from "./navigate-Nh4ibPyt.js";
8
8
  import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { n as Fragment } from "./jsx-CUpRxrLH.js";
4
4
  import { h as readScope, u as defineScope } from "./component-internal-NdN_bJ2-.js";
5
5
  import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-CJFgcaun.js";
7
+ import { t as installRendererBridge } from "./renderer-CCvnNMna.js";
8
8
  import { t as state } from "./state-DPl8lffD.js";
9
9
  import { t as selector } from "./selector-DafVYzV4.js";
10
10
  import { jsx, jsxs } from "./jsx-runtime.js";
@@ -2596,7 +2596,9 @@ function updateMixedControlChildren(parent, children, forceUpdate) {
2596
2596
  const controlState = getControlBoundaryState(child);
2597
2597
  if (!controlState) throw new Error("[updateElementChildren] Control boundary missing internal state");
2598
2598
  registerControlBoundaryCommitOwner(parent, controlState);
2599
- const ranges = syncControlBoundaryInMixedParent(parent, controlState, evaluateControlBoundaryState(controlState), cursor);
2599
+ const childVNodes = evaluateControlBoundaryState(controlState);
2600
+ const cursorAfterBoundary = cursor ? isRangeStart(cursor) ? findRangeEnd(cursor)?.nextSibling ?? cursor.nextSibling : cursor.nextSibling : null;
2601
+ const ranges = syncControlBoundaryInMixedParent(parent, controlState, childVNodes, cursor);
2600
2602
  for (const range of ranges) if (range.start.parentNode !== parent) moveRange(parent, range, cursor?.parentNode === parent ? cursor : null);
2601
2603
  else if (cursor?.parentNode === parent) moveRange(parent, range, cursor);
2602
2604
  const last = ranges[ranges.length - 1];
@@ -2606,7 +2608,7 @@ function updateMixedControlChildren(parent, children, forceUpdate) {
2606
2608
  else if (cursorWasReplaced && isRangeStart(cursor)) cursor = findRangeEnd(cursor)?.nextSibling ?? last.end.nextSibling;
2607
2609
  else if (isRangeStart(cursor)) cursor = findRangeEnd(cursor)?.nextSibling ?? last.end.nextSibling;
2608
2610
  else cursor = last.end.nextSibling;
2609
- }
2611
+ } else if (cursor?.parentNode !== parent) cursor = cursorAfterBoundary?.parentNode === parent ? cursorAfterBoundary : null;
2610
2612
  continue;
2611
2613
  }
2612
2614
  if (cursor) cursor = removeRangeAtCursor(parent, cursor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askrjs/askr",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "Actor-backed deterministic UI framework",
5
5
  "keywords": [
6
6
  "askr",