@lynx-js/react 0.124.0 → 0.125.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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/runtime/jsx-dev-runtime/index.d.ts +39 -1
- package/runtime/jsx-runtime/index.d.ts +39 -1
- package/runtime/lepus/jsx-runtime/index.js +17 -0
- package/runtime/lib/core/main-thread-function.d.ts +2 -0
- package/runtime/lib/core/main-thread-function.js +10 -0
- package/runtime/lib/core/main-thread-function.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.js +23 -0
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -0
- package/runtime/lib/{snapshot/worklet/ref/workletRef.d.ts → core/main-thread-ref.d.ts} +6 -7
- package/runtime/lib/{snapshot/worklet/ref/workletRef.js → core/main-thread-ref.js} +31 -36
- package/runtime/lib/core/main-thread-ref.js.map +1 -0
- package/runtime/lib/core/mts-capability.d.ts +1 -0
- package/runtime/lib/core/mts-capability.js +18 -0
- package/runtime/lib/core/mts-capability.js.map +1 -0
- package/runtime/lib/core/thread-function-call/main-thread.js +4 -11
- package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
- package/runtime/lib/element-template/background/attr-slots.d.ts +3 -1
- package/runtime/lib/element-template/background/attr-slots.js +3 -3
- package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.d.ts +9 -0
- package/runtime/lib/element-template/background/commit-hook.js +23 -0
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js +6 -4
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/hydration-listener.js +4 -4
- package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
- package/runtime/lib/element-template/background/instance.d.ts +11 -0
- package/runtime/lib/element-template/background/instance.js +53 -29
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/background/manager.d.ts +1 -0
- package/runtime/lib/element-template/background/manager.js +8 -2
- package/runtime/lib/element-template/background/manager.js.map +1 -1
- package/runtime/lib/element-template/background/page-root-hydrate.d.ts +3 -0
- package/runtime/lib/element-template/background/page-root-hydrate.js +14 -0
- package/runtime/lib/element-template/background/page-root-hydrate.js.map +1 -0
- package/runtime/lib/element-template/index.d.ts +1 -0
- package/runtime/lib/element-template/index.js +1 -0
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +1 -1
- package/runtime/lib/element-template/internal.js +1 -2
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/native/index.js +2 -2
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/native/main-thread-api.js +1 -2
- package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
- package/runtime/lib/element-template/native/reload-background.js +2 -2
- package/runtime/lib/element-template/native/reload-background.js.map +1 -1
- package/runtime/lib/element-template/native/reload-main-thread.js +9 -2
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
- package/runtime/lib/element-template/protocol/page.d.ts +3 -0
- package/runtime/lib/element-template/protocol/page.js +7 -0
- package/runtime/lib/element-template/protocol/page.js.map +1 -0
- package/runtime/lib/element-template/protocol/types.d.ts +6 -1
- package/runtime/lib/element-template/protocol/types.js +1 -0
- package/runtime/lib/element-template/protocol/types.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/authored-page.d.ts +8 -0
- package/runtime/lib/element-template/runtime/page/authored-page.js +15 -0
- package/runtime/lib/element-template/runtime/page/authored-page.js.map +1 -0
- package/runtime/lib/element-template/runtime/page/page.d.ts +0 -2
- package/runtime/lib/element-template/runtime/page/page.js +2 -10
- package/runtime/lib/element-template/runtime/page/page.js.map +1 -1
- package/runtime/lib/element-template/runtime/patch.js +5 -3
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.d.ts +1 -3
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +9 -24
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-opcodes.d.ts +2 -0
- package/runtime/lib/element-template/runtime/render/render-opcodes.js +36 -3
- package/runtime/lib/element-template/runtime/render/render-opcodes.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.d.ts +2 -0
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js +13 -0
- 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 +7 -2
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.d.ts +3 -3
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +2 -2
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +2 -2
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.d.ts +0 -1
- package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js +4 -9
- package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +9 -0
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js +33 -0
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -0
- package/runtime/lib/element-template/runtime/template/registry.js +2 -1
- package/runtime/lib/element-template/runtime/template/registry.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/typed-attributes.d.ts +5 -0
- package/runtime/lib/element-template/runtime/template/typed-attributes.js +13 -0
- package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -0
- package/runtime/lib/lynx-api.d.ts +1 -1
- package/runtime/lib/lynx-api.js +1 -1
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.d.ts +10 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.js +30 -2
- package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js +3 -0
- package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
- package/runtime/lib/snapshot/worklet/destroy.js +2 -2
- package/runtime/lib/snapshot/worklet/destroy.js.map +1 -1
- package/runtime/lib/snapshot/worklet/functionality.d.ts +1 -0
- package/runtime/lib/snapshot/worklet/functionality.js +2 -8
- package/runtime/lib/snapshot/worklet/functionality.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js +2 -2
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/transform/dist/wasm.cjs +5 -5
- package/runtime/lib/snapshot/worklet/ref/workletRef.js.map +0 -1
- package/runtime/lib/snapshot/worklet/ref/workletRefPool.d.ts +0 -1
- package/runtime/lib/snapshot/worklet/ref/workletRefPool.js +0 -23
- package/runtime/lib/snapshot/worklet/ref/workletRefPool.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workletRef.js","sourceRoot":"","sources":["../../../../src/snapshot/worklet/ref/workletRef.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,gDAAgD;AAChD,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,MAAM,UAAU,+BAA+B;I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AAQ,UAAa;IACjD,YAAY,SAAY;QACtB,KAAK,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAChC,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACtB,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,iCAAiC,EAAE,CAAC,GAAG,EAAE;gBACrF,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC,aAAa,CAAC;oBACpC,IAAI,EAAE,aAAa,CAAC,iBAAiB;oBACrC,IAAI,EAAE;wBACJ,EAAE;qBACH;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA2HD,MAAM,UAAU,gBAAgB,CAAI,SAAa;IAC/C,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,OAAO,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type workletRefInitValuePatch = [id: number, value: unknown][];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
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.
|
|
4
|
-
import { isMtsEnabled } from '../functionality.js';
|
|
5
|
-
let initValuePatch = [];
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export function addWorkletRefInitValue(id, value) {
|
|
10
|
-
if (!isMtsEnabled()) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
initValuePatch.push([id, value]);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export function takeWorkletRefInitValuePatch() {
|
|
19
|
-
const res = initValuePatch;
|
|
20
|
-
initValuePatch = [];
|
|
21
|
-
return res;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=workletRefPool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workletRefPool.js","sourceRoot":"","sources":["../../../../src/snapshot/worklet/ref/workletRefPool.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,IAAI,cAAc,GAA6B,EAAE,CAAC;AAElD;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAU,EAAE,KAAc;IAC/D,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACpB,OAAO;IACT,CAAC;IAED,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B;IAC1C,MAAM,GAAG,GAAG,cAAc,CAAC;IAC3B,cAAc,GAAG,EAAE,CAAC;IACpB,OAAO,GAAG,CAAC;AACb,CAAC"}
|