@vibes.diy/vibe-runtime 14.3.331 → 14.3.332

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/mount-vibes.js CHANGED
@@ -5,7 +5,7 @@ import { vibeMountParams } from "./vibe.js";
5
5
  import { buildVibeTree } from "./vibe-tree.js";
6
6
  import { onUncaughtVibeError, setAppContainer } from "./calm-errors.js";
7
7
  import { noteAppPainted, notePaintAwaitsCommit, noteTreeCommitted, onTreeCommitted } from "./app-ready-signal.js";
8
- import { replayHeldSsrPress } from "./ssr-press-replay.js";
8
+ import { SSR_PRESS_EVENT, replayHeldSsrPress } from "./ssr-press-replay.js";
9
9
  const rootOptions = {
10
10
  onUncaughtError: onUncaughtVibeError,
11
11
  };
@@ -111,6 +111,7 @@ export function mountVibe(comps, iprops, hotSwapAttempt, hotSwapRollback) {
111
111
  replayed = true;
112
112
  liftInert();
113
113
  setTimeout(() => replayHeldSsrPress(container), 0);
114
+ container.addEventListener(SSR_PRESS_EVENT, () => replayHeldSsrPress(container));
114
115
  };
115
116
  onTreeCommitted(onCommit);
116
117
  activeRoot = hydrateRoot(container, renderElement, rootOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/vibe-runtime",
3
- "version": "14.3.331",
3
+ "version": "14.3.332",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@adviser/cement": "~0.5.37",
39
- "@vibes.diy/api-types": "14.3.331",
40
- "@vibes.diy/base": "14.3.331",
41
- "@vibes.diy/vibe-types": "14.3.331",
39
+ "@vibes.diy/api-types": "14.3.332",
40
+ "@vibes.diy/base": "14.3.332",
41
+ "@vibes.diy/vibe-types": "14.3.332",
42
42
  "arktype": "~2.2.9",
43
43
  "charwise": "~3.0.1",
44
44
  "es-module-lexer": "~3.0.4",
@@ -1,4 +1,6 @@
1
1
  export declare const SSR_PRESS_ATTR = "data-vibe-ssr-press";
2
+ export declare const SSR_PRESS_MESSAGE = "vibe.evt.held-press";
3
+ export declare const SSR_PRESS_EVENT = "vibe-ssr-press";
2
4
  export declare const SSR_PRESS_MAX_AGE_MS = 10000;
3
5
  export interface HeldSsrPress {
4
6
  readonly clientX: number;
@@ -1,4 +1,6 @@
1
1
  export const SSR_PRESS_ATTR = "data-vibe-ssr-press";
2
+ export const SSR_PRESS_MESSAGE = "vibe.evt.held-press";
3
+ export const SSR_PRESS_EVENT = "vibe-ssr-press";
2
4
  export const SSR_PRESS_MAX_AGE_MS = 10_000;
3
5
  export function parseHeldSsrPress(raw) {
4
6
  if (raw === null)