foldkit 0.156.0 → 0.157.0
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/README.md +3 -3
- package/dist/asyncData/asyncData.d.ts +7 -7
- package/dist/asyncData/asyncData.d.ts.map +1 -1
- package/dist/asyncData/asyncData.js +12 -12
- package/dist/calendar/calendarDate.d.ts +15 -15
- package/dist/calendar/calendarDate.d.ts.map +1 -1
- package/dist/calendar/calendarDate.js +14 -14
- package/dist/calendar/comparison.d.ts +2 -2
- package/dist/calendar/comparison.d.ts.map +1 -1
- package/dist/calendar/comparison.js +5 -5
- package/dist/calendar/info.d.ts +2 -2
- package/dist/calendar/info.d.ts.map +1 -1
- package/dist/calendar/info.js +2 -2
- package/dist/calendar/locale.d.ts +7 -7
- package/dist/calendar/locale.d.ts.map +1 -1
- package/dist/calendar/locale.js +23 -23
- package/dist/canvas/shape.d.ts +89 -89
- package/dist/canvas/shape.d.ts.map +1 -1
- package/dist/canvas/shape.js +65 -53
- package/dist/command/index.d.ts +3 -3
- package/dist/customElement/index.d.ts +2 -2
- package/dist/customElement/index.js +2 -2
- package/dist/devTools/protocol.d.ts +278 -278
- package/dist/devTools/protocol.d.ts.map +1 -1
- package/dist/devTools/protocol.js +98 -92
- package/dist/devTools/schemaSummarize.d.ts.map +1 -1
- package/dist/devTools/schemaSummarize.js +24 -24
- package/dist/devTools/serialize.d.ts +1 -1
- package/dist/devTools/serialize.d.ts.map +1 -1
- package/dist/devTools/serialize.js +10 -10
- package/dist/devTools/store.d.ts.map +1 -1
- package/dist/devTools/store.js +52 -28
- package/dist/devTools/submodelPath.d.ts.map +1 -1
- package/dist/devTools/submodelPath.js +3 -3
- package/dist/devTools/summarize.d.ts +6 -6
- package/dist/devTools/summarize.d.ts.map +1 -1
- package/dist/devTools/summarize.js +13 -13
- package/dist/devTools/webSocketBridge.d.ts +3 -3
- package/dist/devTools/webSocketBridge.d.ts.map +1 -1
- package/dist/devTools/webSocketBridge.js +8 -8
- package/dist/dom/dom.d.ts +2 -0
- package/dist/dom/dom.d.ts.map +1 -1
- package/dist/dom/dom.js +47 -13
- package/dist/experimental/machine/machine.d.ts +29 -6
- package/dist/experimental/machine/machine.d.ts.map +1 -1
- package/dist/experimental/machine/machine.js +9 -8
- package/dist/experimental/server/entry.js +2 -2
- package/dist/experimental/server/serialize.js +2 -2
- package/dist/experimental/server/server.js +4 -4
- package/dist/fieldValidation/fieldValidation.d.ts +12 -12
- package/dist/fieldValidation/fieldValidation.d.ts.map +1 -1
- package/dist/fieldValidation/fieldValidation.js +9 -9
- package/dist/fieldValidation/rule.d.ts +2 -2
- package/dist/fieldValidation/rule.d.ts.map +1 -1
- package/dist/fieldValidation/rule.js +6 -6
- package/dist/file/file.d.ts +3 -3
- package/dist/file/file.d.ts.map +1 -1
- package/dist/file/file.js +3 -3
- package/dist/html/boundary.d.ts +93 -36
- package/dist/html/boundary.d.ts.map +1 -1
- package/dist/html/boundary.js +242 -75
- package/dist/html/childAttribute.d.ts +6 -4
- package/dist/html/childAttribute.d.ts.map +1 -1
- package/dist/html/childAttribute.js +7 -1
- package/dist/html/index.d.ts +31 -16
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/index.js +97 -40
- package/dist/html/lazy.d.ts +6 -6
- package/dist/html/lazy.d.ts.map +1 -1
- package/dist/html/lazy.js +37 -15
- package/dist/html/public.d.ts +1 -1
- package/dist/html/public.d.ts.map +1 -1
- package/dist/html/runtimeSingleton.d.ts +27 -6
- package/dist/html/runtimeSingleton.d.ts.map +1 -1
- package/dist/html/runtimeSingleton.js +46 -29
- package/dist/html/submodel.d.ts.map +1 -1
- package/dist/html/submodel.js +28 -39
- package/dist/http/http.d.ts +1 -1
- package/dist/http/http.js +1 -1
- package/dist/managedResource/managedResource.d.ts +5 -5
- package/dist/managedResource/managedResource.js +3 -3
- package/dist/mount/index.d.ts +92 -39
- package/dist/mount/index.d.ts.map +1 -1
- package/dist/mount/index.js +28 -8
- package/dist/mount/public.d.ts +1 -1
- package/dist/mount/public.d.ts.map +1 -1
- package/dist/mount/public.js +1 -1
- package/dist/navigation/urlRequest.d.ts +9 -9
- package/dist/navigation/urlRequest.d.ts.map +1 -1
- package/dist/navigation/urlRequest.js +2 -2
- package/dist/onUnmountModule.d.ts +19 -0
- package/dist/onUnmountModule.d.ts.map +1 -0
- package/dist/onUnmountModule.js +80 -0
- package/dist/port/port.d.ts +5 -5
- package/dist/port/port.js +5 -5
- package/dist/route/parser.d.ts +2 -2
- package/dist/route/parser.js +2 -2
- package/dist/runtime/hmrProtocol.d.ts +10 -10
- package/dist/runtime/hmrProtocol.d.ts.map +1 -1
- package/dist/runtime/hmrProtocol.js +10 -10
- package/dist/runtime/runtime.d.ts +4 -4
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +168 -51
- package/dist/schema/index.d.ts +41 -29
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +9 -9
- package/dist/snabbdom/init.d.ts +1 -1
- package/dist/snabbdom/init.d.ts.map +1 -1
- package/dist/snabbdom/init.js +5 -1
- package/dist/snabbdom/vnode.d.ts +1 -0
- package/dist/snabbdom/vnode.d.ts.map +1 -1
- package/dist/snabbdom/vnode.js +1 -0
- package/dist/subscription/animationFrame.d.ts +3 -3
- package/dist/subscription/animationFrame.d.ts.map +1 -1
- package/dist/subscription/animationFrame.js +2 -2
- package/dist/subscription/fromEvent.d.ts +2 -2
- package/dist/subscription/fromEvent.js +2 -2
- package/dist/subscription/subscription.d.ts +3 -3
- package/dist/subscription/subscription.js +1 -1
- package/dist/test/apps/bubbling.d.ts +6 -6
- package/dist/test/apps/bubbling.d.ts.map +1 -1
- package/dist/test/apps/bubbling.js +6 -6
- package/dist/test/apps/colorPicker.d.ts +7 -7
- package/dist/test/apps/colorPicker.d.ts.map +1 -1
- package/dist/test/apps/colorPicker.js +5 -5
- package/dist/test/apps/contextMenu.d.ts +5 -5
- package/dist/test/apps/contextMenu.d.ts.map +1 -1
- package/dist/test/apps/contextMenu.js +4 -4
- package/dist/test/apps/counter.d.ts +8 -8
- package/dist/test/apps/counter.d.ts.map +1 -1
- package/dist/test/apps/counter.js +8 -8
- package/dist/test/apps/crashOnRender.d.ts +18 -18
- package/dist/test/apps/crashOnRender.d.ts.map +1 -1
- package/dist/test/apps/crashOnRender.js +11 -11
- package/dist/test/apps/drafts.d.ts +9 -9
- package/dist/test/apps/drafts.d.ts.map +1 -1
- package/dist/test/apps/drafts.js +6 -6
- package/dist/test/apps/feedSocket.d.ts +6 -6
- package/dist/test/apps/feedSocket.d.ts.map +1 -1
- package/dist/test/apps/feedSocket.js +8 -8
- package/dist/test/apps/fileUpload.d.ts +2 -2
- package/dist/test/apps/fileUpload.d.ts.map +1 -1
- package/dist/test/apps/fileUpload.js +2 -2
- package/dist/test/apps/focusBoundary.d.ts +3 -3
- package/dist/test/apps/focusBoundary.d.ts.map +1 -1
- package/dist/test/apps/focusBoundary.js +3 -3
- package/dist/test/apps/formChild.d.ts +11 -11
- package/dist/test/apps/formChild.d.ts.map +1 -1
- package/dist/test/apps/formChild.js +13 -12
- package/dist/test/apps/interactions.d.ts +8 -8
- package/dist/test/apps/interactions.d.ts.map +1 -1
- package/dist/test/apps/interactions.js +8 -8
- package/dist/test/apps/keypress.d.ts +6 -6
- package/dist/test/apps/keypress.d.ts.map +1 -1
- package/dist/test/apps/keypress.js +6 -6
- package/dist/test/apps/login.d.ts +11 -11
- package/dist/test/apps/login.d.ts.map +1 -1
- package/dist/test/apps/login.js +15 -15
- package/dist/test/apps/logoutButton.d.ts +3 -3
- package/dist/test/apps/logoutButton.d.ts.map +1 -1
- package/dist/test/apps/logoutButton.js +2 -2
- package/dist/test/apps/mountPanel.d.ts +9 -9
- package/dist/test/apps/mountPanel.d.ts.map +1 -1
- package/dist/test/apps/mountPanel.js +9 -9
- package/dist/test/apps/multiRole.d.ts +3 -3
- package/dist/test/apps/multiRole.d.ts.map +1 -1
- package/dist/test/apps/multiRole.js +2 -2
- package/dist/test/apps/pointer.d.ts +7 -7
- package/dist/test/apps/pointer.d.ts.map +1 -1
- package/dist/test/apps/pointer.js +7 -7
- package/dist/test/apps/resumeUpload.d.ts +8 -8
- package/dist/test/apps/resumeUpload.d.ts.map +1 -1
- package/dist/test/apps/resumeUpload.js +7 -7
- package/dist/test/apps/scorePanel.d.ts +3 -3
- package/dist/test/apps/scorePanel.d.ts.map +1 -1
- package/dist/test/apps/scorePanel.js +2 -2
- package/dist/test/apps/selectiveKeys.d.ts +3 -3
- package/dist/test/apps/selectiveKeys.d.ts.map +1 -1
- package/dist/test/apps/selectiveKeys.js +3 -3
- package/dist/test/apps/uploads.d.ts +18 -18
- package/dist/test/apps/uploads.d.ts.map +1 -1
- package/dist/test/apps/uploads.js +13 -13
- package/dist/test/matchers.d.ts.map +1 -1
- package/dist/test/matchers.js +4 -4
- package/dist/test/query.d.ts.map +1 -1
- package/dist/test/query.js +28 -28
- package/dist/test/scene.d.ts +37 -8
- package/dist/test/scene.d.ts.map +1 -1
- package/dist/test/scene.js +58 -15
- package/dist/test/story.d.ts +35 -8
- package/dist/test/story.d.ts.map +1 -1
- package/dist/test/story.js +44 -22
- package/dist/update/update.d.ts +17 -20
- package/dist/update/update.d.ts.map +1 -1
- package/dist/url/index.d.ts +8 -8
- package/dist/url/index.d.ts.map +1 -1
- package/dist/url/index.js +19 -19
- package/dist/vdom.d.ts +3 -2
- package/dist/vdom.d.ts.map +1 -1
- package/dist/vdom.js +16 -6
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
/** Browser → plugin: the runtime preserves its current Model under a stable id so it can be restored after a full reload. `isHmrReload` is set by the runtime when flushing on `vite:beforeFullReload` to mark the entry as eligible for restoration; absent or `false` for ordinary debounced preserves. */
|
|
3
|
-
export declare const PreserveModelMessage:
|
|
4
|
-
readonly id:
|
|
5
|
-
readonly model:
|
|
6
|
-
readonly isHmrReload:
|
|
3
|
+
export declare const PreserveModelMessage: Schema.Struct<{
|
|
4
|
+
readonly id: Schema.String;
|
|
5
|
+
readonly model: Schema.Unknown;
|
|
6
|
+
readonly isHmrReload: Schema.optional<Schema.Boolean>;
|
|
7
7
|
}>;
|
|
8
8
|
/** Browser → plugin: the runtime preserves its current Model under a stable id. */
|
|
9
9
|
export type PreserveModelMessage = typeof PreserveModelMessage.Type;
|
|
10
10
|
/** Browser → plugin: the runtime requests its previously-preserved Model on startup, scoped by id. */
|
|
11
|
-
export declare const RequestModelMessage:
|
|
12
|
-
readonly id:
|
|
11
|
+
export declare const RequestModelMessage: Schema.Struct<{
|
|
12
|
+
readonly id: Schema.String;
|
|
13
13
|
}>;
|
|
14
14
|
/** Browser → plugin: the runtime requests its previously-preserved Model on startup. */
|
|
15
15
|
export type RequestModelMessage = typeof RequestModelMessage.Type;
|
|
16
16
|
/** Plugin → browser: the plugin returns the preserved Model for a given runtime id. `model` is omitted when nothing is preserved (cold start, manual refresh). */
|
|
17
|
-
export declare const RestoreModelMessage:
|
|
18
|
-
readonly id:
|
|
19
|
-
readonly model:
|
|
17
|
+
export declare const RestoreModelMessage: Schema.Struct<{
|
|
18
|
+
readonly id: Schema.String;
|
|
19
|
+
readonly model: Schema.optional<Schema.Unknown>;
|
|
20
20
|
}>;
|
|
21
21
|
/** Plugin → browser: the plugin returns the preserved Model for a given runtime id. */
|
|
22
22
|
export type RestoreModelMessage = typeof RestoreModelMessage.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hmrProtocol.d.ts","sourceRoot":"","sources":["../../src/runtime/hmrProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hmrProtocol.d.ts","sourceRoot":"","sources":["../../src/runtime/hmrProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,6SAA6S;AAC7S,eAAO,MAAM,oBAAoB;;;;EAI/B,CAAA;AACF,mFAAmF;AACnF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAA;AAEnE,sGAAsG;AACtG,eAAO,MAAM,mBAAmB;;EAE9B,CAAA;AACF,wFAAwF;AACxF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAEjE,kKAAkK;AAClK,eAAO,MAAM,mBAAmB;;;EAG9B,CAAA;AACF,uFAAuF;AACvF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
/** Browser → plugin: the runtime preserves its current Model under a stable id so it can be restored after a full reload. `isHmrReload` is set by the runtime when flushing on `vite:beforeFullReload` to mark the entry as eligible for restoration; absent or `false` for ordinary debounced preserves. */
|
|
3
|
-
export const PreserveModelMessage =
|
|
4
|
-
id:
|
|
5
|
-
model:
|
|
6
|
-
isHmrReload:
|
|
3
|
+
export const PreserveModelMessage = Schema.Struct({
|
|
4
|
+
id: Schema.String,
|
|
5
|
+
model: Schema.Unknown,
|
|
6
|
+
isHmrReload: Schema.optional(Schema.Boolean),
|
|
7
7
|
});
|
|
8
8
|
/** Browser → plugin: the runtime requests its previously-preserved Model on startup, scoped by id. */
|
|
9
|
-
export const RequestModelMessage =
|
|
10
|
-
id:
|
|
9
|
+
export const RequestModelMessage = Schema.Struct({
|
|
10
|
+
id: Schema.String,
|
|
11
11
|
});
|
|
12
12
|
/** Plugin → browser: the plugin returns the preserved Model for a given runtime id. `model` is omitted when nothing is preserved (cold start, manual refresh). */
|
|
13
|
-
export const RestoreModelMessage =
|
|
14
|
-
id:
|
|
15
|
-
model:
|
|
13
|
+
export const RestoreModelMessage = Schema.Struct({
|
|
14
|
+
id: Schema.String,
|
|
15
|
+
model: Schema.optional(Schema.Unknown),
|
|
16
16
|
});
|
|
@@ -14,15 +14,15 @@ export type DevToolsPosition = 'BottomRight' | 'BottomLeft' | 'TopRight' | 'TopL
|
|
|
14
14
|
export type Visibility = 'Development' | 'Always';
|
|
15
15
|
/** Controls DevTools interaction mode.
|
|
16
16
|
*
|
|
17
|
-
* - `'Inspect'`: Messages stream in and clicking a row shows its state snapshot without pausing the
|
|
18
|
-
* - `'TimeTravel'`: Clicking a row
|
|
17
|
+
* - `'Inspect'`: Messages stream in and clicking a row shows its state snapshot without pausing the rendered view.
|
|
18
|
+
* - `'TimeTravel'`: Clicking a row installs a paused historical view while the live application continues. Resume to patch the latest live view.
|
|
19
19
|
*/
|
|
20
20
|
export type DevToolsMode = 'Inspect' | 'TimeTravel';
|
|
21
21
|
/** Mode value for the DevTools panel. Either a single mode used in every
|
|
22
22
|
* environment, or an object selecting different modes for development and
|
|
23
23
|
* production. Use the object form to keep `'TimeTravel'` for local debugging
|
|
24
24
|
* while shipping the safer `'Inspect'` mode to users. `'TimeTravel'` in
|
|
25
|
-
* production pauses the user's
|
|
25
|
+
* production pauses the user's rendered view when a history row is clicked. */
|
|
26
26
|
export type DevToolsModeConfig = DevToolsMode | Readonly<{
|
|
27
27
|
development: DevToolsMode;
|
|
28
28
|
production: DevToolsMode;
|
|
@@ -45,7 +45,7 @@ export type DevToolsOverlay = (store: DevToolsStore, position: DevToolsPosition,
|
|
|
45
45
|
*
|
|
46
46
|
* - `show`: `'Development'` (default) enables in dev mode only, `'Always'` enables in all environments including production.
|
|
47
47
|
* - `position`: Where the badge and panel appear. Defaults to `'BottomRight'`.
|
|
48
|
-
* - `mode`: `'TimeTravel'` (default) enables full time-travel debugging. `'Inspect'` allows browsing state snapshots without
|
|
48
|
+
* - `mode`: `'TimeTravel'` (default) enables full time-travel debugging by installing a paused historical view while the live application continues. `'Inspect'` allows browsing state snapshots without replacing the live view. Pass `{ development, production }` to use different modes per environment. Useful when DevTools is shown in production (`show: 'Always'`) and you want `'TimeTravel'` only in local development.
|
|
49
49
|
* - `banner`: Optional text shown as a banner at the top of the panel.
|
|
50
50
|
* - `excludeFromHistory`: Message `_tag` values whose dispatches should not be recorded in DevTools history. The Messages still drive `update` and the runtime as usual; they just don't appear in the history panel and don't pay the per-Message diff cost. Use for high-frequency Messages (animation frames, pointer moves, scroll events) that would flood history without adding insight.
|
|
51
51
|
* - `maxEntries`: Maximum number of recorded Messages retained in history before the oldest is evicted. Defaults to 100. Clamped to the range 20-500: smaller values keep the panel snappy under high message rates, larger values give you more scroll-back. Each retained entry stores a full Model snapshot, so memory cost scales linearly with both `maxEntries` and your Model size.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EAEP,MAAM,EACN,IAAI,EAGJ,KAAK,EAEL,MAAM,EAON,MAAM,EACN,KAAK,EAIN,MAAM,QAAQ,CAAA;AAOf,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAEL,QAAQ,EACR,IAAI,EACJ,KAAK,WAAW,EASjB,MAAM,kBAAkB,CAAA;AAMzB,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,KAAK,EAKX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,GAAG,EAA+B,MAAM,iBAAiB,CAAA;AAelE,OAAO,EAEL,KAAK,oBAAoB,EAK1B,MAAM,qBAAqB,CAAA;AAyB5B,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAC1B,aAAa,GAAG,YAAY,GAAG,UA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,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,GACpC,WAAW,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/runtime/runtime.js
CHANGED
|
@@ -3,14 +3,14 @@ import { HYDRATION_BUILD_ATTRIBUTE } from '../buildToken.js';
|
|
|
3
3
|
import { __CurrentRegistry as __CurrentInterruptRegistry, __makeRegistry as __makeInterruptRegistry, } from '../command/interruptible/index.js';
|
|
4
4
|
import { createDevToolsStore, } from '../devTools/store.js';
|
|
5
5
|
import { startWebSocketBridge } from '../devTools/webSocketBridge.js';
|
|
6
|
-
import { __beginRender as beginHtmlRender, __beginReplayRender as beginReplayHtmlRender, __clearRuntime as clearHtmlRuntime, __createBoundaryRegistry as createHtmlBoundaryRegistry, __endReplayRender as endReplayHtmlRender, __htmlBuilder as htmlBuilderFor, __setRuntime as setHtmlRuntime, textDirectionToAttribute, } from '../html/index.js';
|
|
6
|
+
import { __beginRender as beginHtmlRender, __beginReplayRender as beginReplayHtmlRender, __clearRuntime as clearHtmlRuntime, __createBoundaryRegistry as createHtmlBoundaryRegistry, __endReplayRender as endReplayHtmlRender, __flushReplayUnmountsAfterPatchFailure as flushReplayUnmountsAfterPatchFailure, __htmlBuilder as htmlBuilderFor, __setRuntime as setHtmlRuntime, textDirectionToAttribute, } from '../html/index.js';
|
|
7
7
|
import { __hydrateVNode } from '../hydrate.js';
|
|
8
8
|
import { FOLDKIT_APP_ATTRIBUTE, FOLDKIT_FLAGS_ATTRIBUTE, } from '../hydrationMarker.js';
|
|
9
|
-
import { MountTracker } from '../mount/index.js';
|
|
9
|
+
import { MountRuntime, MountTracker, liveViewStateChanges, } from '../mount/index.js';
|
|
10
10
|
import { __CurrentPortChannels, __makeInboundChannel, } from '../port/index.js';
|
|
11
11
|
import { RenderCommit, createCommitNotifier } from '../render/commit.js';
|
|
12
12
|
import { fromString as urlFromString } from '../url/index.js';
|
|
13
|
-
import { __patchVNode } from '../vdom.js';
|
|
13
|
+
import { __patchVNode, __recoverVNodeAfterPatchFailure, } from '../vdom.js';
|
|
14
14
|
import { addNavigationEventListeners } from './browserListeners.js';
|
|
15
15
|
import { defaultCrashView, noOpDispatch } from './crashUI.js';
|
|
16
16
|
import { deepFreeze } from './deepFreeze.js';
|
|
@@ -621,6 +621,11 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
621
621
|
// the same signal. A commit in one embedded application must never wake a
|
|
622
622
|
// `Render.afterCommit` awaiting inside another.
|
|
623
623
|
const commitNotifier = createCommitNotifier();
|
|
624
|
+
const settlePendingCommit = () => {
|
|
625
|
+
if (commitNotifier.service.isCommitPending()) {
|
|
626
|
+
commitNotifier.notifyCommitted();
|
|
627
|
+
}
|
|
628
|
+
};
|
|
624
629
|
return Effect.scoped(Effect.gen(function* () {
|
|
625
630
|
if (runtimeId === '') {
|
|
626
631
|
return yield* Effect.die(new Error('[foldkit] Runtime container must have an `id` for HMR model preservation. ' +
|
|
@@ -893,6 +898,11 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
893
898
|
// `commitNotifier` tracks the patch itself, so `Render.afterCommit`
|
|
894
899
|
// waits for the commit rather than for the frame that scheduled it.
|
|
895
900
|
let isRenderFrameScheduled = false;
|
|
901
|
+
// NOTE: resume clears the DevTools store's pause flag before its frame
|
|
902
|
+
// patches the live view. This distinguishes that intentional repaint
|
|
903
|
+
// from an ordinary frame that was already queued when jumpTo installed
|
|
904
|
+
// the historical view.
|
|
905
|
+
let isLiveViewRestorePending = false;
|
|
896
906
|
// NOTE: mirrors the old queue's boot behavior: a Message arriving
|
|
897
907
|
// before boot completes (for example, a navigation event during an
|
|
898
908
|
// async dev-mode boot step, or a boot-forked fiber emitting early)
|
|
@@ -939,7 +949,36 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
939
949
|
};
|
|
940
950
|
const enqueueMessageEffect = (message) => Effect.sync(() => enqueueMessage(message));
|
|
941
951
|
const initModel = maybeFreezeModel(initModelRaw);
|
|
952
|
+
const isInIframe = window.self !== window.top;
|
|
953
|
+
const resolvedDevTools = pipe(devTools ?? {}, Option.liftPredicate(config => config !== false), Option.filter(config => Match.value(config.show ?? DEFAULT_DEV_TOOLS_SHOW).pipe(Match.when('Always', () => true), Match.when('Development', () => !!import.meta.hot && !isInIframe), Match.exhaustive)), Option.map(config => ({
|
|
954
|
+
position: config.position ?? DEFAULT_DEV_TOOLS_POSITION,
|
|
955
|
+
mode: resolveDevToolsMode(config.mode ?? DEFAULT_DEV_TOOLS_MODE),
|
|
956
|
+
maybeBanner: Option.fromNullishOr(config.banner),
|
|
957
|
+
maybeOverlay: Option.fromNullishOr(registeredDevToolsOverlay),
|
|
958
|
+
})));
|
|
942
959
|
const modelPubSub = yield* PubSub.unbounded();
|
|
960
|
+
let currentViewState = 'Live';
|
|
961
|
+
const maybeViewStatePubSub = Option.isSome(resolvedDevTools)
|
|
962
|
+
? Option.some(yield* PubSub.unbounded({
|
|
963
|
+
replay: 1,
|
|
964
|
+
}))
|
|
965
|
+
: Option.none();
|
|
966
|
+
const viewStateChanges = Option.match(maybeViewStatePubSub, {
|
|
967
|
+
onNone: () => liveViewStateChanges,
|
|
968
|
+
onSome: viewStatePubSub => {
|
|
969
|
+
PubSub.publishUnsafe(viewStatePubSub, currentViewState);
|
|
970
|
+
return Stream.fromPubSub(viewStatePubSub);
|
|
971
|
+
},
|
|
972
|
+
});
|
|
973
|
+
const setViewState = (nextViewState) => {
|
|
974
|
+
if (nextViewState === currentViewState) {
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
currentViewState = nextViewState;
|
|
978
|
+
if (Option.isSome(maybeViewStatePubSub)) {
|
|
979
|
+
PubSub.publishUnsafe(maybeViewStatePubSub.value, nextViewState);
|
|
980
|
+
}
|
|
981
|
+
};
|
|
943
982
|
if (import.meta.hot) {
|
|
944
983
|
yield* Effect.addFinalizer(() => Effect.sync(() => duplicateIdScanner?.cancel()));
|
|
945
984
|
}
|
|
@@ -959,11 +998,6 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
959
998
|
// has dirtied the Model, and the init render completes behind the boot
|
|
960
999
|
// barrier, so this is always the model of a paint that happened.
|
|
961
1000
|
let lastRenderedModel = initModel;
|
|
962
|
-
// NOTE: the transition the browser is still animating, if any. Held so
|
|
963
|
-
// the runtime can skip it: when a later frame supersedes it, when the
|
|
964
|
-
// runtime crashes, and at teardown, where the browser would otherwise
|
|
965
|
-
// animate over a released container. Declared above `crashWith`, which
|
|
966
|
-
// calls the skip and can run as early as the init render.
|
|
967
1001
|
let maybePendingViewTransition = Option.none();
|
|
968
1002
|
const skipPendingViewTransition = () => {
|
|
969
1003
|
if (Option.isSome(maybePendingViewTransition)) {
|
|
@@ -971,8 +1005,9 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
971
1005
|
// NOTE: cleared first. An implementation that runs the update
|
|
972
1006
|
// callback synchronously would otherwise re-enter this.
|
|
973
1007
|
maybePendingViewTransition = Option.none();
|
|
1008
|
+
pendingViewTransition.update.isInvalidated = true;
|
|
974
1009
|
try {
|
|
975
|
-
pendingViewTransition.skipTransition();
|
|
1010
|
+
pendingViewTransition.handle.skipTransition();
|
|
976
1011
|
}
|
|
977
1012
|
catch {
|
|
978
1013
|
// NOTE: skipping runs on teardown and crash paths, so a refusal
|
|
@@ -981,6 +1016,25 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
981
1016
|
}
|
|
982
1017
|
};
|
|
983
1018
|
const vnodeSlot = { maybeCurrentVNode: Option.none() };
|
|
1019
|
+
const patchRuntimeVNode = (maybeCurrentVNode, nextVNode, seen) => {
|
|
1020
|
+
try {
|
|
1021
|
+
return __patchVNode(maybeCurrentVNode, nextVNode, container, seen, patchedVNode => {
|
|
1022
|
+
vnodeSlot.maybeCurrentVNode = Option.some(patchedVNode);
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
catch (error) {
|
|
1026
|
+
try {
|
|
1027
|
+
const maybeRecoveryVNode = vnodeSlot.maybeCurrentVNode;
|
|
1028
|
+
if (Option.isSome(maybeRecoveryVNode)) {
|
|
1029
|
+
vnodeSlot.maybeCurrentVNode = Option.some(__recoverVNodeAfterPatchFailure(maybeRecoveryVNode.value));
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
finally {
|
|
1033
|
+
flushReplayUnmountsAfterPatchFailure();
|
|
1034
|
+
}
|
|
1035
|
+
throw error;
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
984
1038
|
// NOTE: consumed by the first render only. Set when this boot found
|
|
985
1039
|
// an adoptable server-rendered root; the first patch then goes
|
|
986
1040
|
// through `__hydrateVNode` instead of replacing the container.
|
|
@@ -1033,6 +1087,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1033
1087
|
const squashed = Cause.squash(cause);
|
|
1034
1088
|
const error = squashed instanceof Error ? squashed : new Error(String(squashed));
|
|
1035
1089
|
renderCrashView({ error, model, message: maybeMessage }, crash, container, vnodeSlot, manageDocument);
|
|
1090
|
+
settlePendingCommit();
|
|
1036
1091
|
});
|
|
1037
1092
|
// NOTE: drain-local state. Kept as plain closure variables instead
|
|
1038
1093
|
// of `Ref`s because nothing else reads or writes them concurrently,
|
|
@@ -1055,6 +1110,9 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1055
1110
|
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */
|
|
1056
1111
|
enqueueMessageEffect(message);
|
|
1057
1112
|
const dispatch = { dispatchAsync, dispatchSync };
|
|
1113
|
+
const mountRuntime = MountRuntime.of({
|
|
1114
|
+
captureViewStateChanges: () => Stream.concat(Stream.make(currentViewState), viewStateChanges).pipe(Stream.changes),
|
|
1115
|
+
});
|
|
1058
1116
|
const isPausedNow = () => devToolsStore !== null &&
|
|
1059
1117
|
SubscriptionRef.getUnsafe(devToolsStore.stateRef).isPaused;
|
|
1060
1118
|
// NOTE: recording is gated on the DevTools store because the store
|
|
@@ -1255,14 +1313,13 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1255
1313
|
isProcessingMessages = false;
|
|
1256
1314
|
}
|
|
1257
1315
|
};
|
|
1258
|
-
// NOTE: `dispatchService` defaults to
|
|
1259
|
-
//
|
|
1260
|
-
// `noOpDispatch`.
|
|
1261
|
-
//
|
|
1262
|
-
//
|
|
1263
|
-
//
|
|
1264
|
-
//
|
|
1265
|
-
// the user is just inspecting past state.
|
|
1316
|
+
// NOTE: `dispatchService` defaults to live dispatch but is overridable
|
|
1317
|
+
// so a time-travel render can bind both declarative handlers and newly
|
|
1318
|
+
// acquired Mounts to `noOpDispatch`. A live Mount keeps its dispatcher
|
|
1319
|
+
// across replay, while a replay-created Mount stays muted until a live
|
|
1320
|
+
// resume patch releases it and starts the live action. This preserves
|
|
1321
|
+
// valid async results from live Mounts without granting a historical
|
|
1322
|
+
// acquisition access to the live Model.
|
|
1266
1323
|
const render = (model, message, dispatchService = dispatch, renderMode = 'Live') => Effect.gen(function* () {
|
|
1267
1324
|
isRenderingFrame = true;
|
|
1268
1325
|
const runtimeContext = yield* Effect.context();
|
|
@@ -1274,7 +1331,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1274
1331
|
const maybeLiveSlowPatch = Option.flatMap(maybeLiveRender, () => resolvedSlowPatch);
|
|
1275
1332
|
const [nextDocument, maybeViewDuration] = measureSlowPhase(maybeLiveSlowView, () => {
|
|
1276
1333
|
beginHtmlRender(boundaryRegistry);
|
|
1277
|
-
setHtmlRuntime(dispatchService.dispatchSync, runtimeContext, boundaryRegistry);
|
|
1334
|
+
setHtmlRuntime(dispatchService.dispatchSync, runtimeContext, boundaryRegistry, renderMode);
|
|
1278
1335
|
try {
|
|
1279
1336
|
return view(model, htmlBuilder);
|
|
1280
1337
|
}
|
|
@@ -1311,7 +1368,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1311
1368
|
// caller that reached here another way.
|
|
1312
1369
|
return __hydrateVNode(hydrationRoot, nextVNode, boundaryRegistry.dedupeSeen, buildId ?? '');
|
|
1313
1370
|
}
|
|
1314
|
-
return
|
|
1371
|
+
return patchRuntimeVNode(maybeCurrentVNode, nextVNode, boundaryRegistry.dedupeSeen);
|
|
1315
1372
|
}));
|
|
1316
1373
|
vnodeSlot.maybeCurrentVNode = Option.some(patchedVNode);
|
|
1317
1374
|
reportSlowPhase(maybeLiveSlowPatch, maybePatchDuration, (durationMs, thresholdMs) => ({
|
|
@@ -1331,14 +1388,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1331
1388
|
isRenderingFrame = false;
|
|
1332
1389
|
endReplayHtmlRender();
|
|
1333
1390
|
drainPendingMessages();
|
|
1334
|
-
})), Effect.provideService(Dispatch, dispatchService), Effect.provideService(MountTracker, mountTracker));
|
|
1335
|
-
const isInIframe = window.self !== window.top;
|
|
1336
|
-
const resolvedDevTools = pipe(devTools ?? {}, Option.liftPredicate(config => config !== false), Option.filter(config => Match.value(config.show ?? DEFAULT_DEV_TOOLS_SHOW).pipe(Match.when('Always', () => true), Match.when('Development', () => !!import.meta.hot && !isInIframe), Match.exhaustive)), Option.map(config => ({
|
|
1337
|
-
position: config.position ?? DEFAULT_DEV_TOOLS_POSITION,
|
|
1338
|
-
mode: resolveDevToolsMode(config.mode ?? DEFAULT_DEV_TOOLS_MODE),
|
|
1339
|
-
maybeBanner: Option.fromNullishOr(config.banner),
|
|
1340
|
-
maybeOverlay: Option.fromNullishOr(registeredDevToolsOverlay),
|
|
1341
|
-
})));
|
|
1391
|
+
})), Effect.provideService(Dispatch, dispatchService), Effect.provideService(MountTracker, mountTracker), Effect.provideService(MountRuntime, mountRuntime));
|
|
1342
1392
|
if (Option.isSome(resolvedDevTools)) {
|
|
1343
1393
|
const { position, mode, maybeBanner, maybeOverlay } = resolvedDevTools.value;
|
|
1344
1394
|
// NOTE: when excludeFromHistory is active, the runtime drops
|
|
@@ -1358,19 +1408,51 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1358
1408
|
return maybeFreezeModel(replayUpdate.model);
|
|
1359
1409
|
},
|
|
1360
1410
|
/* eslint-enable @typescript-eslint/consistent-type-assertions */
|
|
1361
|
-
// NOTE: passes `noOpDispatch` so
|
|
1362
|
-
// the replay
|
|
1363
|
-
//
|
|
1364
|
-
//
|
|
1365
|
-
//
|
|
1411
|
+
// NOTE: passes `noOpDispatch` so declarative handlers and Mounts
|
|
1412
|
+
// acquired by the replay cannot reach the live Model. Their
|
|
1413
|
+
// fibers stay alive and can observe view-state changes while the
|
|
1414
|
+
// historical view owns them. If resume reuses such an element,
|
|
1415
|
+
// OnMount releases the replay acquisition before starting the
|
|
1416
|
+
// live action. Also discards mount events fired during the render
|
|
1417
|
+
// so they don't get attributed to the next user-initiated dispatch.
|
|
1366
1418
|
render: model => Effect.gen(function* () {
|
|
1367
1419
|
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */
|
|
1368
1420
|
const replayedModel = model;
|
|
1421
|
+
const previousRenderedModel = lastRenderedModel;
|
|
1422
|
+
// NOTE: a Mount surviving from the live view must observe
|
|
1423
|
+
// Paused before the historical patch can expose different
|
|
1424
|
+
// DOM. Mounts inserted by that patch capture this state when
|
|
1425
|
+
// acquired, so asynchronous setup cannot skip Paused even if
|
|
1426
|
+
// it consumes the Stream only after the live view returns.
|
|
1427
|
+
setViewState('Paused');
|
|
1369
1428
|
// NOTE: a transition still animating belongs to the live
|
|
1370
1429
|
// state this replay is about to paint over. Left running it
|
|
1371
1430
|
// animates a dead snapshot across the replayed DOM.
|
|
1372
1431
|
skipPendingViewTransition();
|
|
1373
|
-
yield* render(replayedModel, Option.none(), noOpDispatch, 'Replay');
|
|
1432
|
+
const replayRenderExit = yield* Effect.exit(render(replayedModel, Option.none(), noOpDispatch, 'Replay'));
|
|
1433
|
+
if (Exit.isFailure(replayRenderExit)) {
|
|
1434
|
+
drainMountEvents();
|
|
1435
|
+
if (isPausedNow()) {
|
|
1436
|
+
// NOTE: the failed patch may already have changed the
|
|
1437
|
+
// DOM. Repaint the Model at the store's previous paused
|
|
1438
|
+
// index before returning the failure. If that Model no
|
|
1439
|
+
// longer renders either, resume the store so its normal
|
|
1440
|
+
// live frame becomes the single recovery path.
|
|
1441
|
+
const rollbackExit = yield* Effect.exit(render(previousRenderedModel, Option.none(), noOpDispatch, 'Replay'));
|
|
1442
|
+
drainMountEvents();
|
|
1443
|
+
if (Exit.isFailure(rollbackExit) &&
|
|
1444
|
+
devToolsStore !== null) {
|
|
1445
|
+
yield* devToolsStore.resume;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
else {
|
|
1449
|
+
// NOTE: a failed first jump leaves the store live. Keep
|
|
1450
|
+
// Mounts Paused through the recovery patch, which
|
|
1451
|
+
// publishes Live only after the live DOM is restored.
|
|
1452
|
+
yield* Effect.sync(() => scheduleRenderFrame(true));
|
|
1453
|
+
}
|
|
1454
|
+
return yield* Effect.failCause(replayRenderExit.cause);
|
|
1455
|
+
}
|
|
1374
1456
|
drainMountEvents();
|
|
1375
1457
|
// NOTE: a replay paints a past Model, so it owns the DOM on
|
|
1376
1458
|
// screen until the next live frame. Leaving
|
|
@@ -1389,7 +1471,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1389
1471
|
// NOTE: `resume` calls this after a jumpTo render attached DOM
|
|
1390
1472
|
// listeners to `noOpDispatch`. Scheduling a frame renders the
|
|
1391
1473
|
// live model with live dispatch and rebinds listeners.
|
|
1392
|
-
markRenderPending: Effect.sync(() => scheduleRenderFrame()),
|
|
1474
|
+
markRenderPending: Effect.sync(() => scheduleRenderFrame(true)),
|
|
1393
1475
|
}, {
|
|
1394
1476
|
...(devToolsKeyframeInterval !== undefined && {
|
|
1395
1477
|
keyframeInterval: devToolsKeyframeInterval,
|
|
@@ -1450,7 +1532,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1450
1532
|
// forking is captured once here; it is constant for the lifetime of
|
|
1451
1533
|
// the runtime.
|
|
1452
1534
|
const runtimeContextForCommands = yield* Effect.context();
|
|
1453
|
-
const liveRenderContext = Context.add(Context.add(runtimeContextForCommands, Dispatch, dispatch), MountTracker, mountTracker);
|
|
1535
|
+
const liveRenderContext = Context.add(Context.add(Context.add(runtimeContextForCommands, Dispatch, dispatch), MountTracker, mountTracker), MountRuntime, mountRuntime);
|
|
1454
1536
|
// NOTE: the render, Mount drain, DevTools attribution, and
|
|
1455
1537
|
// patch-time-buffer flush. Shared by the plain path (called directly)
|
|
1456
1538
|
// and the View Transition path (called from the transition's update
|
|
@@ -1466,12 +1548,22 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1466
1548
|
// it. What this frame painted is what the next transition animates
|
|
1467
1549
|
// away from.
|
|
1468
1550
|
const renderedModel = liveModel;
|
|
1551
|
+
const isResuming = currentViewState === 'Paused';
|
|
1552
|
+
if (isResuming) {
|
|
1553
|
+
// NOTE: Messages accumulated while a historical view owned the DOM
|
|
1554
|
+
// did not cause this repaint. A Message arriving during the patch
|
|
1555
|
+
// can repopulate this field when the buffered queue drains.
|
|
1556
|
+
maybeLastDirtyMessage = Option.none();
|
|
1557
|
+
}
|
|
1469
1558
|
try {
|
|
1470
1559
|
renderSyncPlain(liveModel, maybeLastDirtyMessage);
|
|
1471
1560
|
// NOTE: after the patch, so a render that threw leaves this on the
|
|
1472
1561
|
// Model still on screen, and before `drainPendingMessages` below,
|
|
1473
1562
|
// whose handlers can advance `liveModel` again.
|
|
1474
1563
|
lastRenderedModel = renderedModel;
|
|
1564
|
+
// NOTE: resume clears the store's pause flag before this frame.
|
|
1565
|
+
// Publish Live only after the live DOM has been installed.
|
|
1566
|
+
setViewState('Live');
|
|
1475
1567
|
if (devToolsStore !== null) {
|
|
1476
1568
|
const mountEvents = drainMountEvents();
|
|
1477
1569
|
Effect.runFork(devToolsStore.attachRenderedMounts(mountEvents.starts, mountEvents.ends));
|
|
@@ -1491,7 +1583,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1491
1583
|
// NOTE: last, so a waiter resumed by the commit observes the same
|
|
1492
1584
|
// DOM and the same processed-Message ordering it saw when
|
|
1493
1585
|
// `afterCommit` counted frames.
|
|
1494
|
-
|
|
1586
|
+
settlePendingCommit();
|
|
1495
1587
|
};
|
|
1496
1588
|
// NOTE: starts a View Transition around this frame's render when the
|
|
1497
1589
|
// `viewTransition` predicate matches, returning `true` when it did.
|
|
@@ -1504,6 +1596,9 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1504
1596
|
// `Option.isNone` check in `renderFramePlain` returns first, so a
|
|
1505
1597
|
// runtime without `viewTransition` allocates no per-frame callback.
|
|
1506
1598
|
const startFrameViewTransition = (resolved) => {
|
|
1599
|
+
if (currentViewState === 'Paused') {
|
|
1600
|
+
return false;
|
|
1601
|
+
}
|
|
1507
1602
|
if (resolved.reducedMotionQuery.matches) {
|
|
1508
1603
|
return false;
|
|
1509
1604
|
}
|
|
@@ -1518,23 +1613,36 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1518
1613
|
if (Option.isNone(maybeDecision)) {
|
|
1519
1614
|
return false;
|
|
1520
1615
|
}
|
|
1521
|
-
// NOTE:
|
|
1522
|
-
//
|
|
1523
|
-
// the
|
|
1616
|
+
// NOTE: invalidate an older transition before this one takes
|
|
1617
|
+
// ownership of the latest live repaint. The browser may still call
|
|
1618
|
+
// the older update callback, but its invalidation guard leaves the
|
|
1619
|
+
// DOM and commit notifier to this transition.
|
|
1524
1620
|
skipPendingViewTransition();
|
|
1525
1621
|
try {
|
|
1622
|
+
const update = {
|
|
1623
|
+
isInvalidated: false,
|
|
1624
|
+
didRun: false,
|
|
1625
|
+
};
|
|
1526
1626
|
const handle = resolved.startViewTransition(() => {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1627
|
+
if (update.isInvalidated || update.didRun) {
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
update.didRun = true;
|
|
1631
|
+
// NOTE: `currentViewState` closes the resume window after the
|
|
1632
|
+
// store is live but before its plain frame has restored the live
|
|
1633
|
+
// DOM. A transition invalidated by jumpTo stays invalid forever,
|
|
1634
|
+
// so its callback cannot repaint inside the stale transition
|
|
1635
|
+
// even if it arrives after resume has published `Live`.
|
|
1636
|
+
if (isRuntimeDisposed ||
|
|
1637
|
+
isCrashed ||
|
|
1638
|
+
isPausedNow() ||
|
|
1639
|
+
currentViewState === 'Paused') {
|
|
1640
|
+
settlePendingCommit();
|
|
1533
1641
|
return;
|
|
1534
1642
|
}
|
|
1535
1643
|
runRenderFrameBody();
|
|
1536
1644
|
}, maybeDecision.value.maybeTypes);
|
|
1537
|
-
maybePendingViewTransition = Option.some(handle);
|
|
1645
|
+
maybePendingViewTransition = Option.some({ handle, update });
|
|
1538
1646
|
__silenceViewTransitionRejections(handle);
|
|
1539
1647
|
return true;
|
|
1540
1648
|
}
|
|
@@ -1551,10 +1659,12 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1551
1659
|
// the Dom helpers that gate on it would never run their DOM work.
|
|
1552
1660
|
const renderFramePlain = () => {
|
|
1553
1661
|
isRenderFrameScheduled = false;
|
|
1662
|
+
const isRestoringLiveView = isLiveViewRestorePending;
|
|
1663
|
+
isLiveViewRestorePending = false;
|
|
1554
1664
|
// NOTE: a frame scheduled before disposal fires after it; a
|
|
1555
1665
|
// disposed runtime must not repaint the released container.
|
|
1556
1666
|
if (isRuntimeDisposed) {
|
|
1557
|
-
|
|
1667
|
+
settlePendingCommit();
|
|
1558
1668
|
return;
|
|
1559
1669
|
}
|
|
1560
1670
|
// NOTE: a frame is running, so the browser got control back; the
|
|
@@ -1565,11 +1675,15 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1565
1675
|
// next animation frame would render the live view over the
|
|
1566
1676
|
// crash view.
|
|
1567
1677
|
if (isCrashed) {
|
|
1568
|
-
|
|
1678
|
+
settlePendingCommit();
|
|
1569
1679
|
return;
|
|
1570
1680
|
}
|
|
1571
1681
|
if (isPausedNow()) {
|
|
1572
|
-
|
|
1682
|
+
settlePendingCommit();
|
|
1683
|
+
return;
|
|
1684
|
+
}
|
|
1685
|
+
if (currentViewState === 'Paused' && !isRestoringLiveView) {
|
|
1686
|
+
settlePendingCommit();
|
|
1573
1687
|
return;
|
|
1574
1688
|
}
|
|
1575
1689
|
// NOTE: the unconfigured path pays one `Option.isNone` check and
|
|
@@ -1605,7 +1719,7 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1605
1719
|
thresholdMs,
|
|
1606
1720
|
}));
|
|
1607
1721
|
const maybeCurrentVNode = vnodeSlot.maybeCurrentVNode;
|
|
1608
|
-
const [patchedVNode, maybePatchDuration] = measureSlowPhase(resolvedSlowPatch, () =>
|
|
1722
|
+
const [patchedVNode, maybePatchDuration] = measureSlowPhase(resolvedSlowPatch, () => patchRuntimeVNode(maybeCurrentVNode, nextDocument.body, boundaryRegistry.dedupeSeen));
|
|
1609
1723
|
vnodeSlot.maybeCurrentVNode = Option.some(patchedVNode);
|
|
1610
1724
|
reportSlowPhase(resolvedSlowPatch, maybePatchDuration, (durationMs, thresholdMs) => ({
|
|
1611
1725
|
_tag: 'Patch',
|
|
@@ -1621,7 +1735,10 @@ const makeRuntime = ({ ports, kind, Model, Flags: FlagsCodec, configuredFlags, i
|
|
|
1621
1735
|
duplicateIdScanner?.schedule(patchedVNode.elm);
|
|
1622
1736
|
}
|
|
1623
1737
|
};
|
|
1624
|
-
const scheduleRenderFrame = () => {
|
|
1738
|
+
const scheduleRenderFrame = (isRestoringLiveView = false) => {
|
|
1739
|
+
if (isRestoringLiveView) {
|
|
1740
|
+
isLiveViewRestorePending = true;
|
|
1741
|
+
}
|
|
1625
1742
|
if (isRenderFrameScheduled) {
|
|
1626
1743
|
return;
|
|
1627
1744
|
}
|