@lynx-js/react 0.121.0 → 0.121.2
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/CHANGELOG.md +34 -0
- package/package.json +5 -5
- package/runtime/lazy/element-template-import.js +73 -0
- package/runtime/lazy/import.js +4 -0
- package/runtime/lazy/target.js +23 -0
- package/runtime/lib/core/commit-context.d.ts +8 -0
- package/runtime/lib/core/commit-context.js +18 -0
- package/runtime/lib/core/commit-context.js.map +1 -0
- package/runtime/lib/{snapshot/legacy-react-runtime/index.d.ts → core/compat/legacy-react-runtime.d.ts} +4 -4
- package/runtime/lib/{snapshot/legacy-react-runtime/index.js → core/compat/legacy-react-runtime.js} +6 -6
- package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -0
- package/runtime/lib/{snapshot → core}/compat/lynxComponent.d.ts +2 -1
- package/runtime/lib/{snapshot → core}/compat/lynxComponent.js +11 -5
- package/runtime/lib/core/compat/lynxComponent.js.map +1 -0
- package/runtime/lib/core/component.d.ts +2 -0
- package/runtime/lib/core/component.js +79 -0
- package/runtime/lib/core/component.js.map +1 -0
- package/runtime/lib/core/forceRootRender.d.ts +7 -0
- package/runtime/lib/core/forceRootRender.js +40 -0
- package/runtime/lib/core/forceRootRender.js.map +1 -0
- package/runtime/lib/core/globalProps.d.ts +31 -0
- package/runtime/lib/core/globalProps.js +55 -0
- package/runtime/lib/core/globalProps.js.map +1 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/{snapshot/compat → core}/initData.d.ts +1 -1
- package/runtime/lib/{snapshot/compat → core}/initData.js +4 -5
- package/runtime/lib/core/initData.js.map +1 -0
- package/runtime/lib/{snapshot/lynx/dynamic-js.js → core/lynx/dynamic-import.js} +1 -1
- package/runtime/lib/core/lynx/dynamic-import.js.map +1 -0
- package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -0
- package/runtime/lib/core/lynx/runtime-backend.d.ts +5 -0
- package/runtime/lib/core/lynx/runtime-backend.js +20 -0
- package/runtime/lib/core/lynx/runtime-backend.js.map +1 -0
- package/runtime/lib/core/lynx-data-processors.d.ts +2 -0
- package/runtime/lib/core/lynx-data-processors.js +53 -0
- package/runtime/lib/core/lynx-data-processors.js.map +1 -0
- package/runtime/lib/core/lynx-page-data.d.ts +1 -0
- package/runtime/lib/core/lynx-page-data.js +14 -0
- package/runtime/lib/core/lynx-page-data.js.map +1 -0
- package/runtime/lib/core/lynx-update-data.d.ts +11 -0
- package/runtime/lib/core/lynx-update-data.js +21 -0
- package/runtime/lib/core/lynx-update-data.js.map +1 -0
- package/runtime/lib/core/performance.d.ts +30 -0
- package/runtime/lib/core/performance.js +145 -0
- package/runtime/lib/core/performance.js.map +1 -0
- package/runtime/lib/core/ref.d.ts +37 -0
- package/runtime/lib/core/ref.js +108 -0
- package/runtime/lib/core/ref.js.map +1 -0
- package/runtime/lib/core/reload-version.d.ts +2 -0
- package/runtime/lib/{snapshot/lifecycle/pass.js → core/reload-version.js} +4 -5
- package/runtime/lib/core/reload-version.js.map +1 -0
- package/runtime/lib/element-template/background/attr-slots.d.ts +6 -1
- package/runtime/lib/element-template/background/attr-slots.js +35 -2
- package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
- package/runtime/lib/element-template/background/commit-context.d.ts +3 -3
- package/runtime/lib/element-template/background/commit-context.js +15 -18
- package/runtime/lib/element-template/background/commit-context.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.d.ts +1 -1
- package/runtime/lib/element-template/background/commit-hook.js +68 -43
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/destroy.js +9 -6
- package/runtime/lib/element-template/background/destroy.js.map +1 -1
- package/runtime/lib/element-template/background/document.js +5 -5
- package/runtime/lib/element-template/background/document.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.d.ts +2 -3
- package/runtime/lib/element-template/background/hydrate.js +247 -74
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/hydration-listener.js +49 -22
- package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
- package/runtime/lib/element-template/background/instance.d.ts +38 -9
- package/runtime/lib/element-template/background/instance.js +292 -113
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/client/root.d.ts +7 -0
- package/runtime/lib/element-template/client/root.js +3 -6
- package/runtime/lib/element-template/client/root.js.map +1 -1
- package/runtime/lib/element-template/debug/alog.d.ts +21 -0
- package/runtime/lib/element-template/debug/alog.js +33 -0
- package/runtime/lib/element-template/debug/alog.js.map +1 -1
- package/runtime/lib/element-template/debug/elementPAPICall.js +5 -0
- package/runtime/lib/element-template/debug/elementPAPICall.js.map +1 -1
- package/runtime/lib/element-template/hydration-map.d.ts +5 -0
- package/runtime/lib/element-template/hydration-map.js +12 -0
- package/runtime/lib/element-template/hydration-map.js.map +1 -0
- package/runtime/lib/element-template/index.d.ts +25 -3
- package/runtime/lib/element-template/index.js +38 -9
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +5 -1
- package/runtime/lib/element-template/internal.js +6 -7
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/lynx/env.js +5 -48
- package/runtime/lib/element-template/lynx/env.js.map +1 -1
- package/runtime/lib/element-template/lynx/performance.d.ts +0 -21
- package/runtime/lib/element-template/lynx/performance.js +4 -121
- package/runtime/lib/element-template/lynx/performance.js.map +1 -1
- package/runtime/lib/element-template/native/index.d.ts +1 -1
- package/runtime/lib/element-template/native/index.js +28 -2
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/native/main-thread-api.js +27 -5
- package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
- package/runtime/lib/element-template/native/mts-destroy.js +2 -0
- package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
- package/runtime/lib/element-template/native/patch-listener.js +6 -2
- package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
- package/runtime/lib/element-template/native/reload-background.d.ts +1 -0
- package/runtime/lib/element-template/native/reload-background.js +39 -0
- package/runtime/lib/element-template/native/reload-background.js.map +1 -0
- package/runtime/lib/element-template/native/reload-main-thread.d.ts +1 -0
- package/runtime/lib/element-template/native/reload-main-thread.js +35 -0
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -0
- package/runtime/lib/element-template/prop-adapters/event.d.ts +1 -0
- package/runtime/lib/element-template/prop-adapters/event.js +4 -1
- package/runtime/lib/element-template/prop-adapters/event.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/ref.d.ts +26 -0
- package/runtime/lib/element-template/prop-adapters/ref.js +107 -0
- package/runtime/lib/element-template/prop-adapters/ref.js.map +1 -0
- package/runtime/lib/element-template/prop-adapters/spread.js +8 -1
- package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
- package/runtime/lib/element-template/protocol/opcodes.d.ts +4 -0
- package/runtime/lib/element-template/protocol/opcodes.js +4 -0
- package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
- package/runtime/lib/element-template/protocol/template-type.d.ts +6 -0
- package/runtime/lib/element-template/protocol/template-type.js +20 -0
- package/runtime/lib/element-template/protocol/template-type.js.map +1 -0
- package/runtime/lib/element-template/protocol/types.d.ts +74 -6
- package/runtime/lib/element-template/runtime/list/list.d.ts +65 -0
- package/runtime/lib/element-template/runtime/list/list.js +587 -0
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -0
- package/runtime/lib/element-template/runtime/page/page.d.ts +5 -2
- package/runtime/lib/element-template/runtime/page/page.js +12 -0
- package/runtime/lib/element-template/runtime/page/page.js.map +1 -1
- package/runtime/lib/element-template/runtime/patch.js +210 -38
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.d.ts +3 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +38 -7
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-opcodes.js +80 -43
- package/runtime/lib/element-template/runtime/render/render-opcodes.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js +41 -4
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.d.ts +1 -0
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js +4 -0
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.d.ts +3 -2
- package/runtime/lib/element-template/runtime/template/handle.js +5 -1
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/registry.d.ts +2 -0
- package/runtime/lib/element-template/runtime/template/registry.js +6 -1
- package/runtime/lib/element-template/runtime/template/registry.js.map +1 -1
- package/runtime/lib/element-template/runtime-backend-marker.js +6 -0
- package/runtime/lib/element-template/runtime-backend-marker.js.map +1 -0
- package/runtime/lib/index.d.ts +1 -1
- package/runtime/lib/index.js +3 -1
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/internal.d.ts +5 -4
- package/runtime/lib/internal.js +6 -5
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +3 -8
- package/runtime/lib/lynx-api.js +8 -45
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/runtime-backend-marker.js +6 -0
- package/runtime/lib/runtime-backend-marker.js.map +1 -0
- package/runtime/lib/snapshot/debug/vnodeSource.js +1 -1
- package/runtime/lib/snapshot/debug/vnodeSource.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.d.ts +0 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.js +4 -9
- package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +2 -2
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/ref/delay.d.ts +6 -13
- package/runtime/lib/snapshot/lifecycle/ref/delay.js +9 -30
- package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js +2 -2
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/list/list.js +1 -1
- package/runtime/lib/snapshot/list/list.js.map +1 -1
- package/runtime/lib/snapshot/list/listUpdateInfo.js +3 -2
- package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js +3 -9
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/lynx/env.js +5 -51
- package/runtime/lib/snapshot/lynx/env.js.map +1 -1
- package/runtime/lib/snapshot/lynx/performance.d.ts +0 -21
- package/runtime/lib/snapshot/lynx/performance.js +7 -121
- package/runtime/lib/snapshot/lynx/performance.js.map +1 -1
- package/runtime/lib/snapshot/lynx/runWithForce.js +9 -39
- package/runtime/lib/snapshot/lynx/runWithForce.js.map +1 -1
- package/runtime/lib/snapshot/lynx/tt.js +10 -30
- package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +4 -4
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/list.js +1 -1
- package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/ref.d.ts +3 -5
- package/runtime/lib/snapshot/snapshot/ref.js +16 -59
- package/runtime/lib/snapshot/snapshot/ref.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceHydrationMap.js +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceHydrationMap.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/worklet-runtime/dev.js +2 -3
- package/runtime/worklet-runtime/main.js +1 -1
- package/testing-library/dist/{rslib-runtime.js → 0~rslib-runtime.js} +14 -13
- package/testing-library/dist/env/index.js +2 -8
- package/testing-library/dist/env/vitest.js +1 -1
- package/testing-library/dist/plugins/index.js +13 -2
- package/testing-library/dist/pure.js +18 -18
- package/testing-library/dist/rstest-config.js +2 -4
- package/testing-library/dist/setupFiles/common/bootstrap.js +1 -0
- package/testing-library/dist/setupFiles/common/runtime-setup.js +1 -1
- package/testing-library/dist/setupFiles/inner/rstest.js +2 -1
- package/testing-library/dist/setupFiles/inner/vitest.js +2 -1
- package/testing-library/dist/type-entry/index.js +1 -0
- package/transform/dist/wasm.cjs +113 -40
- package/runtime/lib/element-template/hooks/react.d.ts +0 -14
- package/runtime/lib/element-template/hooks/react.js +0 -24
- package/runtime/lib/element-template/hooks/react.js.map +0 -1
- package/runtime/lib/element-template/runtime/components/slot.js +0 -11
- package/runtime/lib/element-template/runtime/components/slot.js.map +0 -1
- package/runtime/lib/snapshot/compat/initData.js.map +0 -1
- package/runtime/lib/snapshot/compat/lynxComponent.js.map +0 -1
- package/runtime/lib/snapshot/legacy-react-runtime/index.js.map +0 -1
- package/runtime/lib/snapshot/lifecycle/pass.d.ts +0 -3
- package/runtime/lib/snapshot/lifecycle/pass.js.map +0 -1
- package/runtime/lib/snapshot/lynx/component.js +0 -73
- package/runtime/lib/snapshot/lynx/component.js.map +0 -1
- package/runtime/lib/snapshot/lynx/dynamic-js.js.map +0 -1
- package/runtime/lib/snapshot/lynx/lazy-bundle.js.map +0 -1
- package/testing-library/dist/881.js +0 -1
- /package/runtime/lib/{snapshot/lynx/dynamic-js.d.ts → core/lynx/dynamic-import.d.ts} +0 -0
- /package/runtime/lib/{snapshot → core}/lynx/lazy-bundle.d.ts +0 -0
- /package/runtime/lib/{snapshot → core}/lynx/lazy-bundle.js +0 -0
- /package/runtime/lib/element-template/{runtime/components/slot.d.ts → runtime-backend-marker.d.ts} +0 -0
- /package/runtime/lib/{snapshot/lynx/component.d.ts → runtime-backend-marker.d.ts} +0 -0
- /package/testing-library/dist/{0~123.js → 0~@rstest/adapter-rsbuild.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { BackgroundElementTemplateInstance } from './instance.js';
|
|
2
2
|
import type { ElementTemplateUpdateCommitContext } from '../protocol/types.js';
|
|
3
3
|
interface ElementTemplateCommitNonPayloadState {
|
|
4
|
-
|
|
4
|
+
removedSubtreesAwaitingTeardown: BackgroundElementTemplateInstance[];
|
|
5
5
|
}
|
|
6
6
|
type ElementTemplateGlobalCommitContext = ElementTemplateUpdateCommitContext & {
|
|
7
7
|
nonPayload: ElementTemplateCommitNonPayloadState;
|
|
8
8
|
};
|
|
9
9
|
export declare const globalCommitContext: ElementTemplateGlobalCommitContext;
|
|
10
10
|
export declare function resetGlobalCommitContext(): void;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function markRemovedSubtreeForPostDispatchTeardown(root: BackgroundElementTemplateInstance): void;
|
|
12
|
+
export declare function takeRemovedSubtreesForPostDispatchTeardown(): BackgroundElementTemplateInstance[];
|
|
13
13
|
export {};
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
nonPayload: {
|
|
5
|
-
removedSubtrees: [],
|
|
6
|
-
},
|
|
1
|
+
import { globalCommitContext as coreGlobalCommitContext, resetGlobalCommitContext as resetCoreGlobalCommitContext, } from '../../core/commit-context.js';
|
|
2
|
+
const nonPayload = {
|
|
3
|
+
removedSubtreesAwaitingTeardown: [],
|
|
7
4
|
};
|
|
5
|
+
export const globalCommitContext = coreGlobalCommitContext;
|
|
6
|
+
globalCommitContext.nonPayload = nonPayload;
|
|
8
7
|
export function resetGlobalCommitContext() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
delete globalCommitContext.flowIds;
|
|
12
|
-
globalCommitContext.nonPayload.removedSubtrees = [];
|
|
8
|
+
resetCoreGlobalCommitContext();
|
|
9
|
+
nonPayload.removedSubtreesAwaitingTeardown = [];
|
|
13
10
|
}
|
|
14
|
-
export function
|
|
15
|
-
const {
|
|
16
|
-
if (!
|
|
17
|
-
|
|
11
|
+
export function markRemovedSubtreeForPostDispatchTeardown(root) {
|
|
12
|
+
const { removedSubtreesAwaitingTeardown } = globalCommitContext.nonPayload;
|
|
13
|
+
if (!removedSubtreesAwaitingTeardown.includes(root)) {
|
|
14
|
+
removedSubtreesAwaitingTeardown.push(root);
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
|
-
export function
|
|
21
|
-
const
|
|
22
|
-
globalCommitContext.nonPayload.
|
|
23
|
-
return
|
|
17
|
+
export function takeRemovedSubtreesForPostDispatchTeardown() {
|
|
18
|
+
const removedSubtreesAwaitingTeardown = globalCommitContext.nonPayload.removedSubtreesAwaitingTeardown;
|
|
19
|
+
globalCommitContext.nonPayload.removedSubtreesAwaitingTeardown = [];
|
|
20
|
+
return removedSubtreesAwaitingTeardown;
|
|
24
21
|
}
|
|
25
22
|
//# sourceMappingURL=commit-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-context.js","sourceRoot":"","sources":["../../../src/element-template/background/commit-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commit-context.js","sourceRoot":"","sources":["../../../src/element-template/background/commit-context.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,mBAAmB,IAAI,uBAAuB,EAC9C,wBAAwB,IAAI,4BAA4B,GACzD,MAAM,8BAA8B,CAAC;AActC,MAAM,UAAU,GAAyC;IACvD,+BAA+B,EAAE,EAAE;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAwE,CAAC;AAE5G,mBAAmB,CAAC,UAAU,GAAG,UAAU,CAAC;AAE5C,MAAM,UAAU,wBAAwB;IACtC,4BAA4B,EAAE,CAAC;IAC/B,UAAU,CAAC,+BAA+B,GAAG,EAAE,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yCAAyC,CACvD,IAAuC;IAEvC,MAAM,EAAE,+BAA+B,EAAE,GAAG,mBAAmB,CAAC,UAAU,CAAC;IAC3E,IAAI,CAAC,+BAA+B,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACpD,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0CAA0C;IACxD,MAAM,+BAA+B,GAAG,mBAAmB,CAAC,UAAU,CAAC,+BAA+B,CAAC;IACvG,mBAAmB,CAAC,UAAU,CAAC,+BAA+B,GAAG,EAAE,CAAC;IACpE,OAAO,+BAA+B,CAAC;AACzC,CAAC"}
|
|
@@ -2,6 +2,6 @@ import type { BackgroundElementTemplateInstance } from './instance.js';
|
|
|
2
2
|
export declare function markElementTemplateHydrated(): void;
|
|
3
3
|
export declare function isElementTemplateHydrated(): boolean;
|
|
4
4
|
export declare function resetElementTemplateCommitState(): void;
|
|
5
|
-
export declare function scheduleElementTemplateRemovedSubtreeCleanup(
|
|
5
|
+
export declare function scheduleElementTemplateRemovedSubtreeCleanup(removedSubtreesAwaitingTeardown: BackgroundElementTemplateInstance[]): void;
|
|
6
6
|
export declare function cancelElementTemplateRemovedSubtreeCleanup(): void;
|
|
7
7
|
export declare function installElementTemplateCommitHook(): void;
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
3
|
// LICENSE file in the root directory of this source tree.
|
|
4
4
|
import { options } from 'preact';
|
|
5
|
-
import { globalCommitContext, resetGlobalCommitContext,
|
|
5
|
+
import { globalCommitContext, resetGlobalCommitContext, takeRemovedSubtreesForPostDispatchTeardown, } from './commit-context.js';
|
|
6
|
+
import { globalPipelineOptions, markTiming, markTimingLegacy, setPipeline } from '../../core/performance.js';
|
|
7
|
+
import { getReloadVersion } from '../../core/reload-version.js';
|
|
6
8
|
import { COMMIT } from '../../shared/render-constants.js';
|
|
7
|
-
import { hook } from '../../utils.js';
|
|
9
|
+
import { hook, isEmptyObject } from '../../utils.js';
|
|
8
10
|
import { formatElementTemplateUpdateCommands } from '../debug/alog.js';
|
|
9
11
|
import { profileEnd, profileStart } from '../debug/profile.js';
|
|
10
|
-
import {
|
|
12
|
+
import { clearPendingRefs, flushPendingRefs, hasPendingRefs } from '../prop-adapters/ref.js';
|
|
11
13
|
import { ElementTemplateLifecycleConstant } from '../protocol/lifecycle-constant.js';
|
|
12
14
|
let installed = false;
|
|
13
15
|
let hasHydrated = false;
|
|
14
|
-
const scheduledRemovedSubtreeCleanupTimers = new Set();
|
|
16
|
+
const scheduledRemovedSubtreeCleanupTimers = /*#__PURE__*/ new Set();
|
|
15
17
|
export function markElementTemplateHydrated() {
|
|
16
18
|
hasHydrated = true;
|
|
17
19
|
}
|
|
@@ -22,14 +24,14 @@ export function resetElementTemplateCommitState() {
|
|
|
22
24
|
hasHydrated = false;
|
|
23
25
|
resetGlobalCommitContext();
|
|
24
26
|
}
|
|
25
|
-
export function scheduleElementTemplateRemovedSubtreeCleanup(
|
|
26
|
-
if (
|
|
27
|
+
export function scheduleElementTemplateRemovedSubtreeCleanup(removedSubtreesAwaitingTeardown) {
|
|
28
|
+
if (removedSubtreesAwaitingTeardown.length === 0) {
|
|
27
29
|
return;
|
|
28
30
|
}
|
|
29
31
|
const timer = setTimeout(() => {
|
|
30
32
|
scheduledRemovedSubtreeCleanupTimers.delete(timer);
|
|
31
|
-
for (const root of
|
|
32
|
-
root.
|
|
33
|
+
for (const root of removedSubtreesAwaitingTeardown) {
|
|
34
|
+
root.releaseDetachedSubtreeFromManager();
|
|
33
35
|
}
|
|
34
36
|
}, 10000);
|
|
35
37
|
scheduledRemovedSubtreeCleanupTimers.add(timer);
|
|
@@ -46,48 +48,71 @@ export function installElementTemplateCommitHook() {
|
|
|
46
48
|
}
|
|
47
49
|
installed = true;
|
|
48
50
|
hook(options, COMMIT, (originalCommit, vnode, commitQueue) => {
|
|
49
|
-
if (__BACKGROUND__ && hasHydrated &&
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
if (__PROFILE__) {
|
|
64
|
-
profileEnd();
|
|
65
|
-
}
|
|
66
|
-
if (typeof __ALOG__ !== 'undefined' && __ALOG__) {
|
|
67
|
-
console.alog?.('[ReactLynxDebug] ElementTemplate BTS -> MTS update:\n'
|
|
68
|
-
+ JSON.stringify({
|
|
69
|
-
ops: formatElementTemplateUpdateCommands(globalCommitContext.ops),
|
|
70
|
-
flushOptions: globalCommitContext.flushOptions,
|
|
71
|
-
flowIds: globalCommitContext.flowIds,
|
|
72
|
-
}, null, 2));
|
|
73
|
-
}
|
|
74
|
-
const removedSubtrees = takeRemovedSubtreesForCurrentCommit();
|
|
51
|
+
if (__BACKGROUND__ && !hasHydrated && hasPendingRefs()) {
|
|
52
|
+
// User effects can run before ET hydrate arrives, so ordinary refs must be
|
|
53
|
+
// attached on the background commit even though native UI ops are delayed.
|
|
54
|
+
flushPendingRefs();
|
|
55
|
+
}
|
|
56
|
+
else if (__BACKGROUND__ && hasHydrated
|
|
57
|
+
&& (globalCommitContext.ops.length > 0
|
|
58
|
+
|| !isEmptyObject(globalCommitContext.flushOptions)
|
|
59
|
+
|| hasPendingRefs())) {
|
|
60
|
+
const hasNativeOps = globalCommitContext.ops.length > 0;
|
|
61
|
+
const hasUpdatePayload = hasNativeOps || !isEmptyObject(globalCommitContext.flushOptions);
|
|
62
|
+
const removedSubtreesAwaitingTeardown = hasNativeOps ? takeRemovedSubtreesForPostDispatchTeardown() : [];
|
|
63
|
+
let didFlushRefs = false;
|
|
75
64
|
try {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
if (hasUpdatePayload) {
|
|
66
|
+
markTimingLegacy('updateDiffVdomEnd');
|
|
67
|
+
markTiming('diffVdomEnd');
|
|
68
|
+
if (__PROFILE__) {
|
|
69
|
+
profileStart('ReactLynx::commitChanges');
|
|
70
|
+
}
|
|
71
|
+
markTiming('packChangesStart');
|
|
72
|
+
if (globalPipelineOptions) {
|
|
73
|
+
globalCommitContext.flushOptions.pipelineOptions = globalPipelineOptions;
|
|
74
|
+
}
|
|
75
|
+
markTiming('packChangesEnd');
|
|
76
|
+
if (globalPipelineOptions) {
|
|
77
|
+
setPipeline(undefined);
|
|
78
|
+
}
|
|
79
|
+
if (__PROFILE__) {
|
|
80
|
+
profileEnd();
|
|
81
|
+
}
|
|
82
|
+
if (typeof __ALOG__ !== 'undefined' && __ALOG__) {
|
|
83
|
+
console.alog?.('[ReactLynxDebug] ElementTemplate BTS -> MTS update:\n'
|
|
84
|
+
+ JSON.stringify({
|
|
85
|
+
ops: formatElementTemplateUpdateCommands(globalCommitContext.ops),
|
|
86
|
+
flushOptions: globalCommitContext.flushOptions,
|
|
87
|
+
flowIds: globalCommitContext.flowIds,
|
|
88
|
+
}, null, 2));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (hasUpdatePayload) {
|
|
92
|
+
lynx.getCoreContext().dispatchEvent({
|
|
93
|
+
type: ElementTemplateLifecycleConstant.update,
|
|
94
|
+
data: {
|
|
95
|
+
ops: globalCommitContext.ops,
|
|
96
|
+
flushOptions: globalCommitContext.flushOptions,
|
|
97
|
+
flowIds: globalCommitContext.flowIds,
|
|
98
|
+
reloadVersion: getReloadVersion(),
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
// When native ops exist, patch first so a newly attached ref observes the
|
|
103
|
+
// committed native state. Ref-only commits still flush through this path.
|
|
104
|
+
flushPendingRefs();
|
|
105
|
+
didFlushRefs = true;
|
|
84
106
|
}
|
|
85
107
|
finally {
|
|
108
|
+
if (!didFlushRefs) {
|
|
109
|
+
clearPendingRefs();
|
|
110
|
+
}
|
|
86
111
|
resetGlobalCommitContext();
|
|
87
112
|
// Match Snapshot's cleanup boundary: start the delayed teardown only
|
|
88
113
|
// after the bridge dispatch attempt, so background JS objects are not
|
|
89
114
|
// torn down before main-thread detach observes the same commit.
|
|
90
|
-
scheduleElementTemplateRemovedSubtreeCleanup(
|
|
115
|
+
scheduleElementTemplateRemovedSubtreeCleanup(removedSubtreesAwaitingTeardown);
|
|
91
116
|
}
|
|
92
117
|
}
|
|
93
118
|
originalCommit?.(vnode, commitQueue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-hook.js","sourceRoot":"","sources":["../../../src/element-template/background/commit-hook.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"commit-hook.js","sourceRoot":"","sources":["../../../src/element-template/background/commit-hook.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,0CAA0C,GAC3C,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,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;IACvC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
-
// LICENSE file in the root directory of this source tree.
|
|
1
|
+
import { render } from 'preact';
|
|
4
2
|
import { cancelElementTemplateRemovedSubtreeCleanup, resetElementTemplateCommitState } from './commit-hook.js';
|
|
5
3
|
import { resetElementTemplateHydrationListener } from './hydration-listener.js';
|
|
6
4
|
import { backgroundElementTemplateInstanceManager } from './manager.js';
|
|
7
5
|
import { clearEventState } from '../prop-adapters/event.js';
|
|
6
|
+
import { clearRefState, flushPendingRefs } from '../prop-adapters/ref.js';
|
|
7
|
+
import { __root } from '../runtime/page/root-instance.js';
|
|
8
8
|
export function destroyElementTemplateBackgroundRuntime() {
|
|
9
9
|
resetElementTemplateHydrationListener();
|
|
10
|
-
resetElementTemplateCommitState();
|
|
11
|
-
// Destroy is the only place that may discard delayed removed subtrees instead
|
|
12
|
-
// of letting the Snapshot-aligned timer tear them down later.
|
|
13
10
|
cancelElementTemplateRemovedSubtreeCleanup();
|
|
11
|
+
render(null, __root);
|
|
12
|
+
// Run user cleanup before dropping the backend side tables; after clearRefState
|
|
13
|
+
// the raw ref ownership needed to detach callbacks is gone.
|
|
14
|
+
flushPendingRefs();
|
|
15
|
+
resetElementTemplateCommitState();
|
|
14
16
|
clearEventState();
|
|
17
|
+
clearRefState();
|
|
15
18
|
backgroundElementTemplateInstanceManager.clear();
|
|
16
19
|
}
|
|
17
20
|
//# sourceMappingURL=destroy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../../src/element-template/background/destroy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../../src/element-template/background/destroy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,0CAA0C,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D,MAAM,UAAU,uCAAuC;IACrD,qCAAqC,EAAE,CAAC;IACxC,0CAA0C,EAAE,CAAC;IAE7C,MAAM,CAAC,IAAI,EAAE,MAAkC,CAAC,CAAC;IACjD,gFAAgF;IAChF,4DAA4D;IAC5D,gBAAgB,EAAE,CAAC;IAEnB,+BAA+B,EAAE,CAAC;IAClC,eAAe,EAAE,CAAC;IAClB,aAAa,EAAE,CAAC;IAChB,wCAAwC,CAAC,KAAK,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
3
|
// LICENSE file in the root directory of this source tree.
|
|
4
4
|
import { options } from 'preact';
|
|
5
|
-
import { BUILTIN_RAW_TEXT_TEMPLATE_KEY, BackgroundElementTemplateInstance,
|
|
5
|
+
import { BUILTIN_RAW_TEXT_TEMPLATE_KEY, BackgroundElementTemplateInstance, BackgroundListElementTemplateInstance, } from './instance.js';
|
|
6
6
|
export function setupBackgroundElementTemplateDocument() {
|
|
7
7
|
const doc = {
|
|
8
8
|
createElement(type) {
|
|
9
|
-
if (type === '
|
|
10
|
-
return new
|
|
9
|
+
if (type === 'list') {
|
|
10
|
+
return new BackgroundListElementTemplateInstance();
|
|
11
11
|
}
|
|
12
12
|
return new BackgroundElementTemplateInstance(type);
|
|
13
13
|
},
|
|
14
14
|
createElementNS(_ns, type) {
|
|
15
|
-
if (type === '
|
|
16
|
-
return new
|
|
15
|
+
if (type === 'list') {
|
|
16
|
+
return new BackgroundListElementTemplateInstance();
|
|
17
17
|
}
|
|
18
18
|
return new BackgroundElementTemplateInstance(type);
|
|
19
19
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/element-template/background/document.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/element-template/background/document.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,qCAAqC,GACtC,MAAM,eAAe,CAAC;AAQvB,MAAM,UAAU,sCAAsC;IACpD,MAAM,GAAG,GAAG;QACV,aAAa,CAAC,IAAY;YACxB,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;gBACpB,OAAO,IAAI,qCAAqC,EAAE,CAAC;YACrD,CAAC;YACD,OAAO,IAAI,iCAAiC,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;QACD,eAAe,CAAC,GAAW,EAAE,IAAY;YACvC,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;gBACpB,OAAO,IAAI,qCAAqC,EAAE,CAAC;YACrD,CAAC;YACD,OAAO,IAAI,iCAAiC,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;QACD,cAAc,CAAC,IAAY;YACzB,OAAO,IAAI,iCAAiC,CAAC,6BAA6B,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACtF,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,QAAQ,GAAG,GAA0B,CAAC;IAE9C,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BackgroundElementTemplateInstance } from './instance.js';
|
|
2
|
-
import type {
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function hydrateIntoContext(serialized: SerializedElementTemplate, instance: BackgroundElementTemplateInstance): void;
|
|
2
|
+
import type { SerializedEtNode } from '../protocol/types.js';
|
|
3
|
+
export declare function hydrateRootChildrenIntoContext(serializedChildren: SerializedEtNode[], root: BackgroundElementTemplateInstance): boolean;
|