peachsim 0.1.2935 → 0.1.2937
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/LICENSE +6 -8
- package/cli/account-gate.ts +20 -3
- package/cli/app-bundle-resources.ts +66 -19
- package/cli/catalog/meta.ts +2 -106
- package/cli/command-agent.ts +7 -0
- package/cli/command-registry.ts +0 -1
- package/cli/commands/control.ts +13 -5
- package/cli/commands/daemon.ts +4 -2
- package/cli/commands/device.ts +78 -8
- package/cli/commands/do-chain.ts +11 -8
- package/cli/commands/inspect/core.ts +4 -9
- package/cli/commands/inspect/settling.ts +1 -0
- package/cli/commands/logout.ts +6 -1
- package/cli/commands/map.ts +2 -6
- package/cli/commands/package.ts +112 -57
- package/cli/commands/shell-url.ts +0 -1
- package/cli/download-auth.ts +2 -0
- package/cli/drivers/playwright-provisioning.ts +10 -38
- package/cli/github-workflow-identity.ts +8 -0
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +5 -0
- package/cli/main.ts +2 -10
- package/cli/outbound-endpoints.ts +26 -0
- package/detox/index.ts +227 -131
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +47 -3
- package/dist-lib/bridge-contract-input.mjs +6 -6
- package/dist-lib/bridge-contract.cjs +10 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +12779 -9515
- package/dist-lib/capture-contract.cjs +39 -17
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +8 -8
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +6 -6
- package/dist-lib/detox/index.cjs +200 -132
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-Q5TRRYSO.mjs → acorn-IIBLEO25.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-UDWBTBVG.mjs → chunk-4FTPQKPT.mjs} +10 -1
- package/dist-lib/esm-chunks/chunk-4WIDTRBB.mjs +10232 -0
- package/dist-lib/esm-chunks/{chunk-LCMFYMT7.mjs → chunk-5QZOQ3NZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BJ2OGUX7.mjs → chunk-CIY67HNL.mjs} +39 -17
- package/dist-lib/esm-chunks/{chunk-SKQTNQYE.mjs → chunk-CQFEMJ64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AXWVXRHX.mjs → chunk-CWVMCW23.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTALOHQR.mjs → chunk-F6DZ4DS2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4R7IZRD.mjs → chunk-HJMF6O7L.mjs} +74 -46
- package/dist-lib/esm-chunks/chunk-I6T4PXJF.mjs +154 -0
- package/dist-lib/esm-chunks/{chunk-XWAUZKIA.mjs → chunk-IJU3JMWM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CXWUIOCH.mjs → chunk-KODEPXQC.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WJE5QHSD.mjs → chunk-LD4K2VBL.mjs} +155 -36
- package/dist-lib/esm-chunks/{chunk-2TSM64HI.mjs → chunk-LTE7YMEG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3GGOXUJA.mjs → chunk-M3CSKAJE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7G5UETIG.mjs → chunk-NA6DJPB6.mjs} +43 -1
- package/dist-lib/esm-chunks/{chunk-MSUHMNAI.mjs → chunk-NNAX24FS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VDJA4LP4.mjs → chunk-PZPJJBAS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UEEEJVQA.mjs → chunk-QXSTHMWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S2RJB5I7.mjs → chunk-RBPVK5YI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VRAXNGYT.mjs → chunk-SCT5OFDV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T3M73LGP.mjs → chunk-U3CJGYSP.mjs} +50 -6
- package/dist-lib/esm-chunks/{chunk-SLUGTGQQ.mjs → chunk-VXTOQ522.mjs} +12 -6
- package/dist-lib/esm-chunks/{chunk-EL44SZMV.mjs → chunk-WMSVGYTH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FEDEPSEV.mjs → chunk-WRWINRWK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BNO52N2S.mjs → chunk-YZF2USRD.mjs} +1905 -8760
- package/dist-lib/esm-chunks/{chunk-TQLKYMVP.mjs → chunk-ZNHR6C3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{download-auth-registry-G75MIT55.mjs → download-auth-registry-AHS5MSIB.mjs} +4 -4
- package/dist-lib/esm-chunks/{metro-layout-parser-FXLUDTYT.mjs → metro-layout-parser-24ZYK5UP.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-524D4MA2.mjs → swift-package-prebuilt-L4YNXQRD.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-app-module-EX544YJY.mjs → swift-sdk-app-module-RM652JSW.mjs} +87 -71
- package/dist-lib/esm-chunks/{swift-sdk-image-LOTMWVM7.mjs → swift-sdk-image-5PQ44UJT.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-UO6B3M4U.mjs → swift-sdk-image-producer-GD3SM6YI.mjs} +5 -5
- package/dist-lib/esm-chunks/swift-sdk-later-data-62QYJ2KH.mjs +590 -0
- package/dist-lib/expo-swift-bundle.cjs +21037 -17896
- package/dist-lib/expo-swift-metadata.cjs +8 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -8
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +22481 -18741
- package/dist-lib/host/fetch-proxy-handler.cjs +21079 -17980
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +68 -38
- package/dist-lib/kotlin-host.cjs +97 -21
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +23 -1
- package/dist-lib/metro-production-bundle.mjs +24 -4
- package/dist-lib/native-app-identity-project.cjs +3582 -571
- package/dist-lib/native-app-identity-project.mjs +1024 -398
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +132 -116
- package/dist-lib/public-origins-lib.json +215 -173
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +17 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +6 -7
- package/dist-lib/sdk.mjs +13 -14
- package/dist-lib/skills.cjs +23216 -19650
- package/dist-lib/swift-compile.cjs +4337 -2905
- package/dist-lib/swift-compile.mjs +15 -13
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +94 -32
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +9 -6
- package/dist-types/packages/peach-engine/src/canvaskit-artifact-urls.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/capture/compositor-presentation-recording.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/canvaskit-artifact-hashes.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/engine/guest-scene-inspect.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/metalTypes.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/engine/portalContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/guest/http-cookie-storage.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/guest/native-evaluation-lease.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/guest/nitro-jsi-host.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +225 -9
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-compositor.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-contract.d.ts +44 -10
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -27
- package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +2 -6
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/app-bundle-resources.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -6
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/oneWidgetContract.d.ts +28 -0
- package/package.json +2 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreHaptics.framework/Headers/CoreHaptics.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INImage.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntent.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentIdentifiers.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentResponse.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INOutgoingMessageType.h +7 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPerson.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPersonHandle.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent+UserNotifications.h +6 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSpeakableString.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +11 -7
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +0 -8
- package/sdk/ios/System/Library/Frameworks/MetalTypes.framework/Headers/MetalTypes.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/SLServiceTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/Social.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +5 -5
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/src/acorn-program.ts +3 -0
- package/src/audio-codec-archives.ts +141 -0
- package/src/bridge-contract-input.ts +61 -1
- package/src/bridge-contract.ts +45 -4
- package/src/bundle-channel.mjs +44 -30
- package/src/capture-contract.ts +57 -39
- package/src/conformance-comparison-contract.ts +2 -0
- package/src/expo-discovery-cache.ts +0 -2
- package/src/expo-macro-host.ts +8 -3
- package/src/expo-native-compiler-digest.ts +0 -1
- package/src/expo-native-prebuilt.ts +1 -1
- package/src/expo-native-workspace.ts +83 -45
- package/src/expo-pod-prebuilt.ts +1 -0
- package/src/expo-swift-host.ts +158 -77
- package/src/expo-swift-legacy-runtime-source.ts +12 -1
- package/src/expo-swift-view-source.ts +51 -20
- package/src/expo-workspace-exclusion.ts +7 -1
- package/src/expoSwiftContract.ts +10 -1
- package/src/ffmpeg-source-build.ts +123 -59
- package/src/genrule-archives.ts +7 -2
- package/src/genrule-library-builds.ts +101 -18
- package/src/host/bridge-host.ts +10 -1
- package/src/installed-native-libraries.ts +147 -23
- package/src/installed-package-versions.ts +30 -0
- package/src/ios-rn-bundle-request.ts +3 -1
- package/src/ios-rn-bundle.ts +38 -27
- package/src/ios-rn-compile.ts +23 -6
- package/src/ios-rn-startup.ts +2 -1
- package/src/java-module-abi.ts +4 -3
- package/src/kotlin-host.ts +4 -4
- package/src/kotlin-library-sources.ts +8 -5
- package/src/metro-production-bundle.ts +24 -0
- package/src/native-firebase-config.ts +2 -0
- package/src/native-framework-compiler.ts +5 -0
- package/src/native-package-slice-build.ts +3 -0
- package/src/native-package-slice.ts +15 -10
- package/src/native-preparation.ts +4 -1
- package/src/native-static-libraries.ts +107 -33
- package/src/nativeRuntimePackageIndex.ts +1 -4
- package/src/nitro-adapter.lock.json +286 -286
- package/src/nitro-app-providers.ts +20 -8
- package/src/nitro-compile.ts +131 -37
- package/src/nitro-dependencies.ts +42 -8
- package/src/nitro-source.ts +40 -36
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroAdapterContract.ts +32 -7
- package/src/nitroContract.ts +21 -37
- package/src/one-direct-host-source.ts +247 -140
- package/src/one-fabric.ts +129 -0
- package/src/one-native-controls-package.ts +95 -21
- package/src/one-native-controls-release.ts +147 -14
- package/src/one-native-source.ts +4 -1
- package/src/one-nitro-inputs.ts +1 -1
- package/src/one-nitro-source.ts +45 -1
- package/src/one-sdk/source.ts +10 -41
- package/src/one-widget-metadata.ts +2 -2
- package/src/one-widget-package.ts +1 -1
- package/src/oneSdkContract.ts +3 -0
- package/src/playwright-browser-paths.ts +30 -0
- package/src/pods-install.ts +6 -2
- package/src/pods-post-install.ts +2 -2
- package/src/pods-project.ts +10 -0
- package/src/podspec-ruby-stdlib.ts +73 -0
- package/src/podspec-ruby.ts +1 -1
- package/src/podspec-sources.ts +31 -13
- package/src/process-group.ts +135 -5
- package/src/published-swift-sdk.ts +25 -1
- package/src/react-native-bridge-modules.ts +35 -3
- package/src/react-native-core-build.ts +14 -2
- package/src/react-native-core.ts +12 -2
- package/src/rive-runtime-dependencies.ts +178 -40
- package/src/serverDiscoveryContract.ts +1 -1
- package/src/storageSnapshotContract.ts +1 -1
- package/src/swift-app-data-store.ts +35 -0
- package/src/swift-compile.ts +403 -121
- package/src/swift-compiler-digest.ts +4 -0
- package/src/swift-darwin-records.ts +6 -0
- package/src/swift-distribution-mirror.ts +10 -1
- package/src/swift-distribution.lock.json +19 -18
- package/src/swift-distribution.ts +17 -1
- package/src/swift-entry-module.ts +1 -0
- package/src/swift-guest-compile.ts +8 -1
- package/src/swift-host.ts +79 -23
- package/src/swift-installed-targets.ts +51 -20
- package/src/swift-objc-standin.ts +60 -8
- package/src/swift-packages.ts +104 -24
- package/src/swift-project-user.ts +2 -1
- package/src/swift-reproducible.ts +99 -1
- package/src/swift-root-lock.ts +52 -46
- package/src/swift-sdk-app-module.ts +65 -13
- package/src/swift-sdk-image-producer.ts +2 -1
- package/src/swift-sdk-image.ts +23 -8
- package/src/swift-sdk-later-data.ts +294 -44
- package/src/swift-sdk-surface.ts +233 -55
- package/src/swift-shared-sdk.ts +7 -0
- package/src/swift-standin-builtin-behavior.ts +18 -0
- package/src/swift-standin-emit.ts +242 -54
- package/src/swift-standins.ts +184 -38
- package/src/swift-startup-split.ts +19 -9
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +179 -9
- package/src/swift-xcframework.ts +16 -0
- package/src/swiftContract.ts +4 -1
- package/src/swiftSdkLinkContract.ts +2 -0
- package/src/swiftTargetContract.ts +1 -0
- package/src/turbo-bundle.ts +6 -3
- package/src/turbo-codegen-intake.ts +106 -16
- package/src/turbo-compile.ts +89 -68
- package/src/turbo-fabric-app.ts +287 -23
- package/src/turbo-provider-host.ts +122 -31
- package/src/turbo-runtime.lock.json +26 -26
- package/src/turbo-source.ts +374 -157
- package/src/vite-plugin.ts +48 -112
- package/src/wasm-binary-sections.ts +40 -0
- package/src/wasm-code-immediates.ts +35 -5
- package/src/widget-extension-bundle.ts +15 -1
- package/src/worklet-executable.ts +2 -1
- package/src/worklet-kernel.ts +5 -3
- package/src/worklets-babel.ts +2 -1
- package/src/xcode-project.ts +151 -53
- package/src/xcode-scheme-actions.ts +104 -0
- package/cli/commands/canvas.ts +0 -1204
- package/dist-lib/esm-chunks/chunk-B5QD2KEV.mjs +0 -2787
- package/dist-lib/vendor/magic-string.cjs +0 -1693
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +0 -127
- package/src/appBundleResourcesContract.ts +0 -51
- package/src/canvas-groups.ts +0 -28
- package/src/canvas-map-layout.ts +0 -161
- package/src/oneWidgetContract.ts +0 -134
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -28,8 +28,11 @@ __export(worklet_executable_exports, {
|
|
|
28
28
|
module.exports = __toCommonJS(worklet_executable_exports);
|
|
29
29
|
var import_acorn2 = require("peachsim/vendor/acorn");
|
|
30
30
|
|
|
31
|
-
// src/
|
|
31
|
+
// src/acorn-program.ts
|
|
32
32
|
var import_acorn = require("peachsim/vendor/acorn");
|
|
33
|
+
var acornProgram = (source) => (0, import_acorn.parse)(source, { ecmaVersion: "latest" });
|
|
34
|
+
|
|
35
|
+
// src/worklet-kernel.ts
|
|
33
36
|
var Unsupported = class extends Error {
|
|
34
37
|
};
|
|
35
38
|
function isNode(value) {
|
|
@@ -277,9 +280,9 @@ function styleOutputs(recipe, expression, path, outputs) {
|
|
|
277
280
|
}
|
|
278
281
|
outputs.push([path, recipe.value(expression)]);
|
|
279
282
|
}
|
|
280
|
-
function compileWorkletKernel(code) {
|
|
283
|
+
function compileWorkletKernel(code, parseProgram) {
|
|
281
284
|
try {
|
|
282
|
-
const program = (
|
|
285
|
+
const program = parseProgram(`(${code})`);
|
|
283
286
|
const [statement] = nodes(program.body);
|
|
284
287
|
if (!statement || statement.type !== "ExpressionStatement") return void 0;
|
|
285
288
|
const fn = node(statement.expression);
|
|
@@ -726,7 +729,7 @@ function compileWorkletExecutables(source, onInsert) {
|
|
|
726
729
|
}
|
|
727
730
|
const offset = Reflect.get(codeProperty, "end");
|
|
728
731
|
if (typeof offset !== "number") throw new Error("peach: worklet code has no offset");
|
|
729
|
-
const kernel = compileWorkletKernel(code);
|
|
732
|
+
const kernel = compileWorkletKernel(code, acornProgram);
|
|
730
733
|
const recipe = kernel ? `, __peachKernel: ${JSON.stringify(kernel)}` : "";
|
|
731
734
|
return { offset, text: `, __peachExecutable: (${body})${recipe}` };
|
|
732
735
|
});
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
parse
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-ZNHR6C3L.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__privateAdd,
|
|
7
7
|
__privateGet,
|
|
8
8
|
__publicField
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-LTE7YMEG.mjs";
|
|
10
|
+
|
|
11
|
+
// src/acorn-program.ts
|
|
12
|
+
var acornProgram = (source) => parse(source, { ecmaVersion: "latest" });
|
|
10
13
|
|
|
11
14
|
// src/worklet-kernel.ts
|
|
12
15
|
var Unsupported = class extends Error {
|
|
@@ -258,9 +261,9 @@ function styleOutputs(recipe, expression, path, outputs) {
|
|
|
258
261
|
}
|
|
259
262
|
outputs.push([path, recipe.value(expression)]);
|
|
260
263
|
}
|
|
261
|
-
function compileWorkletKernel(code) {
|
|
264
|
+
function compileWorkletKernel(code, parseProgram) {
|
|
262
265
|
try {
|
|
263
|
-
const program =
|
|
266
|
+
const program = parseProgram(`(${code})`);
|
|
264
267
|
const [statement] = nodes(program.body);
|
|
265
268
|
if (!statement || statement.type !== "ExpressionStatement") return void 0;
|
|
266
269
|
const fn = node(statement.expression);
|
|
@@ -707,7 +710,7 @@ function compileWorkletExecutables(source, onInsert) {
|
|
|
707
710
|
}
|
|
708
711
|
const offset = Reflect.get(codeProperty, "end");
|
|
709
712
|
if (typeof offset !== "number") throw new Error("peach: worklet code has no offset");
|
|
710
|
-
const kernel = compileWorkletKernel(code);
|
|
713
|
+
const kernel = compileWorkletKernel(code, acornProgram);
|
|
711
714
|
const recipe = kernel ? `, __peachKernel: ${JSON.stringify(kernel)}` : "";
|
|
712
715
|
return { offset, text: `, __peachExecutable: (${body})${recipe}` };
|
|
713
716
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { CANVASKIT_GRAPHITE_WORLD_FILES } from "./engine/generated/canvaskit-artifact-hashes.js";
|
|
2
|
+
export { CANVASKIT_GRAPHITE_WORLD_FILES };
|
|
2
3
|
export type CanvasKitArtifactBackend = 'graphite' | 'headless';
|
|
3
4
|
export declare function kotlinCanvasKitWasmPath(backend: CanvasKitArtifactBackend): string;
|
|
4
5
|
export declare function withCanvasKitArtifactHash(artifact: string, selectedHashes?: Record<string, string>): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const CANVASKIT_GRAPHITE_HASHES: {
|
|
2
|
+
readonly wasm: '4a6a19304f1f1ccc5185ca12fa9bcdd3e51592d58c528cfc1d9af7b9d6813c53';
|
|
3
|
+
readonly skottieWasm: '96e56f031e6ff05af1234573399983775cb2ef6d170e9c8451aa3b842a0dabfd';
|
|
4
|
+
readonly gifWasm: 'fbd8b52c3ce951884c5a3d570681a3f785e34977af72852f7347f4d029b04635';
|
|
5
|
+
readonly textData: '3e1c914d04e1cf4d40749b495c97e5a12079d9f8017d3b49a5451c98a1c71723';
|
|
6
|
+
readonly worldWasm: 'eac73362a00a8c7477931bf52de7cce00ef7b0bf03545200b9a3098502edd7c4';
|
|
7
|
+
readonly worldAnimationWasm: 'c68975877d44c6e9dfa3f9cee6133df26d3dcf9b72e39d3ed4b071ad841e6100';
|
|
8
|
+
readonly worldEffectsWasm: '2b611579ff4d5c4975a8bac41b91621c05ed80f86bb50db93114f0861e7a5e8c';
|
|
9
|
+
readonly worldParticlesWasm: 'fbb1686125d141525c5f7d894c9941e9272b6c3a8d8cb60078a44bcf4800856e';
|
|
10
|
+
readonly worldEnvironmentWasm: '99940785e8d71363734f5379574ca90a82a30f8f10f7b3d339d21e78de242a54';
|
|
11
|
+
readonly worldLightingWasm: '760c2e1e9bc7239cf85737634b382018a3044d0453a33a6434393fc7b0c41a5c';
|
|
12
|
+
};
|
|
13
|
+
export declare const CANVASKIT_HEADLESS_HASHES: {
|
|
14
|
+
readonly wasm: '559c117bd02e0c8c2beaa3800f717566ded7f74e8fc2008cc2bdb8aea2051e79';
|
|
15
|
+
readonly skottieWasm: 'b4cc5f85733aabd8e2346c42fcdff1307fa4bc5ec45cc929ab3015cd3d0ead12';
|
|
16
|
+
readonly gifWasm: '3fd155d217537d7d735acb3d30cf91c225cb0941856aa806dac96a8c022c1afd';
|
|
17
|
+
readonly textData: '3e1c914d04e1cf4d40749b495c97e5a12079d9f8017d3b49a5451c98a1c71723';
|
|
18
|
+
};
|
|
19
|
+
export declare const CANVASKIT_GRAPHITE_WORLD_FILES: {
|
|
20
|
+
readonly worldWasm: "canvaskit-graphite-world.wasm";
|
|
21
|
+
readonly worldAnimationWasm: "canvaskit-graphite-world-animation.wasm";
|
|
22
|
+
readonly worldEffectsWasm: "canvaskit-graphite-world-effects.wasm";
|
|
23
|
+
readonly worldParticlesWasm: "canvaskit-graphite-world-particles.wasm";
|
|
24
|
+
readonly worldEnvironmentWasm: "canvaskit-graphite-world-environment.wasm";
|
|
25
|
+
readonly worldLightingWasm: "canvaskit-graphite-world-lighting.wasm";
|
|
26
|
+
};
|
|
@@ -75,7 +75,7 @@ export declare function countGuestSceneNodes(root: PeachHostNode): number;
|
|
|
75
75
|
export declare function isMeaningfulGuestNode(record: GuestSceneNodeRecord): boolean;
|
|
76
76
|
export declare function isVisibleGuestNode(record: GuestSceneNodeRecord, occludedNodeIds?: ReadonlySet<number>): boolean;
|
|
77
77
|
export declare function guestToInspectInfo(record: GuestSceneNodeRecord): InspectInfo;
|
|
78
|
-
export declare function guestToNodeInfo(record: GuestSceneNodeRecord): SootSimNodeInfo;
|
|
78
|
+
export declare function guestToNodeInfo(record: Omit<GuestSceneNodeRecord, 'ancestors' | 'handlers'>): SootSimNodeInfo;
|
|
79
79
|
export declare function readGuestInspectTreeNodes(root: PeachHostNode, query?: VisibleFrameQuery): SootSimInspectTreeNode[];
|
|
80
80
|
export declare function guestToTapTargetInfo(record: GuestSceneNodeRecord, viewport: {
|
|
81
81
|
width: number;
|
|
@@ -14,6 +14,7 @@ interface NativeInspectNodeMeta {
|
|
|
14
14
|
containerAccessibilityLabel?: string;
|
|
15
15
|
nativeSurfaceId?: string;
|
|
16
16
|
hasAccessibilityActions?: true;
|
|
17
|
+
accessibilityRespondsToUserInteraction?: false;
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
automationChild?: boolean;
|
|
19
20
|
handlers: string[];
|
|
@@ -14,6 +14,7 @@ export type MetalShaderResource = {
|
|
|
14
14
|
index: number;
|
|
15
15
|
group: number;
|
|
16
16
|
binding: number;
|
|
17
|
+
unused?: true;
|
|
17
18
|
textureFormatBinding?: number;
|
|
18
19
|
pointer?: true;
|
|
19
20
|
mslType?: string;
|
|
@@ -170,7 +171,7 @@ export type MetalComputeOrigin = {
|
|
|
170
171
|
thread: MetalDimensions;
|
|
171
172
|
workgroup: MetalDimensions;
|
|
172
173
|
};
|
|
173
|
-
type MetalPlaneColorFormat = 'r8unorm' | 'rg8unorm' | 'r16float' | 'rg16float' | 'rgba16float';
|
|
174
|
+
type MetalPlaneColorFormat = 'r8unorm' | 'rg8unorm' | 'r16float' | 'rg16float' | 'rgba16float' | 'rgba32uint';
|
|
174
175
|
export type MetalRenderColorFormat = 'rgba8unorm' | 'bgra8unorm' | MetalPlaneColorFormat;
|
|
175
176
|
type MetalBlendComponent = readonly [
|
|
176
177
|
operation: number,
|
|
@@ -196,6 +197,7 @@ export type MetalRenderPipeline = {
|
|
|
196
197
|
vertex: string;
|
|
197
198
|
fragment: string;
|
|
198
199
|
colorFormat?: MetalRenderColorFormat;
|
|
200
|
+
colorWriteMask?: number;
|
|
199
201
|
blend?: MetalBlendState;
|
|
200
202
|
samples?: 4;
|
|
201
203
|
depth32float?: true;
|
|
@@ -205,24 +207,38 @@ export type MetalResourceBytes = {
|
|
|
205
207
|
index: number;
|
|
206
208
|
bytes: string;
|
|
207
209
|
};
|
|
210
|
+
export type MetalRenderBufferSource = MetalResourceBytes | {
|
|
211
|
+
index: number;
|
|
212
|
+
privateBuffer: number;
|
|
213
|
+
};
|
|
208
214
|
export type MetalTextureBytes = MetalResourceBytes & {
|
|
209
215
|
width: number;
|
|
210
216
|
height: number;
|
|
211
217
|
} & ({
|
|
212
218
|
privateTexture: number;
|
|
213
219
|
format: MetalRenderColorFormat;
|
|
220
|
+
arrayLength?: never;
|
|
214
221
|
attachment?: never;
|
|
215
222
|
storageWrite?: true;
|
|
216
223
|
} | {
|
|
217
224
|
privateTexture?: never;
|
|
218
225
|
format?: MetalPlaneColorFormat;
|
|
226
|
+
arrayLength?: never;
|
|
219
227
|
attachment?: number;
|
|
220
228
|
storageWrite?: never;
|
|
221
229
|
} | {
|
|
222
230
|
privateTexture?: never;
|
|
223
231
|
format: 'bgra8unorm';
|
|
232
|
+
arrayLength?: never;
|
|
224
233
|
attachment: number;
|
|
225
234
|
storageWrite: true;
|
|
235
|
+
} | {
|
|
236
|
+
privateTexture?: never;
|
|
237
|
+
attachment?: never;
|
|
238
|
+
storageWrite?: never;
|
|
239
|
+
format: 'r16float';
|
|
240
|
+
arrayLength: number;
|
|
241
|
+
height: 1;
|
|
226
242
|
});
|
|
227
243
|
export type MetalSamplerBinding = {
|
|
228
244
|
index: number;
|
|
@@ -235,7 +251,11 @@ export type MetalSamplerBinding = {
|
|
|
235
251
|
addressV: GPUAddressMode;
|
|
236
252
|
};
|
|
237
253
|
export type MetalResourceBindings = {
|
|
238
|
-
buffers: MetalResourceBytes
|
|
254
|
+
buffers: Array<MetalResourceBytes | {
|
|
255
|
+
index: number;
|
|
256
|
+
renderBuffer: number;
|
|
257
|
+
offset: number;
|
|
258
|
+
}>;
|
|
239
259
|
textures: MetalTextureBytes[];
|
|
240
260
|
samplers: MetalSamplerBinding[];
|
|
241
261
|
};
|
|
@@ -285,6 +305,7 @@ export type MetalRenderPassOperation = {
|
|
|
285
305
|
type: 'render';
|
|
286
306
|
attachment?: number;
|
|
287
307
|
privateTexture?: number;
|
|
308
|
+
renderBuffers?: MetalRenderBufferSource[];
|
|
288
309
|
pipeline: MetalRenderPipeline | null;
|
|
289
310
|
colorFormat?: MetalRenderColorFormat;
|
|
290
311
|
width: number;
|
|
@@ -363,6 +384,7 @@ interface MetalSourceCompileOptions {
|
|
|
363
384
|
languageVersion: number;
|
|
364
385
|
mathMode: number;
|
|
365
386
|
mathFloatingPointFunctions: number;
|
|
387
|
+
preserveInvariance?: boolean;
|
|
366
388
|
preprocessorMacros: Record<string, string>;
|
|
367
389
|
}
|
|
368
390
|
export type MetalDirectOperation = {
|
|
@@ -398,12 +420,20 @@ export type MetalDirectOperation = {
|
|
|
398
420
|
} | {
|
|
399
421
|
type: 'releaseTexture';
|
|
400
422
|
id: number;
|
|
423
|
+
} | {
|
|
424
|
+
type: 'registerPrivateBuffer';
|
|
425
|
+
length: number;
|
|
426
|
+
} | {
|
|
427
|
+
type: 'releaseBuffer';
|
|
428
|
+
id: number;
|
|
401
429
|
} | MetalPrivateTextureRegion | MetalComputeStage | MetalRenderPassOperation | {
|
|
402
430
|
type: 'renderBatch';
|
|
403
431
|
passes: MetalRenderPassOperation[];
|
|
432
|
+
renderBuffers?: MetalRenderBufferSource[];
|
|
404
433
|
} | {
|
|
405
434
|
type: 'renderSequence';
|
|
406
435
|
stages: MetalRenderStage[];
|
|
436
|
+
renderBuffers?: MetalRenderBufferSource[];
|
|
407
437
|
};
|
|
408
438
|
export type MetalDirectResult = {
|
|
409
439
|
kind: 'library';
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
import type { PeachHostNode } from "./types.js";
|
|
2
|
+
export declare const NativePortalView = "RNTPortalView";
|
|
3
|
+
export declare const NativePortalHost = "RNTPortalHostView";
|
|
4
|
+
import type { ReactNode, Ref } from 'react';
|
|
5
|
+
type PortalHostProps = {
|
|
6
|
+
name?: string;
|
|
7
|
+
pointerEvents?: 'box-none';
|
|
8
|
+
style?: unknown;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
type PortalViewProps = PortalHostProps & {
|
|
12
|
+
hostName: string;
|
|
13
|
+
nativeWindow?: boolean;
|
|
14
|
+
nativeWindowPresentation?: NativeWindowPresentation | null;
|
|
15
|
+
ref?: Ref<object>;
|
|
16
|
+
};
|
|
17
|
+
declare module 'react' {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
RNTPortalHostView: PortalHostProps;
|
|
21
|
+
RNTPortalView: PortalViewProps;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
2
25
|
export interface NativeWindowPresentation {
|
|
3
26
|
target: 'app-window' | 'keyboard-window';
|
|
4
27
|
order: number;
|
|
@@ -8,3 +31,4 @@ export interface NativeWindowPortalLayer {
|
|
|
8
31
|
presentation: NativeWindowPresentation;
|
|
9
32
|
portals: readonly PeachHostNode[];
|
|
10
33
|
}
|
|
34
|
+
export {};
|
|
@@ -410,6 +410,9 @@ export declare const DISPLAY_SERVER_FEATURE: {
|
|
|
410
410
|
readonly nativeScenePackets: number;
|
|
411
411
|
readonly rasterReferences: number;
|
|
412
412
|
readonly sharedSceneRasters: number;
|
|
413
|
+
readonly pipelinedSceneRasters: number;
|
|
414
|
+
readonly sharedPictures: number;
|
|
415
|
+
readonly scenePreview: number;
|
|
413
416
|
};
|
|
414
417
|
export declare const DISPLAY_SERVER_REQUIRED_FEATURES: number;
|
|
415
418
|
export declare const DISPLAY_SERVER_SUPPORTED_FEATURES: number;
|
|
@@ -906,7 +909,7 @@ export interface DisplayServerDisplayDemand {
|
|
|
906
909
|
maxWidth?: number;
|
|
907
910
|
maxHeight?: number;
|
|
908
911
|
}
|
|
909
|
-
export
|
|
912
|
+
export type DisplayServerPictureFrame = {
|
|
910
913
|
kind: 'pictureFrame';
|
|
911
914
|
seq: number;
|
|
912
915
|
epoch: number;
|
|
@@ -916,7 +919,9 @@ export interface DisplayServerPictureFrame {
|
|
|
916
919
|
height: number;
|
|
917
920
|
format: DisplayServerPictureFormat;
|
|
918
921
|
statusBarDark: boolean;
|
|
922
|
+
} & ({
|
|
919
923
|
bytes: Uint8Array;
|
|
924
|
+
contentHash?: never;
|
|
920
925
|
region?: {
|
|
921
926
|
baseSeq: number;
|
|
922
927
|
x: number;
|
|
@@ -924,7 +929,11 @@ export interface DisplayServerPictureFrame {
|
|
|
924
929
|
width: number;
|
|
925
930
|
height: number;
|
|
926
931
|
};
|
|
927
|
-
}
|
|
932
|
+
} | {
|
|
933
|
+
contentHash: string;
|
|
934
|
+
bytes?: never;
|
|
935
|
+
region?: never;
|
|
936
|
+
});
|
|
928
937
|
export interface DisplayServerAssetAck {
|
|
929
938
|
kind: 'assetAck';
|
|
930
939
|
seq: number;
|
|
@@ -1086,6 +1095,7 @@ export declare function decodeDisplayServerInput(bytes: Uint8Array, offset?: num
|
|
|
1086
1095
|
export declare function createDisplayServerSession(hello: DisplayServerHello): DisplayServerApplyResult;
|
|
1087
1096
|
export declare function applyDisplayServerMessage(state: DisplayServerSession, message: DisplayServerMessage, receiver?: 'host' | 'viewer'): DisplayServerApplyResult;
|
|
1088
1097
|
export declare const SHARED_SCENE_RASTER_PREFIX = "peach-raster:";
|
|
1098
|
+
export declare const SHARED_PICTURE_PREFIX = "peach-picture:";
|
|
1089
1099
|
export declare function sharedSceneRasterHash(uri: string): string | null;
|
|
1090
1100
|
export declare function isNetworkImageAssetUri(uri: string): boolean;
|
|
1091
1101
|
export declare function chunkAssetRegister(asset: DisplayServerAssembledAsset, epoch: number, nextSeq: () => number): DisplayServerAssetRegister[];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { BrowserURL } from "../../../peach-globals/src/browser-object-url.js";
|
|
2
|
+
import type { NativeEvaluationLease } from "./native-evaluation-lease.js";
|
|
3
|
+
type NativeCookie = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
domain?: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
expires?: string;
|
|
10
|
+
secure?: boolean;
|
|
11
|
+
httpOnly?: boolean;
|
|
12
|
+
sameSite?: 'lax' | 'strict' | 'none';
|
|
13
|
+
maxAge?: number;
|
|
14
|
+
};
|
|
15
|
+
export type StoredCookie = NativeCookie & {
|
|
16
|
+
domain: string;
|
|
17
|
+
path: string;
|
|
18
|
+
hostOnly: boolean;
|
|
19
|
+
expiresAt: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type CookieStore = Map<string, StoredCookie>;
|
|
22
|
+
declare class NativeCookieJar extends Map<string, StoredCookie> {
|
|
23
|
+
persistence?: {
|
|
24
|
+
storage: Storage;
|
|
25
|
+
key: string;
|
|
26
|
+
value: string | null;
|
|
27
|
+
};
|
|
28
|
+
private changed;
|
|
29
|
+
set(key: string, value: StoredCookie): this;
|
|
30
|
+
delete(key: string): boolean;
|
|
31
|
+
clear(): void;
|
|
32
|
+
}
|
|
33
|
+
export declare function bindNativeCookieStore(lease: NativeEvaluationLease): void;
|
|
34
|
+
export declare function cookieStoresForEvaluation(lease: NativeEvaluationLease): {
|
|
35
|
+
native: NativeCookieJar;
|
|
36
|
+
webKit: NativeCookieJar;
|
|
37
|
+
};
|
|
38
|
+
export declare const cookieStores: {
|
|
39
|
+
readonly native: NativeCookieJar;
|
|
40
|
+
readonly webKit: NativeCookieJar;
|
|
41
|
+
};
|
|
42
|
+
export declare function createCookieOperations(URLConstructor: typeof BrowserURL): {
|
|
43
|
+
storeResponseCookies: (store: CookieStore, url: string, headers: readonly string[]) => void;
|
|
44
|
+
restore: (cookies: unknown) => CookieStore;
|
|
45
|
+
cookiesMatching: (store: CookieStore, parsed: URL) => StoredCookie[];
|
|
46
|
+
parseCookieUrl: (url: string) => URL;
|
|
47
|
+
cookieKey: (cookie: Pick<StoredCookie, 'domain' | 'path' | 'name'>) => string;
|
|
48
|
+
purgeExpired: (store: CookieStore) => void;
|
|
49
|
+
storeCookie: (store: CookieStore, cookie: StoredCookie) => void;
|
|
50
|
+
setCookie: (store: CookieStore, url: string, cookie: NativeCookie) => boolean;
|
|
51
|
+
getCookies: (store: CookieStore, url: string) => Record<string, NativeCookie>;
|
|
52
|
+
cookieFromResponse: (cookieString: string) => NativeCookie;
|
|
53
|
+
};
|
|
54
|
+
export declare const nativeFetchCookies: {
|
|
55
|
+
request(url: string, store?: NativeCookieJar): string;
|
|
56
|
+
response(url: string, headers: readonly string[], store?: NativeCookieJar): void;
|
|
57
|
+
};
|
|
58
|
+
export declare const webKitCookieOperationsSource: string;
|
|
59
|
+
export declare const webKitCookieStorage: {
|
|
60
|
+
readonly default: NativeCookieJar;
|
|
61
|
+
isolated: () => CookieStore;
|
|
62
|
+
response(store: CookieStore, url: string, headers: readonly string[]): void;
|
|
63
|
+
observe(store: CookieStore, changed: () => void): () => void;
|
|
64
|
+
script(store: CookieStore, url: string, line: string): void;
|
|
65
|
+
policy(store: CookieStore): 0 | 1;
|
|
66
|
+
setPolicy(store: CookieStore, policy: 0 | 1): void;
|
|
67
|
+
matching(store: CookieStore, url: string): StoredCookie[];
|
|
68
|
+
setMany(store: CookieStore, cookies: StoredCookie[]): void;
|
|
69
|
+
all(store: CookieStore): StoredCookie[];
|
|
70
|
+
set(store: CookieStore, cookie: StoredCookie): void;
|
|
71
|
+
delete(store: CookieStore, cookie: Pick<StoredCookie, 'domain' | 'path' | 'name'>): void;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
@@ -28,6 +28,11 @@ export declare class NativeEvaluationLease {
|
|
|
28
28
|
readonly state: {
|
|
29
29
|
live: boolean;
|
|
30
30
|
};
|
|
31
|
+
previewStartup?: {
|
|
32
|
+
projectId: string;
|
|
33
|
+
routeKey: string;
|
|
34
|
+
sourceRevisionId: string;
|
|
35
|
+
};
|
|
31
36
|
private retiredAt;
|
|
32
37
|
private retirementStack;
|
|
33
38
|
private retirementFailureReported;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type NitroGuestExports = {
|
|
2
2
|
hostFunctionCall: (funcId: number, thisPtr: number, argsPtr: number, count: number, outPtr: number) => number;
|
|
3
|
-
bufferSync: (toHost: number) => void;
|
|
4
3
|
releaseObject: (handle: number) => void;
|
|
5
4
|
drain: () => void;
|
|
6
5
|
malloc: (size: number) => number;
|
|
@@ -15,6 +14,7 @@ export type NitroJsiHost = {
|
|
|
15
14
|
intern: (value: object) => number;
|
|
16
15
|
lookup: (handle: number) => unknown;
|
|
17
16
|
};
|
|
17
|
+
shareableValues: () => Iterable<object>;
|
|
18
18
|
dispose: () => void;
|
|
19
19
|
};
|
|
20
20
|
export declare function createNitroJsiHost(args: {
|
|
@@ -23,6 +23,8 @@ export declare function createNitroJsiHost(args: {
|
|
|
23
23
|
global: Record<string, unknown>;
|
|
24
24
|
microtasks?: JsiMicrotaskQueue;
|
|
25
25
|
privateNames?: readonly string[];
|
|
26
|
+
transferResultObjects?: () => boolean;
|
|
27
|
+
selectShareable?: (value: unknown) => value is object;
|
|
26
28
|
}): NitroJsiHost;
|
|
27
29
|
export declare const hostSchedulingGlobals: readonly ['queueMicrotask', 'requestAnimationFrame', 'cancelAnimationFrame', 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval'];
|
|
28
30
|
export declare class JsiMicrotaskQueue {
|