@lynx-js/react 0.126.2 → 0.128.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 +36 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/docs/directives.md +90 -0
- package/docs/global-events.md +50 -0
- package/docs/import-attributes.md +43 -0
- package/docs/macros.md +285 -0
- package/package.json +7 -14
- package/refresh/.turbo/turbo-build.log +2 -2
- package/refresh/dist/index.js +26 -6
- package/refresh/package.json +1 -1
- package/runtime/__test__/core/main-thread-object.test.js +149 -0
- package/runtime/__test__/element-template/fixtures/background/main-thread-function/run-on-main-thread/index.tsx +26 -3
- package/runtime/__test__/element-template/imports/main-thread-object-api.test.ts +10 -0
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +4 -1
- package/runtime/__test__/element-template/runtime/background/event/compiled-fixtures.test.tsx +39 -48
- package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +11 -9
- package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +6 -3
- package/runtime/__test__/element-template/test-utils/mock/globals.js +6 -0
- package/runtime/__test__/element-template/vitest.config.ts +4 -0
- package/runtime/__test__/snapshot/ctxNotFound.test.ts +271 -0
- package/runtime/__test__/snapshot/event.test.jsx +7 -7
- package/runtime/__test__/snapshot/lazy.test.js +73 -1
- package/runtime/__test__/snapshot/lynx/portals.test.jsx +75 -37
- package/runtime/__test__/snapshot/snapshotPatch.test.jsx +59 -47
- package/runtime/__test__/snapshot/spread.test.jsx +10 -10
- package/runtime/__test__/snapshot/worklet/main-thread-object.test.jsx +306 -0
- package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +1 -0
- package/runtime/__test__/worklet-runtime/initEntry.test.js +109 -0
- package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +182 -0
- package/runtime/__test__/worklet-runtime/object-methods.test.js +59 -0
- package/runtime/__test__/worklet-runtime/workletRef.test.js +362 -2
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +246 -1
- package/runtime/lazy/compat.js +2 -0
- package/runtime/lazy/element-template-internal.js +1 -1
- package/runtime/lazy/element-template.js +2 -0
- package/runtime/lazy/internal.js +2 -1
- package/runtime/lazy/react.js +2 -0
- package/runtime/lib/core/background-function/exec-map.js.map +1 -1
- package/runtime/lib/core/background-function/handle.js.map +1 -1
- package/runtime/lib/core/background-function/run-on-background.d.ts +16 -0
- package/runtime/lib/core/background-function/run-on-background.js +16 -0
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/core/capture-main-thread-object.d.ts +1 -0
- package/runtime/lib/core/capture-main-thread-object.js +16 -0
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -0
- package/runtime/lib/core/commit-context.js.map +1 -1
- package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
- package/runtime/lib/core/compat/lynxComponent.js.map +1 -1
- package/runtime/lib/core/component.js.map +1 -1
- package/runtime/lib/core/forceRootRender.js.map +1 -1
- package/runtime/lib/core/globalProps.d.ts +2 -0
- package/runtime/lib/core/globalProps.js.map +1 -1
- package/runtime/lib/core/hooks/mainThread.js.map +1 -1
- package/runtime/lib/core/hooks/mainThreadImpl.js.map +1 -1
- package/runtime/lib/core/hooks/react.d.ts +4 -0
- package/runtime/lib/core/hooks/react.js +4 -0
- package/runtime/lib/core/hooks/react.js.map +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.d.ts +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/core/initData.d.ts +2 -0
- package/runtime/lib/core/initData.js +2 -0
- package/runtime/lib/core/initData.js.map +1 -1
- package/runtime/lib/core/lynx/dynamic-import.js.map +1 -1
- package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-backend.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-version.js.map +1 -1
- package/runtime/lib/core/lynx-data-processors.js.map +1 -1
- package/runtime/lib/core/lynx-page-data.js.map +1 -1
- package/runtime/lib/core/lynx-update-data.js.map +1 -1
- package/runtime/lib/core/main-thread-function.js.map +1 -1
- package/runtime/lib/core/main-thread-object-handle-registry.d.ts +3 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js +17 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -0
- package/runtime/lib/core/main-thread-object.d.ts +77 -0
- package/runtime/lib/core/main-thread-object.js +258 -0
- package/runtime/lib/core/main-thread-object.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-id.d.ts +1 -0
- package/runtime/lib/core/main-thread-ref-id.js +14 -0
- package/runtime/lib/core/main-thread-ref-id.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -1
- package/runtime/lib/core/main-thread-ref-init-value.js +4 -2
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
- package/runtime/lib/core/main-thread-ref.d.ts +4 -0
- package/runtime/lib/core/main-thread-ref.js +5 -8
- package/runtime/lib/core/main-thread-ref.js.map +1 -1
- package/runtime/lib/core/mts-capability.js.map +1 -1
- package/runtime/lib/core/performance.js.map +1 -1
- package/runtime/lib/core/ref.js.map +1 -1
- package/runtime/lib/core/reload-version.js.map +1 -1
- package/runtime/lib/core/runtime-destroy.js.map +1 -1
- package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
- package/runtime/lib/core/thread-function-call/return-value.js.map +1 -1
- package/runtime/lib/document.js.map +1 -1
- package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
- package/runtime/lib/element-template/background/commit-context.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/destroy.js.map +1 -1
- package/runtime/lib/element-template/background/document.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/background/manager.js.map +1 -1
- package/runtime/lib/element-template/background/page-root-hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/render-scope.js.map +1 -1
- package/runtime/lib/element-template/client/root.js.map +1 -1
- package/runtime/lib/element-template/debug/alog.js.map +1 -1
- package/runtime/lib/element-template/debug/elementPAPICall.js.map +1 -1
- package/runtime/lib/element-template/debug/profile.js.map +1 -1
- package/runtime/lib/element-template/hydration-map.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +2 -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 -1
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/jsx-dev-runtime/index.js.map +1 -1
- package/runtime/lib/element-template/jsx-runtime/index.js.map +1 -1
- package/runtime/lib/element-template/lynx/env.js.map +1 -1
- package/runtime/lib/element-template/lynx/performance.js.map +1 -1
- package/runtime/lib/element-template/native/callDestroyLifetimeFun.js.map +1 -1
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
- package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
- package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
- package/runtime/lib/element-template/native/reload-background.js.map +1 -1
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/event-value.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/event.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/ref.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
- package/runtime/lib/element-template/protocol/lifecycle-constant.js.map +1 -1
- package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
- package/runtime/lib/element-template/protocol/page.js.map +1 -1
- package/runtime/lib/element-template/protocol/template-type.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.d.ts +1 -1
- package/runtime/lib/element-template/protocol/types.js.map +1 -1
- package/runtime/lib/element-template/protocol/update-event.js.map +1 -1
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/authored-page.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/page.js.map +1 -1
- package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/host.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
- 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.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-function.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/registry.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
- package/runtime/lib/element-template/runtime-marker.js.map +1 -1
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/internal.d.ts +1 -1
- package/runtime/lib/internal.js +1 -1
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +34 -0
- package/runtime/lib/lynx-api.js +21 -0
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js +4 -1
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/root.js.map +1 -1
- package/runtime/lib/runtime-marker.js.map +1 -1
- package/runtime/lib/shared/attribute-name.js.map +1 -1
- package/runtime/lib/shared/component-stack.js.map +1 -1
- package/runtime/lib/shared/index-map.js.map +1 -1
- package/runtime/lib/shared/profile.js.map +1 -1
- package/runtime/lib/shared/render-constants.js.map +1 -1
- package/runtime/lib/snapshot/alog/elementPAPICall.js.map +1 -1
- package/runtime/lib/snapshot/alog/index.js.map +1 -1
- package/runtime/lib/snapshot/alog/render.js.map +1 -1
- package/runtime/lib/snapshot/compat/componentIs.js.map +1 -1
- package/runtime/lib/snapshot/debug/debug.js.map +1 -1
- package/runtime/lib/snapshot/debug/describeInvalidValue.js.map +1 -1
- package/runtime/lib/snapshot/debug/formatPatch.js.map +1 -1
- package/runtime/lib/snapshot/debug/printSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
- package/runtime/lib/snapshot/debug/vnodeSource.js.map +1 -1
- package/runtime/lib/snapshot/gesture/processGesture.js.map +1 -1
- package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +1 -1
- package/runtime/lib/snapshot/gesture/types.js.map +1 -1
- package/runtime/lib/snapshot/index.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/constant.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/delayEvents.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/delayLifecycleEvents.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/isRendering.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.d.ts +11 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.js +24 -16
- package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/globalState.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/isMainThreadHydrating.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/nodesRefApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.d.ts +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +29 -7
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.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.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/render.js.map +1 -1
- package/runtime/lib/snapshot/list/list.js.map +1 -1
- package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
- package/runtime/lib/snapshot/list/pendingListUpdates.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/lynx/children.d.ts +2 -0
- package/runtime/lib/snapshot/lynx/children.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +8 -0
- package/runtime/lib/snapshot/lynx/element.js +4 -0
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/lynx/env.js.map +1 -1
- package/runtime/lib/snapshot/lynx/injectLepusMethods.js.map +1 -1
- package/runtime/lib/snapshot/lynx/lazyBundleConstants.js.map +1 -1
- package/runtime/lib/snapshot/lynx/nodesRef.js.map +1 -1
- package/runtime/lib/snapshot/lynx/performance.js.map +1 -1
- package/runtime/lib/snapshot/lynx/portals.js.map +1 -1
- package/runtime/lib/snapshot/lynx/portalsPending.js.map +1 -1
- package/runtime/lib/snapshot/lynx/prepareLazyBundleMTS.js.map +1 -1
- package/runtime/lib/snapshot/lynx/runWithForce.js.map +1 -1
- package/runtime/lib/snapshot/lynx/suspense.js.map +1 -1
- package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/constants.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/definition.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/dynamicPartType.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/event.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/gesture.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/index.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/platformInfo.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/reconstructInstanceTree.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/ref.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotCreatorMap.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceHydrationMap.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/spread.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/types.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/utils.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/workletEvent.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/workletRef.js.map +1 -1
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ctx.js.map +1 -1
- package/runtime/lib/snapshot/worklet/destroy.js.map +1 -1
- package/runtime/lib/snapshot/worklet/functionality.js.map +1 -1
- package/runtime/lib/snapshot/worklet/hmr.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/utils.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/animation/animation.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/animation/effect.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/element.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/lepusQuerySelector.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/lynxApi.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -3
- package/runtime/lib/worklet-runtime/bindings/bindings.js +9 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/events.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/index.d.ts +0 -1
- package/runtime/lib/worklet-runtime/bindings/index.js +0 -1
- package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/observers.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.d.ts +3 -6
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +1 -1
- package/runtime/lib/worklet-runtime/delayWorkletEvent.js.map +1 -1
- package/runtime/lib/worklet-runtime/eomImpl.js.map +1 -1
- package/runtime/lib/worklet-runtime/eventPropagation.js.map +1 -1
- package/runtime/lib/worklet-runtime/global.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js +26 -7
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/index.js +6 -0
- package/runtime/lib/worklet-runtime/index.js.map +1 -1
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
- package/runtime/lib/worklet-runtime/listeners.js.map +1 -1
- package/runtime/lib/worklet-runtime/mainThreadObject.d.ts +8 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js +67 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -0
- package/runtime/lib/worklet-runtime/runOnMainThread.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/mainThreadFlushLoopGuard.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/profile.js.map +1 -1
- package/runtime/lib/worklet-runtime/utils/version.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRef.d.ts +11 -7
- package/runtime/lib/worklet-runtime/workletRef.js +72 -9
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +68 -9
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/package.json +2 -3
- package/runtime/src/core/background-function/run-on-background.ts +16 -0
- package/runtime/src/core/capture-main-thread-object.ts +17 -0
- package/runtime/src/core/globalProps.ts +2 -0
- package/runtime/src/core/hooks/react.ts +4 -0
- package/runtime/src/core/hooks/useLynxGlobalEventListener.ts +2 -0
- package/runtime/src/core/initData.ts +2 -0
- package/runtime/src/core/main-thread-object-handle-registry.ts +25 -0
- package/runtime/src/core/main-thread-object.ts +380 -0
- package/runtime/src/core/main-thread-ref-id.ts +16 -0
- package/runtime/src/core/main-thread-ref-init-value.ts +12 -4
- package/runtime/src/core/main-thread-ref.ts +7 -8
- package/runtime/src/element-template/background/commit-hook.ts +1 -1
- package/runtime/src/element-template/index.ts +6 -0
- package/runtime/src/element-template/internal.ts +2 -1
- package/runtime/src/element-template/protocol/types.ts +1 -1
- package/runtime/src/internal.ts +1 -1
- package/runtime/src/lynx-api.ts +38 -0
- package/runtime/src/lynx.ts +5 -1
- package/runtime/src/snapshot/lifecycle/patch/error.ts +36 -19
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +29 -7
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +2 -2
- package/runtime/src/snapshot/lynx/children.ts +2 -0
- package/runtime/src/snapshot/lynx/element.ts +8 -0
- package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +2 -0
- package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +1 -1
- package/runtime/src/worklet-runtime/bindings/bindings.ts +17 -2
- package/runtime/src/worklet-runtime/bindings/index.ts +0 -1
- package/runtime/src/worklet-runtime/bindings/types.ts +7 -11
- package/runtime/src/worklet-runtime/hydrate.ts +43 -10
- package/runtime/src/worklet-runtime/index.ts +7 -0
- package/runtime/src/worklet-runtime/mainThreadObject.ts +117 -0
- package/runtime/src/worklet-runtime/workletRef.ts +120 -19
- package/runtime/src/worklet-runtime/workletRuntime.ts +83 -11
- package/runtime/tsconfig.json +2 -0
- package/runtime/vitest.config.ts +4 -0
- package/testing-library/.turbo/turbo-build.log +11 -11
- package/testing-library/dist/env/index.js +3 -15
- package/testing-library/dist/index.d.ts +165 -2
- package/testing-library/dist/plugins/index.js +10 -0
- package/testing-library/dist/rstest-config.js +15 -0
- package/testing-library/dist/setupFiles/common/worklet-runtime-init.js +11 -0
- package/testing-library/package.json +2 -1
- package/testing-library/rstest.config.ts +3 -0
- package/testing-library/src/__tests__/lynx.test.jsx +1 -1
- package/testing-library/src/__tests__/rstest-config.test.js +34 -1
- package/testing-library/src/__tests__/worklet.test.jsx +87 -33
- package/testing-library/src/plugins/vitest.ts +5 -1
- package/testing-library/src/rstest-config.ts +17 -1
- package/testing-library/src/setupFiles/common/worklet-runtime-init.js +22 -0
- package/testing-library/tsconfig.docs.json +9 -0
- package/testing-library/typedoc.json +22 -0
- package/transform/.turbo/turbo-build$colon$wasm.log +135 -73
- package/transform/__test__/defines.spec.js +80 -12
- package/transform/__test__/fixture.spec.js +231 -71
- package/transform/__test__/object-methods.spec.js +82 -0
- package/transform/crates/swc_plugin_worklet/decl_collect.rs +10 -0
- package/transform/crates/swc_plugin_worklet/extract_ident.rs +14 -0
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +228 -13
- package/transform/crates/swc_plugin_worklet/lib.rs +599 -150
- package/transform/crates/swc_plugin_worklet/napi.rs +10 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +8 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +12 -7
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_js.js +27 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +43 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_ident_from_this_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +16 -14
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +18 -18
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_3_lepus.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_4_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +7 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +9 -9
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +22 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_globals.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +14 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_type_annotations.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_destructure_from_closure.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_catch_clause_params.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_idents_inside_of_ctx.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_transform_recursively.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +42 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +58 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_skip_shared_identifiers_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_arrow_function.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_fn_decl_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_function_expr.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_property_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_property_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +3 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js_fn_in_run_on_js_lepus.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +5 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_alias.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general_mixed.js +2 -4
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets_in_func.js +3 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_js.js +9 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +14 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_ui_worklet_lepus.js +2 -4
- package/transform/dist/wasm.cjs +1 -1
- package/transform/index.d.ts +25 -1
- package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
- package/transform/src/lib.rs +193 -23
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +63 -467
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +340 -28
- package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
- package/transform/vitest.config.ts +5 -1
- package/types/react.docs.d.ts +130 -11
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +0 -8
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +0 -23
- package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +0 -1
- package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +0 -25
- package/runtime/worklet-runtime/dev.js +0 -638
- package/runtime/worklet-runtime/main.js +0 -1
- package/testing-library/node_modules/.bin/rsbuild +0 -68
- package/testing-library/node_modules/.bin/rspeedy +0 -68
- package/testing-library/node_modules/.bin/rstest +0 -68
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_inner_ident.js +0 -13
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_outer_ident.js +0 -13
- package/transform/node_modules/.bin/esbuild +0 -59
- package/transform/node_modules/.bin/napi +0 -68
|
@@ -1,58 +1,370 @@
|
|
|
1
1
|
$ node ./build.js
|
|
2
|
+
Updating crates.io index
|
|
2
3
|
Blocking waiting for file lock on package cache
|
|
3
4
|
Blocking waiting for file lock on package cache
|
|
5
|
+
Downloading crates ...
|
|
6
|
+
Downloaded idna_adapter v1.2.2
|
|
7
|
+
Downloaded par-core v2.0.0
|
|
8
|
+
Downloaded scoped-tls v1.0.1
|
|
9
|
+
Downloaded ahash v0.8.12
|
|
10
|
+
Downloaded hex v0.4.3
|
|
11
|
+
Downloaded owo-colors v4.3.0
|
|
12
|
+
Downloaded rand v0.8.7
|
|
13
|
+
Downloaded static_assertions v1.1.0
|
|
14
|
+
Downloaded icu_provider v2.2.0
|
|
15
|
+
Downloaded phf_macros v0.11.3
|
|
16
|
+
Downloaded swc_core v77.1.2
|
|
17
|
+
Downloaded fastrand v2.5.0
|
|
18
|
+
Downloaded from_variant v3.0.0
|
|
19
|
+
Downloaded icu_locale_core v2.2.0
|
|
20
|
+
Downloaded serde v1.0.229
|
|
21
|
+
Downloaded tracing-attributes v0.1.31
|
|
22
|
+
Downloaded if_chain v1.0.3
|
|
23
|
+
Downloaded matchers v0.2.0
|
|
24
|
+
Downloaded phf_generator v0.11.3
|
|
25
|
+
Downloaded potential_utf v0.1.5
|
|
26
|
+
Downloaded rustc-hash v2.1.3
|
|
27
|
+
Downloaded scopeguard v1.2.0
|
|
28
|
+
Downloaded swc_error_reporters v28.0.0
|
|
29
|
+
Downloaded swc_plugin v1.0.1
|
|
30
|
+
Downloaded swc_plugin_macro v2.0.0
|
|
31
|
+
Downloaded bytes-str v0.2.8
|
|
32
|
+
Downloaded heck v0.5.0
|
|
33
|
+
Downloaded miette-derive v7.6.0
|
|
34
|
+
Downloaded new_debug_unreachable v1.0.6
|
|
35
|
+
Downloaded outref v0.5.2
|
|
36
|
+
Downloaded percent-encoding v2.3.2
|
|
37
|
+
Downloaded phf v0.11.3
|
|
38
|
+
Downloaded phf_shared v0.11.3
|
|
39
|
+
Downloaded rand_core v0.6.4
|
|
40
|
+
Downloaded seq-macro v0.3.6
|
|
41
|
+
Downloaded siphasher v1.0.3
|
|
42
|
+
Downloaded string_enum v1.0.2
|
|
43
|
+
Downloaded swc_atoms v10.0.0
|
|
44
|
+
Downloaded swc_ecma_codegen_macros v2.0.2
|
|
45
|
+
Downloaded swc_ecma_testing v27.0.0
|
|
46
|
+
Downloaded swc_eq_ignore_macros v1.0.1
|
|
47
|
+
Downloaded unicode-linebreak v0.1.5
|
|
48
|
+
Downloaded form_urlencoded v1.2.2
|
|
49
|
+
Downloaded itoa v1.0.18
|
|
50
|
+
Downloaded sha-1 v0.10.1
|
|
51
|
+
Downloaded siphasher v0.3.11
|
|
52
|
+
Downloaded stable_deref_trait v1.2.1
|
|
53
|
+
Downloaded swc_allocator v5.0.0
|
|
54
|
+
Downloaded swc_ecma_quote_macros v45.0.1
|
|
55
|
+
Downloaded swc_macros_common v1.0.1
|
|
56
|
+
Downloaded swc_plugin_proxy v30.0.0
|
|
57
|
+
Downloaded swc_transform_common v20.0.0
|
|
58
|
+
Downloaded thiserror v1.0.69
|
|
59
|
+
Downloaded generic-array v0.14.7
|
|
60
|
+
Downloaded nu-ansi-term v0.50.3
|
|
61
|
+
Downloaded num_cpus v1.17.0
|
|
62
|
+
Downloaded psm v0.1.31
|
|
63
|
+
Downloaded relative-path v1.9.3
|
|
64
|
+
Downloaded rustix v1.1.4
|
|
65
|
+
Downloaded sha2 v0.10.9
|
|
66
|
+
Downloaded shlex v2.0.1
|
|
67
|
+
Downloaded stacker v0.1.24
|
|
68
|
+
Downloaded sugar_path v1.2.1
|
|
69
|
+
Downloaded thread_local v1.1.10
|
|
70
|
+
Downloaded yoke-derive v0.8.2
|
|
71
|
+
Downloaded glob v0.3.4
|
|
72
|
+
Downloaded is-macro v0.3.7
|
|
73
|
+
Downloaded num-integer v0.1.46
|
|
74
|
+
Downloaded litemap v0.8.2
|
|
75
|
+
Downloaded num-traits v0.2.19
|
|
76
|
+
Downloaded parking_lot v0.12.5
|
|
77
|
+
Downloaded semver v1.0.28
|
|
78
|
+
Downloaded swc_ecma_transforms_testing v53.0.0
|
|
79
|
+
Downloaded termcolor v1.4.1
|
|
80
|
+
Downloaded tracing-log v0.2.0
|
|
81
|
+
Downloaded unicode-id-start v1.4.0
|
|
82
|
+
Downloaded parking_lot_core v0.9.12
|
|
83
|
+
Downloaded lock_api v0.4.14
|
|
84
|
+
Downloaded log v0.4.33
|
|
85
|
+
Downloaded ryu v1.0.23
|
|
86
|
+
Downloaded smallvec v1.15.2
|
|
87
|
+
Downloaded swc_ecma_ast v29.0.0
|
|
88
|
+
Downloaded swc_ecma_utils v35.0.0
|
|
89
|
+
Downloaded synstructure v0.13.2
|
|
90
|
+
Downloaded tempfile v3.27.0
|
|
91
|
+
Downloaded testing v27.0.0
|
|
92
|
+
Downloaded tinystr v0.8.3
|
|
93
|
+
Downloaded yoke v0.8.3
|
|
94
|
+
Downloaded convert_case v0.11.0
|
|
95
|
+
Downloaded getrandom v0.4.3
|
|
96
|
+
Downloaded hstr v4.0.0
|
|
97
|
+
Downloaded icu_normalizer v2.2.0
|
|
98
|
+
Downloaded icu_normalizer_data v2.2.0
|
|
99
|
+
Downloaded icu_properties v2.2.0
|
|
100
|
+
Downloaded pretty_assertions v1.4.1
|
|
101
|
+
Downloaded serde_core v1.0.229
|
|
102
|
+
Downloaded sharded-slab v0.1.7
|
|
103
|
+
Downloaded castaway v0.2.4
|
|
104
|
+
Downloaded icu_collections v2.2.0
|
|
105
|
+
Downloaded indexmap v2.14.0
|
|
106
|
+
Downloaded serde_derive v1.0.229
|
|
107
|
+
Downloaded textwrap v0.16.2
|
|
108
|
+
Downloaded miette v7.6.0
|
|
109
|
+
Downloaded num-bigint v0.4.8
|
|
110
|
+
Downloaded swc_common v26.0.0
|
|
111
|
+
Downloaded swc_ecma_transforms_base v49.0.1
|
|
112
|
+
Downloaded utf8_iter v1.0.4
|
|
113
|
+
Downloaded zerofrom v0.1.8
|
|
114
|
+
Downloaded ansi_term v0.12.1
|
|
115
|
+
Downloaded base64-simd v0.8.0
|
|
116
|
+
Downloaded cargo-platform v0.1.9
|
|
117
|
+
Downloaded cpufeatures v0.2.17
|
|
118
|
+
Downloaded crypto-common v0.1.7
|
|
119
|
+
Downloaded data-encoding v2.11.0
|
|
120
|
+
Downloaded equivalent v1.0.2
|
|
121
|
+
Downloaded errno v0.3.14
|
|
122
|
+
Downloaded idna v1.1.0
|
|
123
|
+
Downloaded memchr v2.8.3
|
|
124
|
+
Downloaded swc_sourcemap v10.0.2
|
|
125
|
+
Downloaded swc_visit v2.0.2
|
|
126
|
+
Downloaded testing_macros v1.0.2
|
|
127
|
+
Downloaded thiserror-impl v1.0.69
|
|
128
|
+
Downloaded tracing-core v0.1.36
|
|
129
|
+
Downloaded vsimd v0.8.0
|
|
130
|
+
Downloaded zerofrom-derive v0.1.7
|
|
131
|
+
Downloaded zmij v1.0.23
|
|
132
|
+
Downloaded ascii v1.1.0
|
|
133
|
+
Downloaded ast_node v7.0.0
|
|
134
|
+
Downloaded base64 v0.22.1
|
|
135
|
+
Downloaded better_scoped_tls v1.0.1
|
|
136
|
+
Downloaded block-buffer v0.10.4
|
|
137
|
+
Downloaded cargo_metadata v0.18.1
|
|
138
|
+
Downloaded debugid v0.8.0
|
|
139
|
+
Downloaded digest v0.10.7
|
|
140
|
+
Downloaded either v1.17.0
|
|
141
|
+
Downloaded hashbrown v0.17.1
|
|
142
|
+
Downloaded regex v1.13.1
|
|
143
|
+
Downloaded triomphe v0.1.16
|
|
144
|
+
Downloaded typenum v1.20.1
|
|
145
|
+
Downloaded writeable v0.6.3
|
|
146
|
+
Downloaded zerovec-derive v0.11.3
|
|
147
|
+
Downloaded allocator-api2 v0.2.21
|
|
148
|
+
Downloaded anyhow v1.0.104
|
|
149
|
+
Downloaded autocfg v1.5.1
|
|
150
|
+
Downloaded camino v1.2.4
|
|
151
|
+
Downloaded displaydoc v0.2.6
|
|
152
|
+
Downloaded dragonbox_ecma v0.1.12
|
|
153
|
+
Downloaded hashbrown v0.14.5
|
|
154
|
+
Downloaded icu_properties_data v2.2.0
|
|
155
|
+
Downloaded serde_json v1.0.151
|
|
156
|
+
Downloaded aho-corasick v1.1.4
|
|
157
|
+
Downloaded bitflags v2.13.1
|
|
158
|
+
Downloaded cbor4ii v1.2.2
|
|
159
|
+
Downloaded cc v1.4.0
|
|
160
|
+
Downloaded compact_str v0.7.1
|
|
161
|
+
Downloaded diff v0.1.13
|
|
162
|
+
Downloaded swc_ecma_parser v45.1.1
|
|
163
|
+
Downloaded unicode-segmentation v1.13.3
|
|
164
|
+
Downloaded url v2.5.8
|
|
165
|
+
Downloaded yansi v1.0.1
|
|
166
|
+
Downloaded zerotrie v0.2.4
|
|
167
|
+
Downloaded ar_archive_writer v0.5.2
|
|
168
|
+
Downloaded zerovec v0.11.6
|
|
169
|
+
Downloaded difference v2.0.0
|
|
170
|
+
Downloaded swc_ecma_visit v29.0.0
|
|
171
|
+
Downloaded syn v3.0.3
|
|
172
|
+
Downloaded regex-syntax v0.8.11
|
|
173
|
+
Downloaded object v0.37.3
|
|
174
|
+
Downloaded tracing-subscriber v0.3.23
|
|
175
|
+
Downloaded unicode-width v0.1.14
|
|
176
|
+
Downloaded unicode-width v0.2.2
|
|
177
|
+
Downloaded zerocopy v0.8.55
|
|
178
|
+
Downloaded tracing v0.1.44
|
|
179
|
+
Downloaded linux-raw-sys v0.12.1
|
|
180
|
+
Downloaded regex-automata v0.4.16
|
|
181
|
+
Downloaded swc_ecma_codegen v32.0.0
|
|
182
|
+
Downloaded find-msvc-tools v0.1.9
|
|
4
183
|
Blocking waiting for file lock on package cache
|
|
5
184
|
Blocking waiting for file lock on build directory
|
|
6
|
-
Compiling
|
|
185
|
+
Compiling stable_deref_trait v1.2.1
|
|
186
|
+
Compiling zerocopy v0.8.55
|
|
187
|
+
Compiling icu_normalizer_data v2.2.0
|
|
188
|
+
Compiling syn v2.0.119
|
|
189
|
+
Compiling syn v3.0.3
|
|
190
|
+
Compiling icu_properties_data v2.2.0
|
|
7
191
|
Compiling ahash v0.8.12
|
|
8
|
-
Compiling
|
|
9
|
-
Compiling
|
|
10
|
-
Compiling
|
|
11
|
-
Compiling
|
|
12
|
-
Compiling
|
|
192
|
+
Compiling cfg-if v1.0.4
|
|
193
|
+
Compiling serde_core v1.0.229
|
|
194
|
+
Compiling autocfg v1.5.1
|
|
195
|
+
Compiling num-traits v0.2.19
|
|
196
|
+
Compiling once_cell v1.21.4
|
|
197
|
+
Compiling serde v1.0.229
|
|
198
|
+
Compiling smallvec v1.15.2
|
|
199
|
+
Compiling anyhow v1.0.104
|
|
200
|
+
Compiling writeable v0.6.3
|
|
201
|
+
Compiling litemap v0.8.2
|
|
202
|
+
Compiling memchr v2.8.3
|
|
203
|
+
Compiling utf8_iter v1.0.4
|
|
204
|
+
Compiling serde_derive v1.0.229
|
|
205
|
+
Compiling allocator-api2 v0.2.21
|
|
206
|
+
Compiling zmij v1.0.23
|
|
207
|
+
Compiling synstructure v0.13.2
|
|
208
|
+
Compiling swc_macros_common v1.0.1
|
|
209
|
+
Compiling equivalent v1.0.2
|
|
210
|
+
Compiling rustc-hash v2.1.3
|
|
211
|
+
Compiling radium v0.7.0
|
|
212
|
+
Compiling zerofrom-derive v0.1.7
|
|
213
|
+
Compiling yoke-derive v0.8.2
|
|
214
|
+
Compiling zerovec-derive v0.11.3
|
|
215
|
+
Compiling displaydoc v0.2.6
|
|
216
|
+
Compiling zerofrom v0.1.8
|
|
217
|
+
Compiling yoke v0.8.3
|
|
218
|
+
Compiling tracing-attributes v0.1.31
|
|
219
|
+
Compiling zerotrie v0.2.4
|
|
220
|
+
Compiling zerovec v0.11.6
|
|
221
|
+
Compiling from_variant v3.0.0
|
|
222
|
+
Compiling swc_eq_ignore_macros v1.0.1
|
|
13
223
|
Compiling tinystr v0.8.3
|
|
14
224
|
Compiling potential_utf v0.1.5
|
|
15
|
-
Compiling icu_collections v2.2.0
|
|
16
|
-
Compiling indexmap v2.14.0
|
|
17
225
|
Compiling icu_locale_core v2.2.0
|
|
18
|
-
Compiling
|
|
226
|
+
Compiling ast_node v7.0.0
|
|
227
|
+
Compiling icu_collections v2.2.0
|
|
228
|
+
Compiling hashbrown v0.17.1
|
|
229
|
+
Compiling itoa v1.0.18
|
|
19
230
|
Compiling serde_json v1.0.151
|
|
231
|
+
Compiling indexmap v2.14.0
|
|
20
232
|
Compiling icu_provider v2.2.0
|
|
233
|
+
Compiling hashbrown v0.14.5
|
|
21
234
|
Compiling icu_properties v2.2.0
|
|
22
235
|
Compiling icu_normalizer v2.2.0
|
|
23
|
-
Compiling
|
|
24
|
-
Compiling
|
|
236
|
+
Compiling tracing-core v0.1.36
|
|
237
|
+
Compiling siphasher v1.0.3
|
|
238
|
+
Compiling rand_core v0.6.4
|
|
239
|
+
Compiling percent-encoding v2.3.2
|
|
240
|
+
Compiling parking_lot_core v0.9.12
|
|
241
|
+
Compiling tap v1.0.1
|
|
242
|
+
Compiling form_urlencoded v1.2.2
|
|
243
|
+
Compiling wyz v0.5.1
|
|
244
|
+
Compiling rand v0.8.7
|
|
25
245
|
Compiling idna_adapter v1.2.2
|
|
246
|
+
Compiling phf_shared v0.11.3
|
|
26
247
|
Compiling idna v1.1.0
|
|
27
|
-
Compiling
|
|
28
|
-
Compiling
|
|
248
|
+
Compiling triomphe v0.1.16
|
|
249
|
+
Compiling pin-project-lite v0.2.17
|
|
250
|
+
Compiling outref v0.5.2
|
|
251
|
+
Compiling new_debug_unreachable v1.0.6
|
|
252
|
+
Compiling vsimd v0.8.0
|
|
253
|
+
Compiling unicode-width v0.2.2
|
|
254
|
+
Compiling uuid v1.24.0
|
|
255
|
+
Compiling bytes v1.12.1
|
|
256
|
+
Compiling scopeguard v1.2.0
|
|
257
|
+
Compiling funty v2.0.0
|
|
258
|
+
Compiling lock_api v0.4.14
|
|
259
|
+
Compiling base64-simd v0.8.0
|
|
260
|
+
Compiling bytes-str v0.2.8
|
|
261
|
+
Compiling debugid v0.8.0
|
|
262
|
+
Compiling hstr v4.0.0
|
|
263
|
+
Compiling tracing v0.1.44
|
|
264
|
+
Compiling bitvec v1.1.1
|
|
265
|
+
Compiling num-integer v0.1.46
|
|
266
|
+
Compiling phf_generator v0.11.3
|
|
29
267
|
Compiling url v2.5.8
|
|
268
|
+
Compiling scoped-tls v1.0.1
|
|
269
|
+
Compiling data-encoding v2.11.0
|
|
270
|
+
Compiling either v1.17.0
|
|
271
|
+
Compiling cbor4ii v1.2.2
|
|
272
|
+
Compiling if_chain v1.0.3
|
|
273
|
+
Compiling unicode-id-start v1.4.0
|
|
274
|
+
Compiling swc_visit v2.0.2
|
|
275
|
+
Compiling better_scoped_tls v1.0.1
|
|
276
|
+
Compiling swc_atoms v10.0.0
|
|
277
|
+
Compiling parking_lot v0.12.5
|
|
278
|
+
Compiling num-bigint v0.4.8
|
|
30
279
|
Compiling swc_sourcemap v10.0.2
|
|
31
|
-
Compiling
|
|
32
|
-
Compiling
|
|
280
|
+
Compiling phf_macros v0.11.3
|
|
281
|
+
Compiling termcolor v1.4.1
|
|
282
|
+
Compiling siphasher v0.3.11
|
|
283
|
+
Compiling heck v0.5.0
|
|
33
284
|
Compiling swc_common v26.0.0
|
|
285
|
+
Compiling is-macro v0.3.7
|
|
286
|
+
Compiling string_enum v1.0.2
|
|
287
|
+
Compiling bitflags v2.13.1
|
|
288
|
+
Compiling libc v0.2.189
|
|
289
|
+
Compiling generic-array v0.14.7
|
|
290
|
+
Compiling phf v0.11.3
|
|
291
|
+
Compiling aho-corasick v1.1.4
|
|
292
|
+
Compiling typenum v1.20.1
|
|
293
|
+
Compiling regex-syntax v0.8.11
|
|
294
|
+
Compiling swc_ecma_ast v29.0.0
|
|
295
|
+
Compiling regex-automata v0.4.16
|
|
296
|
+
Compiling owo-colors v4.3.0
|
|
297
|
+
Compiling camino v1.2.4
|
|
298
|
+
Compiling thiserror v1.0.69
|
|
299
|
+
Compiling dragonbox_ecma v0.1.12
|
|
300
|
+
Compiling unicode-linebreak v0.1.5
|
|
301
|
+
Compiling textwrap v0.16.2
|
|
34
302
|
Compiling block-buffer v0.10.4
|
|
35
303
|
Compiling crypto-common v0.1.7
|
|
304
|
+
Compiling castaway v0.2.4
|
|
305
|
+
Compiling thiserror-impl v1.0.69
|
|
306
|
+
Compiling miette-derive v7.6.0
|
|
307
|
+
Compiling log v0.4.33
|
|
308
|
+
Compiling unicode-width v0.1.14
|
|
309
|
+
Compiling lazy_static v1.5.0
|
|
310
|
+
Compiling seq-macro v0.3.6
|
|
311
|
+
Compiling static_assertions v1.1.0
|
|
312
|
+
Compiling ryu v1.0.23
|
|
313
|
+
Compiling compact_str v0.7.1
|
|
314
|
+
Compiling miette v7.6.0
|
|
315
|
+
Compiling sharded-slab v0.1.7
|
|
316
|
+
Compiling tracing-log v0.2.0
|
|
36
317
|
Compiling digest v0.10.7
|
|
37
|
-
Compiling sha2 v0.10.9
|
|
38
|
-
Compiling matchers v0.2.0
|
|
39
318
|
Compiling regex v1.13.1
|
|
40
|
-
Compiling
|
|
41
|
-
Compiling
|
|
319
|
+
Compiling swc_ecma_visit v29.0.0
|
|
320
|
+
Compiling matchers v0.2.0
|
|
321
|
+
Compiling num_cpus v1.17.0
|
|
322
|
+
Compiling cargo-platform v0.1.9
|
|
323
|
+
Compiling semver v1.0.28
|
|
324
|
+
Compiling par-core v2.0.0
|
|
325
|
+
Compiling thread_local v1.1.10
|
|
326
|
+
Compiling getrandom v0.4.3
|
|
327
|
+
Compiling diff v0.1.13
|
|
328
|
+
Compiling nu-ansi-term v0.50.3
|
|
329
|
+
Compiling yansi v1.0.1
|
|
330
|
+
Compiling glob v0.3.4
|
|
331
|
+
Compiling rustix v1.1.4
|
|
332
|
+
Compiling relative-path v1.9.3
|
|
333
|
+
Compiling pretty_assertions v1.4.1
|
|
334
|
+
Compiling testing_macros v1.0.2
|
|
42
335
|
Compiling tracing-subscriber v0.3.23
|
|
43
|
-
Compiling
|
|
44
|
-
Compiling
|
|
45
|
-
Compiling
|
|
336
|
+
Compiling cargo_metadata v0.18.1
|
|
337
|
+
Compiling swc_ecma_utils v35.0.0
|
|
338
|
+
Compiling swc_error_reporters v28.0.0
|
|
339
|
+
Compiling errno v0.3.14
|
|
340
|
+
Compiling bumpalo v3.20.3
|
|
341
|
+
Compiling difference v2.0.0
|
|
46
342
|
Compiling testing v27.0.0
|
|
47
|
-
Compiling
|
|
48
|
-
Compiling
|
|
343
|
+
Compiling swc_allocator v5.0.0
|
|
344
|
+
Compiling sha2 v0.10.9
|
|
49
345
|
Compiling swc_ecma_parser v45.1.1
|
|
50
|
-
Compiling
|
|
51
|
-
Compiling
|
|
52
|
-
Compiling
|
|
346
|
+
Compiling swc_ecma_codegen_macros v2.0.2
|
|
347
|
+
Compiling ascii v1.1.0
|
|
348
|
+
Compiling hex v0.4.3
|
|
349
|
+
Compiling fastrand v2.5.0
|
|
350
|
+
Compiling tempfile v3.27.0
|
|
351
|
+
Compiling swc_ecma_testing v27.0.0
|
|
53
352
|
Compiling swc_ecma_codegen v32.0.0
|
|
353
|
+
Compiling base64 v0.22.1
|
|
354
|
+
Compiling swc_core v77.1.2
|
|
355
|
+
Compiling ansi_term v0.12.1
|
|
356
|
+
Compiling swc_ecma_transforms_base v49.0.1
|
|
357
|
+
Compiling swc_plugin_proxy v30.0.0
|
|
54
358
|
Compiling swc_ecma_transforms_testing v53.0.0
|
|
359
|
+
Compiling swc_ecma_quote_macros v45.0.1
|
|
360
|
+
Compiling swc_transform_common v20.0.0
|
|
361
|
+
Compiling swc_plugin_macro v2.0.0
|
|
362
|
+
Compiling swc_plugin v1.0.1
|
|
363
|
+
Compiling unicode-segmentation v1.13.3
|
|
364
|
+
Compiling convert_case v0.11.0
|
|
365
|
+
Compiling sha-1 v0.10.1
|
|
366
|
+
Compiling sugar_path v1.2.1
|
|
55
367
|
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
56
368
|
Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
|
|
57
369
|
Compiling swc_plugin_reactlynx_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx-compat)
|
|
58
|
-
Finished `release` profile [optimized] target(s) in
|
|
370
|
+
Finished `release` profile [optimized] target(s) in 2m 27s
|
|
File without changes
|
|
@@ -10,7 +10,11 @@ export default defineConfig({
|
|
|
10
10
|
test: {
|
|
11
11
|
name: 'react/transform',
|
|
12
12
|
coverage: {
|
|
13
|
-
exclude: [
|
|
13
|
+
exclude: [
|
|
14
|
+
'./__test__/*.bench.js',
|
|
15
|
+
'./crates/**/tests/__swc_snapshots__/**',
|
|
16
|
+
'./tests/__swc_snapshots__/**',
|
|
17
|
+
],
|
|
14
18
|
},
|
|
15
19
|
},
|
|
16
20
|
plugins: [
|
package/types/react.docs.d.ts
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
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
|
|
|
5
|
+
/**
|
|
6
|
+
* `@lynx-js/react` is React for Lynx. It keeps the React 17 API surface,
|
|
7
|
+
* re-exporting the standard hooks and APIs, and adds what the dual-thread
|
|
8
|
+
* model needs: main-thread functions, the data a page receives from native,
|
|
9
|
+
* and a few compile-time directives and macros.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
*
|
|
13
|
+
* The React APIs below behave as the
|
|
14
|
+
* {@link https://react.dev/reference/react | official React reference}
|
|
15
|
+
* describes them, unless a page says otherwise. They are compatible with
|
|
16
|
+
* React 17 and {@link https://preactjs.com/guide/v10/switching-to-preact/ | Preact}.
|
|
17
|
+
*
|
|
18
|
+
* React entered its "concurrent" era with
|
|
19
|
+
* {@link https://react.dev/blog/2022/03/29/react-v18 | React 18}. Concurrent
|
|
20
|
+
* features such as `useTransition` and `useDeferredValue` make strict demands
|
|
21
|
+
* on how the host schedules work — they depend on browser Web APIs or on the
|
|
22
|
+
* React Native architecture. Lynx evolves its own architecture, so ReactLynx
|
|
23
|
+
* builds on React 17 and keeps the React programming model. The parts of
|
|
24
|
+
* {@link https://react.dev/blog/2024/04/25/react-19 | React 19} and the
|
|
25
|
+
* {@link https://react.dev/learn/react-compiler | React Compiler} that do not
|
|
26
|
+
* depend on the concurrent architecture are still on the table.
|
|
27
|
+
*
|
|
28
|
+
* For an introduction to ReactLynx, see the
|
|
29
|
+
* {@link https://lynxjs.org/react/ | ReactLynx guides}.
|
|
30
|
+
*
|
|
31
|
+
* @groupDescription Hooks
|
|
32
|
+
* Hooks that ReactLynx adds on top of React, plus the React hooks it
|
|
33
|
+
* re-exports or re-implements for the dual-thread model.
|
|
34
|
+
*
|
|
35
|
+
* @groupDescription Components
|
|
36
|
+
* Provider and consumer components for the data a Lynx page receives from
|
|
37
|
+
* the native side, and the components re-exported from React.
|
|
38
|
+
*
|
|
39
|
+
* @groupDescription Functions
|
|
40
|
+
* Functions for crossing the thread boundary, creating elements outside JSX
|
|
41
|
+
* and mounting the root.
|
|
42
|
+
*
|
|
43
|
+
* @groupDescription Types
|
|
44
|
+
* The types and classes exported by `@lynx-js/react`. Augment `InitData` and
|
|
45
|
+
* `GlobalProps` in your project to type the data your page receives.
|
|
46
|
+
*
|
|
47
|
+
* @document ../docs/directives.md
|
|
48
|
+
* @document ../docs/macros.md
|
|
49
|
+
* @document ../docs/global-events.md
|
|
50
|
+
* @document ../docs/import-attributes.md
|
|
51
|
+
*
|
|
52
|
+
* @packageDocumentation
|
|
53
|
+
*/
|
|
54
|
+
|
|
5
55
|
import type { ReactLynxChildren } from '../runtime/lib/index.js';
|
|
6
56
|
|
|
7
57
|
declare global {
|
|
@@ -49,8 +99,7 @@ declare global {
|
|
|
49
99
|
}
|
|
50
100
|
|
|
51
101
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @see https://react.dev/reference/react/hooks
|
|
102
|
+
* @group Hooks
|
|
54
103
|
*/
|
|
55
104
|
export {
|
|
56
105
|
useCallback,
|
|
@@ -64,25 +113,91 @@ export {
|
|
|
64
113
|
useSyncExternalStore,
|
|
65
114
|
} from 'react';
|
|
66
115
|
|
|
67
|
-
export { useEffect, useLayoutEffect
|
|
116
|
+
export { useEffect, useLayoutEffect } from '../runtime/lib/core/hooks/react.js';
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Catches errors thrown by the components below and lets the component
|
|
120
|
+
* render a fallback.
|
|
121
|
+
* @see https://preactjs.com/guide/v10/hooks/#useerrorboundary
|
|
122
|
+
*
|
|
123
|
+
* @group Hooks
|
|
124
|
+
*/
|
|
125
|
+
export { useErrorBoundary } from '../runtime/lib/core/hooks/react.js';
|
|
68
126
|
|
|
69
127
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @see https://react.dev/reference/react/apis
|
|
128
|
+
* @group Functions
|
|
72
129
|
*/
|
|
73
130
|
export { createContext, forwardRef, lazy, memo } from 'react';
|
|
74
131
|
|
|
75
132
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
133
|
+
* Lets you group elements without a wrapper node.
|
|
134
|
+
*
|
|
135
|
+
* @see {@link https://react.dev/reference/react/Fragment | React Docs}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
*
|
|
139
|
+
* ```tsx
|
|
140
|
+
* import { Fragment } from '@lynx-js/react';
|
|
141
|
+
*
|
|
142
|
+
* <Fragment>
|
|
143
|
+
* <text>Hello</text>
|
|
144
|
+
* <text>World</text>
|
|
145
|
+
* </Fragment>
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
*
|
|
150
|
+
* ```tsx
|
|
151
|
+
* // Using the <></> shorthand syntax:
|
|
152
|
+
*
|
|
153
|
+
* <>
|
|
154
|
+
* <text>Hello</text>
|
|
155
|
+
* <text>World</text>
|
|
156
|
+
* </>
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @public
|
|
160
|
+
*
|
|
161
|
+
* @group Components
|
|
162
|
+
*
|
|
163
|
+
* @function
|
|
164
|
+
*/
|
|
165
|
+
export const Fragment: typeof import('react').Fragment;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Lets you display a fallback until its children have finished loading.
|
|
169
|
+
*
|
|
170
|
+
* @see {@link https://react.dev/reference/react/Suspense | React Docs}
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
*
|
|
174
|
+
* ```tsx
|
|
175
|
+
* import { Suspense, lazy } from '@lynx-js/react';
|
|
176
|
+
*
|
|
177
|
+
* const ProfileDetails = lazy(() => import('./ProfileDetails.jsx'));
|
|
178
|
+
*
|
|
179
|
+
* <Suspense fallback={<Loading />}>
|
|
180
|
+
* <ProfileDetails />
|
|
181
|
+
* </Suspense>
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @public
|
|
185
|
+
*
|
|
186
|
+
* @group Components
|
|
187
|
+
*
|
|
188
|
+
* @function
|
|
78
189
|
*/
|
|
79
|
-
export
|
|
190
|
+
export const Suspense: typeof import('react').Suspense;
|
|
80
191
|
|
|
81
192
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @see https://react.dev/reference/react/legacy
|
|
193
|
+
* @group Components
|
|
84
194
|
*/
|
|
85
|
-
export { Component, PureComponent
|
|
195
|
+
export { Component, PureComponent } from 'react';
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @group Functions
|
|
199
|
+
*/
|
|
200
|
+
export { createRef, isValidElement } from 'react';
|
|
86
201
|
|
|
87
202
|
export type { CloneElement, CreateElement, ReactLynxChildren } from '../runtime/lib/index.js';
|
|
88
203
|
|
|
@@ -92,6 +207,8 @@ export type { CloneElement, CreateElement, ReactLynxChildren } from '../runtime/
|
|
|
92
207
|
* Arrays returned by `map`, `forEach`, and `toArray` are frozen.
|
|
93
208
|
*
|
|
94
209
|
* @public
|
|
210
|
+
*
|
|
211
|
+
* @group Functions
|
|
95
212
|
*/
|
|
96
213
|
export const Children: ReactLynxChildren;
|
|
97
214
|
|
|
@@ -100,6 +217,8 @@ export const Children: ReactLynxChildren;
|
|
|
100
217
|
* `NodesRef` (e.g. from `ref={setX}` or `lynx.createSelectorQuery()`).
|
|
101
218
|
*
|
|
102
219
|
* @public
|
|
220
|
+
*
|
|
221
|
+
* @group Functions
|
|
103
222
|
*/
|
|
104
223
|
export { createPortal } from '../runtime/lib/index.js';
|
|
105
224
|
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '../global.js';
|
|
2
|
-
/**
|
|
3
|
-
* Loads and initializes the Lepus chunk in the main thread.
|
|
4
|
-
* @param __schema - The dynamic component entry for loading the Lepus chunk.
|
|
5
|
-
* @returns A boolean indicating whether the Lepus chunk was loaded and initialized successfully.
|
|
6
|
-
*/
|
|
7
|
-
declare function loadWorkletRuntime(__schema?: string): boolean;
|
|
8
|
-
export { loadWorkletRuntime };
|
|
@@ -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 '../global.js';
|
|
5
|
-
/**
|
|
6
|
-
* Loads and initializes the Lepus chunk in the main thread.
|
|
7
|
-
* @param __schema - The dynamic component entry for loading the Lepus chunk.
|
|
8
|
-
* @returns A boolean indicating whether the Lepus chunk was loaded and initialized successfully.
|
|
9
|
-
*/
|
|
10
|
-
function loadWorkletRuntime(__schema) {
|
|
11
|
-
if (typeof __LoadLepusChunk === 'undefined') {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
if (globalThis.lynxWorkletImpl) {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
return __LoadLepusChunk('worklet-runtime', {
|
|
18
|
-
dynamicComponentEntry: __schema,
|
|
19
|
-
chunkType: 0,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { loadWorkletRuntime };
|
|
23
|
-
//# sourceMappingURL=loadRuntime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadRuntime.js","sourceRoot":"","sources":["../../../src/worklet-runtime/bindings/loadRuntime.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAE1D,OAAO,cAAc,CAAC;AAEtB;;;;GAIG;AACH,SAAS,kBAAkB,CAAC,QAAiB;IAC3C,IAAI,OAAO,gBAAgB,KAAK,WAAW,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,UAAU,CAAC,eAAe,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,gBAAgB,CAAC,iBAAiB,EAAE;QACzC,qBAAqB,EAAE,QAAQ;QAC/B,SAAS,EAAE,CAAC;KACb,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,25 +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
|
-
|
|
5
|
-
import '../global.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Loads and initializes the Lepus chunk in the main thread.
|
|
9
|
-
* @param __schema - The dynamic component entry for loading the Lepus chunk.
|
|
10
|
-
* @returns A boolean indicating whether the Lepus chunk was loaded and initialized successfully.
|
|
11
|
-
*/
|
|
12
|
-
function loadWorkletRuntime(__schema?: string): boolean {
|
|
13
|
-
if (typeof __LoadLepusChunk === 'undefined') {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (globalThis.lynxWorkletImpl) {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
return __LoadLepusChunk('worklet-runtime', {
|
|
20
|
-
dynamicComponentEntry: __schema,
|
|
21
|
-
chunkType: 0,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { loadWorkletRuntime };
|