@vibes.diy/vibe-runtime 14.3.331 → 14.3.333
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 +2 -1
- package/package.json +4 -4
- package/ssr-press-replay.d.ts +2 -0
- package/ssr-press-replay.js +2 -0
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.
|
|
3
|
+
"version": "14.3.333",
|
|
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.
|
|
40
|
-
"@vibes.diy/base": "14.3.
|
|
41
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
39
|
+
"@vibes.diy/api-types": "14.3.333",
|
|
40
|
+
"@vibes.diy/base": "14.3.333",
|
|
41
|
+
"@vibes.diy/vibe-types": "14.3.333",
|
|
42
42
|
"arktype": "~2.2.9",
|
|
43
43
|
"charwise": "~3.0.1",
|
|
44
44
|
"es-module-lexer": "~3.0.4",
|
package/ssr-press-replay.d.ts
CHANGED
|
@@ -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;
|
package/ssr-press-replay.js
CHANGED
|
@@ -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)
|