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,5 +1,4 @@
|
|
|
1
1
|
import type { DeviceSpec } from "../../../../../src/device-catalog.ts";
|
|
2
|
-
import type { ConfiguredOneWidget } from "../../../../../src/oneWidgetContract.ts";
|
|
3
2
|
import type { TenantStorageClearResult, TenantStorageResetRequest } from "../../../../../src/storageSnapshotContract.ts";
|
|
4
3
|
import type { LockstepFramePosition } from "../capture/lockstep-clockContract.js";
|
|
5
4
|
import type { AnimationClockSnapshot } from "../engine/animation-clockContract.js";
|
|
@@ -19,6 +18,7 @@ import type { WorkletMessage } from "./worklet-wire.js";
|
|
|
19
18
|
import type { NativeSurfacePresented } from "../../../peach-globals/src/index.js";
|
|
20
19
|
import type { PeachPageServingAuthority } from "../../../peach-globals/src/index.js";
|
|
21
20
|
import type { AppSettingsSpecifier } from "../../../peach-globals/src/index.js";
|
|
21
|
+
import type { ConfiguredOneWidget } from "../../../peach-globals/src/oneWidgetContract.js";
|
|
22
22
|
export type { ShellScenePayload } from "./shell-scene-schema.js";
|
|
23
23
|
export type ShellCommandName = 'launchApp' | 'stopApp' | 'goBack' | 'goHome' | 'openSwitcher' | 'openSwitcherCard' | 'toggleLock' | 'setTopOverlay' | 'setStatusBarHidden' | 'setInspectMode';
|
|
24
24
|
export type ShellCommandPayload = {
|
|
@@ -100,6 +100,14 @@ export interface ShellRecentApp {
|
|
|
100
100
|
}
|
|
101
101
|
import type { HostToWorker, WorkerToHost } from "./protocol.js";
|
|
102
102
|
export type ShellHostToWorker = {
|
|
103
|
+
type: 'homeWidget';
|
|
104
|
+
placement: {
|
|
105
|
+
appId: string;
|
|
106
|
+
name: string;
|
|
107
|
+
widget: ConfiguredOneWidget;
|
|
108
|
+
revision: number;
|
|
109
|
+
} | null;
|
|
110
|
+
} | {
|
|
103
111
|
type: 'resetTenantStorage';
|
|
104
112
|
requestId: number;
|
|
105
113
|
request: TenantStorageResetRequest;
|
|
@@ -134,7 +142,7 @@ export type ShellHostToWorker = {
|
|
|
134
142
|
pageServingAuthority: PeachPageServingAuthority | null;
|
|
135
143
|
personalHomeApps: import("../../../peach-globals/src/index.js").PeachHomeApp[] | null;
|
|
136
144
|
nativeEnginePreview: boolean;
|
|
137
|
-
simScopeId
|
|
145
|
+
simScopeId: string;
|
|
138
146
|
localStorageEntries?: Array<[string, string]>;
|
|
139
147
|
workletSAB?: SharedArrayBuffer;
|
|
140
148
|
workletMemory?: WebAssembly.Memory;
|
|
@@ -292,7 +300,7 @@ export type ShellWorkerToHost = {
|
|
|
292
300
|
requestId: number;
|
|
293
301
|
result: TenantStorageClearResult;
|
|
294
302
|
} | Extract<WorkerToHost, {
|
|
295
|
-
type: 'debugHeld';
|
|
303
|
+
type: 'debugHeld' | 'nativeProcessService';
|
|
296
304
|
}> | import("./native-widgetContract.js").NativeWidgetHomeCommand | {
|
|
297
305
|
type: 'webViewFrameReady';
|
|
298
306
|
instanceId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type RuntimePlatform, type FrameInsets, type DevicePosture, type PhysicalCutoutRect, type CornerRadii, type DeviceSpec, type DeviceModel, type InterfacePose, type DisplayHold, type SizeClass, type InterfaceOrientation, type LandscapeSide, type RotateDirection, type SceneVerticalBar } from "../../../../../src/device-catalog.ts";
|
|
1
|
+
import { type RuntimePlatform, type FrameInsets, type DevicePosture, type PhysicalCutoutRect, type CornerRadii, type DeviceSpec, type DeviceModel, type IosDeviceModel, devices, type InterfacePose, type DisplayHold, type SizeClass, type InterfaceOrientation, type LandscapeSide, type RotateDirection, type SceneVerticalBar, isDeviceModel, listSelectableDeviceModels } from "../../../../../src/device-catalog.ts";
|
|
2
|
+
export { devices, isDeviceModel, listSelectableDeviceModels, type DeviceModel, type IosDeviceModel, };
|
|
2
3
|
export declare function statusRowDeltaY(rowCenter: number | undefined, statusBarHeight: number): number;
|
|
3
4
|
export declare function scaleCornerRadii(radii: CornerRadii, factor: number): CornerRadii;
|
|
4
5
|
export declare function formatCornerRadii(radii: CornerRadii, unit?: (value: number) => string): string;
|
|
@@ -82,3 +83,4 @@ export declare function nearestPhoneModel(screen: {
|
|
|
82
83
|
width: number;
|
|
83
84
|
height: number;
|
|
84
85
|
}): DeviceModel;
|
|
86
|
+
export declare function verticalBarStatusHidden(spec: Pick<DeviceSpec, 'posture' | 'width' | 'height'>): boolean;
|
|
@@ -11,7 +11,7 @@ export interface DuoFoldDisplay {
|
|
|
11
11
|
frameToken(): number;
|
|
12
12
|
markDirty(): void;
|
|
13
13
|
waitForLayout(): Promise<void>;
|
|
14
|
-
|
|
14
|
+
hingeChanged?(): void;
|
|
15
15
|
coversArrivingDisplay?: () => boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const pageDuoFoldDisplay: DuoFoldDisplay;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCookieOperations } from "
|
|
1
|
+
import { createCookieOperations } from "./guest/http-cookie-storage.js";
|
|
2
2
|
import type { SootSimWebViewHostRequest, SootSimWebKitEvent } from "../../peach-globals/src/index.js";
|
|
3
3
|
export declare const WEBVIEW_INSTANCE_ATTRIBUTE = "data-peach-webview";
|
|
4
4
|
export declare const WEBVIEW_HOST_BINDING = "__peachWebViewHost";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type AppBundleResources = Record<string, {
|
|
2
|
+
uri: string;
|
|
3
|
+
sha256: string;
|
|
4
|
+
contentType: string;
|
|
5
|
+
byteLength: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function isAppBundleResourcePath(path: string): boolean;
|
|
8
|
+
export declare function insertAppBundleResourcesFooter(source: string, resources: AppBundleResources): string;
|
|
9
|
+
export declare function readAppBundleResourcesFooter(source: string): AppBundleResources;
|
|
10
|
+
export declare function readAppBundleResources(value: unknown): AppBundleResources;
|
|
@@ -10,7 +10,7 @@ export interface SootSimNativeCompositor {
|
|
|
10
10
|
awaitPageShown?: boolean;
|
|
11
11
|
advanceOnly?: boolean;
|
|
12
12
|
}): Promise<CompositorStepPhases>;
|
|
13
|
-
waitForDisplayPresentation?(surfaceIds: SootSimPresentationSurface[]): Promise<number>;
|
|
13
|
+
waitForDisplayPresentation?(surfaceIds: SootSimPresentationSurface[], forceFrame?: boolean): Promise<number>;
|
|
14
14
|
forceRenderForCapture?(requestId: number): Promise<number>;
|
|
15
15
|
recordPresentations?: SootSimRecordPresentations;
|
|
16
16
|
getBackend?: () => string;
|
|
@@ -9,7 +9,7 @@ export { SOOTSIM_BOOT_STAGE_ORDER, SOOTSIM_TENANT_READY_MARK, SOOTSIM_BOOT_MARKS
|
|
|
9
9
|
export { isDeviceHardwareAction, type DeviceHardwareAction, } from "./eventBridgeContract.js";
|
|
10
10
|
export type { SootsimBridgeStatusDetail, SootsimActiveAppChangeDetail, SootsimSettingsPage, SootsimSettingsRoute, SootsimNavigateAppDetail, SootsimNavigateHomeDetail, SootsimEmbedVisibilityDetail, SootsimEmbedInteraction, SootsimEngineFailureDetail, SootsimBootStage, SootsimBootMarkName, SootsimBootMark, SootsimHostKeyDetail, SootsimHapticActivityDetail, SootsimColorScheme, SootsimTopOverlayKind, SootsimEventMap, SootsimEventName, } from "./eventBridgeContract.js";
|
|
11
11
|
export type { SootSimTestQueryFilter, SootSimTextCandidatesOptions, SootSimTextCandidate, SootSimTextCandidatesResult, SootSimDumpTreeOptions, SootSimInspectPointOptions, SootSimTapTargetOptions, SootSimListInspectableOptions, SootSimRequestEntry, SootSimRequestCounts, SootSimTestBridge, SootSimRenderReadinessStats, SootSimTestBridgeMethod, SootSimTestBridgeArgs, SootSimTestBridgeResult, } from "./testBridgeContract.js";
|
|
12
|
-
export type { SootSimInspectNeighborDirection, SootSimTapPathEntry, SootSimTapRefusal, SootSimTapTargetMatch, SootSimTapTargetVerification, SootSimNativePresentationInfo, SootSimTapResult, SootSimTapTargetStrategy, SootSimTapTargetInfo, SootSimRouteInfo, SootSimUndeclaredScreen, SootSimScrollToResult, SootSimCursorState, SootSimLoupeState, SootSimEditMenuRect, SootSimEditMenuItem, SootSimEditMenuState, SootSimTextSelection, SootSimTextSelectionHandles, SootSimAnimationSource, SootSimAnimationInfo, SootSimAnimationTraceSample, SootSimAnimationTraceStatus, SootSimRuntimeState, SootSimScreenTransitionWaitOptions, SootSimScreenTransitionWaitResult, SootSimInspectDeviceInfo, SootSimInspectAncestor, SootSimInspectBoxModel, SootSimInspectImageSource, SootSimInspectHookKind, SootSimInspectHookSummary, SootSimInspectCommitCause, SootSimInspectLastCommit, SootSimInspectReactInfo, SootSimInspectNavigationInfo, SootSimInspectTimelineEntry, SootSimInspectTreeNode, SootSimInspectInfo, PeachSemanticInspectInfo, PointerDispatchOptions, PeachAccessibilityNode, PeachSwiftUiAccessibility, PeachDebugSnapshotOperation, SootSimTargetMatcher, SootSimTargetObservation, PeachPeerStatsProgress, PeachPeerStats, SootSimAccessibilityState, SootSimAccessibilityValue, SootSimAccessibilityLiveRegion, SootSimFocusedNodeInfo, SootSimAccessibilityInput, SootSimNodeInfo, SootSimNodeRecord, SootSimStyleTokenBinding, SootSimCapturedTextSegment, SootSimCapturedTextLine, SootSimRenderTreeNode, SootSimRenderTreeSnapshot, SootSimSemanticRenderTreeNode, SootSimSemanticRenderTreeSnapshot, SootSimCaptureTransactionReceipt, SootSimCaptureBoundLongPressReceipt, SootSimCaptureBoundTapReceipt, SootSimDebugNodeInfo, SootSimVisibleFrame, SootSimVisibilityNodeRef, SootSimVisibleFrameHidden, SootSimLayout, SootSimDeviceSpec, } from "./nodeContract.js";
|
|
12
|
+
export type { SootSimInspectNeighborDirection, SootSimTapPathEntry, SootSimTapRefusal, SootSimTapTargetMatch, SootSimTapTargetVerification, SootSimNativePresentationInfo, SootSimTapResult, SootSimTapTargetStrategy, SootSimTapTargetInfo, SootSimRouteInfo, SootSimUndeclaredScreen, SootSimScrollToResult, SootSimCursorState, SootSimLoupeState, SootSimEditMenuRect, SootSimEditMenuItem, SootSimEditMenuState, SootSimTextSelection, SootSimTextSelectionHandles, SootSimAnimationSource, SootSimAnimationInfo, SootSimAnimationTraceSample, SootSimAnimationTraceStatus, WorkletAnimationLocation, WorkletAnimationResult, WorkletAnimationTarget, SootSimRuntimeState, SootSimScreenTransitionWaitOptions, SootSimScreenTransitionWaitResult, SootSimInspectDeviceInfo, SootSimInspectAncestor, SootSimInspectBoxModel, SootSimInspectImageSource, SootSimInspectHookKind, SootSimInspectHookSummary, SootSimInspectCommitCause, SootSimInspectLastCommit, SootSimInspectReactInfo, SootSimInspectNavigationInfo, SootSimInspectTimelineEntry, SootSimInspectTreeNode, SootSimInspectInfo, SimStyleOverrides, PeachSemanticInspectInfo, PointerDispatchOptions, PeachAccessibilityNode, PeachSwiftUiAccessibility, PeachDebugSnapshotOperation, SootSimTargetMatcher, SootSimTargetObservation, PeachPeerStatsProgress, PeachPeerStats, SootSimAccessibilityState, SootSimAccessibilityValue, SootSimAccessibilityLiveRegion, SootSimFocusedNodeInfo, SootSimAccessibilityInput, SootSimNodeInfo, SootSimNodeRecord, SootSimStyleTokenBinding, SootSimCapturedTextSegment, SootSimCapturedTextLine, SootSimRenderTreeNode, SootSimRenderTreeSnapshot, SootSimSemanticRenderTreeNode, SootSimSemanticRenderTreeSnapshot, SootSimCaptureTransactionReceipt, SootSimCaptureBoundLongPressReceipt, SootSimCaptureBoundTapReceipt, SootSimDebugNodeInfo, SootSimVisibleFrame, SootSimVisibilityNodeRef, SootSimVisibleFrameHidden, SootSimLayout, SootSimDeviceSpec, } from "./nodeContract.js";
|
|
13
13
|
export type { SootSimInteractBridge } from "./interactionBridgeContract.js";
|
|
14
14
|
export { isTextInputEditCommand, NATIVE_TEXT_INPUT_TYPES, } from "./keyboardBridgeContract.js";
|
|
15
15
|
export type { GuardedTextInputResult, TextInputEditRange, NativeTextInputIntent, NormalizedTextInputEditCommand, TextInputEditCommand, SootSimKeyboardBridge, } from "./keyboardBridgeContract.js";
|
|
@@ -36,7 +36,7 @@ export type { SootSimElectronBridge } from "./electronBridgeContract.js";
|
|
|
36
36
|
export { isBoxViewingMessage } from "./shellBridgeContract.js";
|
|
37
37
|
export type { PeachHomeApp, PeachHomeStorageValue, PeachHomeStorageBinding, PeachHomeScreenConfig, SootSimConsoleBuffer, SootSimShellCommands, SootSimMainShellBridge, SootSimDemoShareLeaseOptions, SootSimDemoShareBridge, BoxViewingMode, BoxViewingMessage, } from "./shellBridgeContract.js";
|
|
38
38
|
export type { SootSimNativeCompositor, SootSimRenderActivityState, SootSimPresentationRecording, SootSimPresentationRecordingCommand, SootSimPresentationRecordingReceipt, SootSimRecordedPresentation, SootSimRecordPresentations, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, SootSimVideoStreamBridge, SootSimLiveCompositeFreshStage, SootSimLiveCompositePublicationStatus, } from "./compositorBridgeContract.js";
|
|
39
|
-
export type { PeachAnimatedExecution, CompositorStepPhases, PeachLockstepTenantFrame, SootSimLockstepFrameReceipt, LockstepInputReceipt, LockstepScheduledInput, SootSimLockstepCaptureController, SootSimLockstepCaptureBridge, } from "./lockstepCaptureBridgeContract.js";
|
|
39
|
+
export type { PeachAnimatedExecution, CompositorStepPhases, PeachLockstepTenantFrame, SootSimLockstepFrameReceipt, LockstepInputReceipt, LockstepScheduledInput, SootSimLockstepStepOptions, SootSimLockstepCaptureController, SootSimLockstepCaptureBridge, } from "./lockstepCaptureBridgeContract.js";
|
|
40
40
|
export type { LockstepFramePosition, PointerDeliveryTarget, PointerDeliveryPendingDrop, PointerDeliveryStats, SootSimShellHostBridge, } from "./shellHostBridgeContract.js";
|
|
41
41
|
export type { SootSimLaunchArguments, SootSimExternalAppLifecycleOptions, SootSimStorageResetStrategy, SootSimExternalAppResetOptions, SootSimExternalAppResetResult, SootSimExternalAppStorageClearOptions, SootSimWebStorageName, SootSimHotRemountBridge, ResetOptions, ResetResult, ResetStrategy, } from "./appLifecycleBridgeContract.js";
|
|
42
42
|
export { maestroSelectorMatcher } from "./maestro-selector.js";
|
|
@@ -54,6 +54,7 @@ export type LockstepInputReceipt = {
|
|
|
54
54
|
export type LockstepScheduledInput = {
|
|
55
55
|
afterMs: number;
|
|
56
56
|
eventAfterMs?: number;
|
|
57
|
+
animationAfterMs?: number;
|
|
57
58
|
phase: LockstepInputReceipt['phase'];
|
|
58
59
|
x: number;
|
|
59
60
|
y: number;
|
|
@@ -68,6 +69,11 @@ export interface NativeScreenTransitionClock {
|
|
|
68
69
|
timestampMs: number;
|
|
69
70
|
}[];
|
|
70
71
|
}
|
|
72
|
+
export type SootSimLockstepStepOptions = {
|
|
73
|
+
awaitPageShown?: boolean;
|
|
74
|
+
composite?: boolean;
|
|
75
|
+
inputLimit?: number;
|
|
76
|
+
};
|
|
71
77
|
export interface SootSimLockstepCaptureController {
|
|
72
78
|
readonly initialFrame: SootSimLockstepFrameReceipt;
|
|
73
79
|
readonly inputReceipts: LockstepInputReceipt[];
|
|
@@ -78,12 +84,9 @@ export interface SootSimLockstepCaptureController {
|
|
|
78
84
|
captureRequestId: number;
|
|
79
85
|
};
|
|
80
86
|
scheduleInput(events: LockstepScheduledInput[]): Promise<void>;
|
|
81
|
-
stepFrame(elapsedMs?: number, options?:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}): Promise<SootSimLockstepFrameReceipt>;
|
|
85
|
-
flushFrame(options?: {
|
|
86
|
-
awaitPageShown?: boolean;
|
|
87
|
+
stepFrame(elapsedMs?: number, options?: SootSimLockstepStepOptions): Promise<SootSimLockstepFrameReceipt>;
|
|
88
|
+
flushFrame(options?: SootSimLockstepStepOptions & {
|
|
89
|
+
inputThroughMs?: number;
|
|
87
90
|
}): Promise<SootSimLockstepFrameReceipt>;
|
|
88
91
|
framesForOffset(offsetMs: number): number;
|
|
89
92
|
stageTouchOffsetMs(touches: ReadonlyArray<{
|
|
@@ -159,6 +159,15 @@ export interface SootSimAnimationInfo {
|
|
|
159
159
|
visible?: boolean;
|
|
160
160
|
ownerNodeIds?: number[];
|
|
161
161
|
}
|
|
162
|
+
export interface WorkletAnimationLocation {
|
|
163
|
+
generation: number;
|
|
164
|
+
id: number;
|
|
165
|
+
}
|
|
166
|
+
export type WorkletAnimationTarget = WorkletAnimationLocation | 'all';
|
|
167
|
+
export type WorkletAnimationResult = {
|
|
168
|
+
generation: number;
|
|
169
|
+
rows: SootSimAnimationInfo[];
|
|
170
|
+
}[] | number;
|
|
162
171
|
export interface SootSimAnimationTraceSample {
|
|
163
172
|
t: number;
|
|
164
173
|
value: number;
|
|
@@ -328,6 +337,7 @@ export interface SootSimInspectTreeNode {
|
|
|
328
337
|
pressable?: boolean;
|
|
329
338
|
hidden?: boolean;
|
|
330
339
|
}
|
|
340
|
+
export type SimStyleOverrides = Record<string, number | string | null>;
|
|
331
341
|
export interface SootSimInspectInfo {
|
|
332
342
|
nodeId: number;
|
|
333
343
|
sessionId?: string;
|
|
@@ -604,6 +614,7 @@ export type SootSimSemanticRenderTreeNode = Pick<SootSimRenderTreeNode, 'nodeId'
|
|
|
604
614
|
inspect: Pick<SootSimInspectInfo, 'absolute' | 'visibleFrame' | 'role' | 'accessibilityLabel' | 'accessibilityHidden' | 'readsFirst' | 'readsChildren' | 'menuPrimaryAction' | 'readsInOrder' | 'layered' | 'accessibilityContainer' | 'accessibilityGroup' | 'accessibilityFrame'> & {
|
|
605
615
|
disabled: boolean;
|
|
606
616
|
hasAccessibilityActions?: true;
|
|
617
|
+
accessibilityRespondsToUserInteraction?: false;
|
|
607
618
|
};
|
|
608
619
|
};
|
|
609
620
|
export type SootSimSemanticRenderTreeSnapshot = Omit<SootSimRenderTreeSnapshot, 'nodes'> & {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const HOME_WIDGET_FAMILIES: readonly ['systemSmall', 'systemMedium', 'systemLarge', 'systemExtraLargePortrait'];
|
|
2
|
+
export type HomeWidgetFamily = (typeof HOME_WIDGET_FAMILIES)[number];
|
|
3
|
+
export declare function isHomeWidgetFamily(value: unknown): value is HomeWidgetFamily;
|
|
4
|
+
export interface OneWidgetMetadata {
|
|
5
|
+
appName: string;
|
|
6
|
+
bundleId: string;
|
|
7
|
+
kind: string;
|
|
8
|
+
suite: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
description: string;
|
|
11
|
+
families: HomeWidgetFamily[];
|
|
12
|
+
sources: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
export interface OneWidgetPackage {
|
|
15
|
+
packagePath: string;
|
|
16
|
+
watched: string[];
|
|
17
|
+
widget: OneWidgetMetadata;
|
|
18
|
+
}
|
|
19
|
+
export declare const ONE_WIDGET_PATH = "/__peach/one-widget";
|
|
20
|
+
export interface ConfiguredOneWidget {
|
|
21
|
+
metadata: OneWidgetMetadata;
|
|
22
|
+
projectRoot: string;
|
|
23
|
+
appIdentity: string;
|
|
24
|
+
bundleUrl: string;
|
|
25
|
+
packageUrl: string;
|
|
26
|
+
urlSchemes: string[];
|
|
27
|
+
}
|
|
28
|
+
export declare function parseConfiguredOneWidget(value: unknown): ConfiguredOneWidget | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peachsim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2937",
|
|
4
4
|
"description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
|
|
5
5
|
"author": "Tamagui LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
"@ruby/prism": "2.1.0",
|
|
292
292
|
"@types/ws": "^8.5.13",
|
|
293
293
|
"acorn": "^8.16.0",
|
|
294
|
-
"
|
|
294
|
+
"one": "workspace:*",
|
|
295
295
|
"oxc-parser": "^0.112.0",
|
|
296
296
|
"peach-engine": "workspace:*",
|
|
297
297
|
"peach-kit": "workspace:*",
|
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"510ae4a9e842fdae053200bbe4d3a0b4e6c04fd145d96407eb7e0759d8a67fd4","file":"node/cli-510ae4a9e842fdae053200bbe4d3a0b4e6c04fd145d96407eb7e0759d8a67fd4.cjs"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
|
|
4
|
+
#if defined(__OBJC__) && !defined(__swift__)
|
|
5
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
6
|
+
|
|
7
|
+
typedef NSString *CHHapticEventType NS_TYPED_ENUM;
|
|
8
|
+
typedef NSString *CHHapticEventParameterID NS_TYPED_ENUM;
|
|
9
|
+
typedef NSString *CHHapticDynamicParameterID NS_TYPED_ENUM;
|
|
10
|
+
typedef NSString *CHHapticPatternKey NS_TYPED_ENUM;
|
|
11
|
+
typedef NSString *CHHapticAudioResourceKey NS_TYPED_ENUM;
|
|
12
|
+
typedef NSUInteger CHHapticAudioResourceID;
|
|
13
|
+
|
|
14
|
+
extern const NSTimeInterval CHHapticTimeImmediate;
|
|
15
|
+
extern NSErrorDomain const CoreHapticsErrorDomain;
|
|
16
|
+
|
|
17
|
+
extern CHHapticEventType const CHHapticEventTypeHapticTransient;
|
|
18
|
+
extern CHHapticEventType const CHHapticEventTypeHapticContinuous;
|
|
19
|
+
extern CHHapticEventType const CHHapticEventTypeAudioContinuous;
|
|
20
|
+
extern CHHapticEventType const CHHapticEventTypeAudioCustom;
|
|
21
|
+
|
|
22
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDHapticIntensity;
|
|
23
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDHapticSharpness;
|
|
24
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDAttackTime;
|
|
25
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDDecayTime;
|
|
26
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDReleaseTime;
|
|
27
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDSustained;
|
|
28
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDAudioVolume;
|
|
29
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDAudioPitch;
|
|
30
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDAudioPan;
|
|
31
|
+
extern CHHapticEventParameterID const CHHapticEventParameterIDAudioBrightness;
|
|
32
|
+
|
|
33
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDHapticIntensityControl;
|
|
34
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDHapticSharpnessControl;
|
|
35
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDHapticAttackTimeControl;
|
|
36
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDHapticDecayTimeControl;
|
|
37
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDHapticReleaseTimeControl;
|
|
38
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioVolumeControl;
|
|
39
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioPanControl;
|
|
40
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioBrightnessControl;
|
|
41
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioPitchControl;
|
|
42
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioAttackTimeControl;
|
|
43
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioDecayTimeControl;
|
|
44
|
+
extern CHHapticDynamicParameterID const CHHapticDynamicParameterIDAudioReleaseTimeControl;
|
|
45
|
+
|
|
46
|
+
extern CHHapticPatternKey const CHHapticPatternKeyVersion;
|
|
47
|
+
extern CHHapticPatternKey const CHHapticPatternKeyPattern;
|
|
48
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEvent;
|
|
49
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventType;
|
|
50
|
+
extern CHHapticPatternKey const CHHapticPatternKeyTime;
|
|
51
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventDuration;
|
|
52
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventWaveformPath;
|
|
53
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventParameters;
|
|
54
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventWaveformUseVolumeEnvelope;
|
|
55
|
+
extern CHHapticPatternKey const CHHapticPatternKeyEventWaveformLoopEnabled;
|
|
56
|
+
extern CHHapticPatternKey const CHHapticPatternKeyParameter;
|
|
57
|
+
extern CHHapticPatternKey const CHHapticPatternKeyParameterID;
|
|
58
|
+
extern CHHapticPatternKey const CHHapticPatternKeyParameterValue;
|
|
59
|
+
extern CHHapticPatternKey const CHHapticPatternKeyParameterCurve;
|
|
60
|
+
extern CHHapticPatternKey const CHHapticPatternKeyParameterCurveControlPoints;
|
|
61
|
+
|
|
62
|
+
extern CHHapticAudioResourceKey const CHHapticAudioResourceKeyUseVolumeEnvelope;
|
|
63
|
+
extern CHHapticAudioResourceKey const CHHapticAudioResourceKeyLoopEnabled;
|
|
64
|
+
|
|
65
|
+
typedef NS_ERROR_ENUM(CoreHapticsErrorDomain, CHHapticErrorCode) {
|
|
66
|
+
CHHapticErrorCodeEngineNotRunning = -4805,
|
|
67
|
+
CHHapticErrorCodeOperationNotPermitted = -4806,
|
|
68
|
+
CHHapticErrorCodeEngineStartTimeout = -4808,
|
|
69
|
+
CHHapticErrorCodeNotSupported = -4809,
|
|
70
|
+
CHHapticErrorCodeServerInitFailed = -4810,
|
|
71
|
+
CHHapticErrorCodeServerInterrupted = -4811,
|
|
72
|
+
CHHapticErrorCodeInvalidPatternPlayer = -4812,
|
|
73
|
+
CHHapticErrorCodeInvalidPatternData = -4813,
|
|
74
|
+
CHHapticErrorCodeInvalidPatternDictionary = -4814,
|
|
75
|
+
CHHapticErrorCodeInvalidAudioSession = -4815,
|
|
76
|
+
CHHapticErrorCodeInvalidEngineParameter = -4816,
|
|
77
|
+
CHHapticErrorCodeInvalidParameterType = -4820,
|
|
78
|
+
CHHapticErrorCodeInvalidEventType = -4821,
|
|
79
|
+
CHHapticErrorCodeInvalidEventTime = -4822,
|
|
80
|
+
CHHapticErrorCodeInvalidEventDuration = -4823,
|
|
81
|
+
CHHapticErrorCodeInvalidAudioResource = -4824,
|
|
82
|
+
CHHapticErrorCodeResourceNotAvailable = -4825,
|
|
83
|
+
CHHapticErrorCodeBadEventEntry = -4830,
|
|
84
|
+
CHHapticErrorCodeBadParameterEntry = -4831,
|
|
85
|
+
CHHapticErrorCodeInvalidTime = -4840,
|
|
86
|
+
CHHapticErrorCodeFileNotFound = -4851,
|
|
87
|
+
CHHapticErrorCodeInsufficientPower = -4897,
|
|
88
|
+
CHHapticErrorCodeUnknownError = -4898,
|
|
89
|
+
CHHapticErrorCodeMemoryError = -4899,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
typedef NS_ENUM(NSInteger, CHHapticEngineFinishedAction) {
|
|
93
|
+
CHHapticEngineFinishedActionStopEngine = 1,
|
|
94
|
+
CHHapticEngineFinishedActionLeaveEngineRunning = 2,
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
typedef NS_ENUM(NSInteger, CHHapticEngineStoppedReason) {
|
|
98
|
+
CHHapticEngineStoppedReasonAudioSessionInterrupt = 1,
|
|
99
|
+
CHHapticEngineStoppedReasonApplicationSuspended = 2,
|
|
100
|
+
CHHapticEngineStoppedReasonIdleTimeout = 3,
|
|
101
|
+
CHHapticEngineStoppedReasonNotifyWhenFinished = 4,
|
|
102
|
+
CHHapticEngineStoppedReasonEngineDestroyed = 5,
|
|
103
|
+
CHHapticEngineStoppedReasonGameControllerDisconnect = 6,
|
|
104
|
+
CHHapticEngineStoppedReasonSystemError = -1,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
typedef void (^CHHapticCompletionHandler)(NSError * _Nullable error);
|
|
108
|
+
typedef CHHapticEngineFinishedAction (^CHHapticEngineFinishedHandler)(NSError * _Nullable error);
|
|
109
|
+
typedef void (^CHHapticEngineStoppedHandler)(CHHapticEngineStoppedReason stoppedReason);
|
|
110
|
+
typedef void (^CHHapticEngineResetHandler)(void);
|
|
111
|
+
typedef void (^CHHapticAdvancedPatternPlayerCompletionHandler)(NSError * _Nullable error);
|
|
112
|
+
|
|
113
|
+
@class CHHapticDynamicParameter;
|
|
114
|
+
@class CHHapticEvent;
|
|
115
|
+
@class CHHapticEventParameter;
|
|
116
|
+
@class CHHapticParameterCurve;
|
|
117
|
+
@class CHHapticPattern;
|
|
118
|
+
@class AVAudioSession;
|
|
119
|
+
|
|
120
|
+
@protocol CHHapticParameterAttributes <NSObject>
|
|
121
|
+
@property (readonly) float minValue;
|
|
122
|
+
@property (readonly) float maxValue;
|
|
123
|
+
@property (readonly) float defaultValue;
|
|
124
|
+
@end
|
|
125
|
+
|
|
126
|
+
@protocol CHHapticDeviceCapability
|
|
127
|
+
@property (readonly) BOOL supportsHaptics;
|
|
128
|
+
@property (readonly) BOOL supportsAudio;
|
|
129
|
+
- (nullable id<CHHapticParameterAttributes>)attributesForEventParameter:(CHHapticEventParameterID)inParameter
|
|
130
|
+
eventType:(CHHapticEventType)type
|
|
131
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
132
|
+
- (nullable id<CHHapticParameterAttributes>)attributesForDynamicParameter:(CHHapticDynamicParameterID)inParameter
|
|
133
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
134
|
+
@end
|
|
135
|
+
|
|
136
|
+
@protocol CHHapticPatternPlayer <NSObject>
|
|
137
|
+
- (BOOL)startAtTime:(NSTimeInterval)time error:(NSError * _Nullable * _Nullable)outError;
|
|
138
|
+
- (BOOL)stopAtTime:(NSTimeInterval)time error:(NSError * _Nullable * _Nullable)outError;
|
|
139
|
+
- (BOOL)sendParameters:(NSArray<CHHapticDynamicParameter *> *)parameters
|
|
140
|
+
atTime:(NSTimeInterval)time
|
|
141
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
142
|
+
- (BOOL)scheduleParameterCurve:(CHHapticParameterCurve *)parameterCurve
|
|
143
|
+
atTime:(NSTimeInterval)time
|
|
144
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
145
|
+
- (BOOL)cancelAndReturnError:(NSError * _Nullable * _Nullable)outError;
|
|
146
|
+
@property BOOL isMuted;
|
|
147
|
+
@end
|
|
148
|
+
|
|
149
|
+
@protocol CHHapticAdvancedPatternPlayer <CHHapticPatternPlayer>
|
|
150
|
+
- (BOOL)pauseAtTime:(NSTimeInterval)time error:(NSError * _Nullable * _Nullable)outError;
|
|
151
|
+
- (BOOL)resumeAtTime:(NSTimeInterval)time error:(NSError * _Nullable * _Nullable)outError;
|
|
152
|
+
- (BOOL)seekToOffset:(NSTimeInterval)offsetTime error:(NSError * _Nullable * _Nullable)outError;
|
|
153
|
+
@property BOOL loopEnabled;
|
|
154
|
+
@property NSTimeInterval loopEnd;
|
|
155
|
+
@property float playbackRate;
|
|
156
|
+
@property BOOL isMuted;
|
|
157
|
+
@property (copy) CHHapticAdvancedPatternPlayerCompletionHandler completionHandler;
|
|
158
|
+
@end
|
|
159
|
+
|
|
160
|
+
@interface CHHapticEventParameter : NSObject
|
|
161
|
+
@property (readonly, strong) CHHapticEventParameterID parameterID;
|
|
162
|
+
@property float value;
|
|
163
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
164
|
+
- (instancetype)initWithParameterID:(CHHapticEventParameterID)parameterID
|
|
165
|
+
value:(float)value NS_DESIGNATED_INITIALIZER;
|
|
166
|
+
@end
|
|
167
|
+
|
|
168
|
+
@interface CHHapticDynamicParameter : NSObject
|
|
169
|
+
@property (readonly, strong) CHHapticDynamicParameterID parameterID;
|
|
170
|
+
@property float value;
|
|
171
|
+
@property NSTimeInterval relativeTime;
|
|
172
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
173
|
+
- (instancetype)initWithParameterID:(CHHapticDynamicParameterID)parameterID
|
|
174
|
+
value:(float)value
|
|
175
|
+
relativeTime:(NSTimeInterval)time NS_DESIGNATED_INITIALIZER;
|
|
176
|
+
@end
|
|
177
|
+
|
|
178
|
+
@interface CHHapticEvent : NSObject
|
|
179
|
+
@property (readonly, strong) CHHapticEventType type;
|
|
180
|
+
@property (readonly, strong) NSArray<CHHapticEventParameter *> *eventParameters;
|
|
181
|
+
@property NSTimeInterval relativeTime;
|
|
182
|
+
@property NSTimeInterval duration;
|
|
183
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
184
|
+
- (instancetype)initWithEventType:(CHHapticEventType)type
|
|
185
|
+
parameters:(NSArray<CHHapticEventParameter *> *)eventParams
|
|
186
|
+
relativeTime:(NSTimeInterval)time;
|
|
187
|
+
- (instancetype)initWithEventType:(CHHapticEventType)type
|
|
188
|
+
parameters:(NSArray<CHHapticEventParameter *> *)eventParams
|
|
189
|
+
relativeTime:(NSTimeInterval)time
|
|
190
|
+
duration:(NSTimeInterval)duration;
|
|
191
|
+
- (instancetype)initWithAudioResourceID:(CHHapticAudioResourceID)resID
|
|
192
|
+
parameters:(NSArray<CHHapticEventParameter *> *)eventParams
|
|
193
|
+
relativeTime:(NSTimeInterval)time;
|
|
194
|
+
- (instancetype)initWithAudioResourceID:(CHHapticAudioResourceID)resID
|
|
195
|
+
parameters:(NSArray<CHHapticEventParameter *> *)eventParams
|
|
196
|
+
relativeTime:(NSTimeInterval)time
|
|
197
|
+
duration:(NSTimeInterval)duration;
|
|
198
|
+
@end
|
|
199
|
+
|
|
200
|
+
@interface CHHapticPattern : NSObject
|
|
201
|
+
@property (readonly) NSTimeInterval duration;
|
|
202
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
203
|
+
- (nullable instancetype)initWithEvents:(NSArray<CHHapticEvent *> *)events
|
|
204
|
+
parameters:(NSArray<CHHapticDynamicParameter *> *)parameters
|
|
205
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
206
|
+
- (nullable instancetype)initWithEvents:(NSArray<CHHapticEvent *> *)events
|
|
207
|
+
parameterCurves:(NSArray<CHHapticParameterCurve *> *)parameterCurves
|
|
208
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
209
|
+
- (nullable instancetype)initWithDictionary:(NSDictionary<CHHapticPatternKey, id> *)patternDict
|
|
210
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
211
|
+
- (nullable instancetype)initWithContentsOfURL:(NSURL *)ahapURL
|
|
212
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
213
|
+
- (nullable NSDictionary<CHHapticPatternKey, id> *)exportDictionaryAndReturnError:(NSError * _Nullable * _Nullable)outError;
|
|
214
|
+
@end
|
|
215
|
+
|
|
216
|
+
@interface CHHapticEngine : NSObject
|
|
217
|
+
@property (readonly) NSTimeInterval currentTime;
|
|
218
|
+
@property (atomic, copy) CHHapticEngineStoppedHandler stoppedHandler;
|
|
219
|
+
@property (atomic, copy) CHHapticEngineResetHandler resetHandler;
|
|
220
|
+
@property (nonatomic) BOOL playsHapticsOnly;
|
|
221
|
+
@property (nonatomic) BOOL playsAudioOnly;
|
|
222
|
+
@property (nonatomic) BOOL isMutedForAudio;
|
|
223
|
+
@property (nonatomic) BOOL isMutedForHaptics;
|
|
224
|
+
@property (nonatomic, getter=isAutoShutdownEnabled) BOOL autoShutdownEnabled;
|
|
225
|
+
|
|
226
|
+
+ (id<CHHapticDeviceCapability>)capabilitiesForHardware;
|
|
227
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
228
|
+
- (nullable instancetype)initAndReturnError:(NSError * _Nullable * _Nullable)outError NS_DESIGNATED_INITIALIZER;
|
|
229
|
+
- (nullable instancetype)initWithAudioSession:(nullable AVAudioSession *)audioSession
|
|
230
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
231
|
+
- (void)startWithCompletionHandler:(nullable CHHapticCompletionHandler)completionHandler;
|
|
232
|
+
- (BOOL)startAndReturnError:(NSError * _Nullable * _Nullable)outError;
|
|
233
|
+
- (void)stopWithCompletionHandler:(nullable CHHapticCompletionHandler)completionHandler;
|
|
234
|
+
- (void)notifyWhenPlayersFinished:(CHHapticEngineFinishedHandler)finishedHandler;
|
|
235
|
+
- (nullable id<CHHapticPatternPlayer>)createPlayerWithPattern:(CHHapticPattern *)pattern
|
|
236
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
237
|
+
- (nullable id<CHHapticAdvancedPatternPlayer>)createAdvancedPlayerWithPattern:(CHHapticPattern *)pattern
|
|
238
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
239
|
+
- (CHHapticAudioResourceID)registerAudioResource:(NSURL *)resourceURL
|
|
240
|
+
options:(NSDictionary *)options
|
|
241
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
242
|
+
- (BOOL)unregisterAudioResource:(CHHapticAudioResourceID)resourceID
|
|
243
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
244
|
+
- (BOOL)playPatternFromURL:(NSURL *)fileURL
|
|
245
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
246
|
+
- (BOOL)playPatternFromData:(NSData *)data
|
|
247
|
+
error:(NSError * _Nullable * _Nullable)outError;
|
|
248
|
+
@end
|
|
249
|
+
|
|
250
|
+
NS_ASSUME_NONNULL_END
|
|
251
|
+
#endif
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
4
|
+
|
|
5
|
+
API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0))
|
|
6
|
+
PEACH_SWIFT_CLASS(IntentsCore) @interface INImage : NSObject <NSCopying>
|
|
7
|
+
|
|
8
|
+
+ (instancetype)imageNamed:(NSString *)name;
|
|
9
|
+
+ (instancetype)imageWithImageData:(NSData *)imageData;
|
|
10
|
+
+ (nullable instancetype)imageWithURL:(NSURL *)URL;
|
|
11
|
+
|
|
12
|
+
@end
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
@class INImage;
|
|
4
|
+
|
|
5
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
6
|
+
|
|
7
|
+
API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0))
|
|
8
|
+
PEACH_SWIFT_CLASS(IntentsCore) @interface INIntent : NSObject <NSCopying>
|
|
9
|
+
|
|
10
|
+
@property (readonly, copy, nullable, nonatomic) NSString *identifier;
|
|
11
|
+
@property (copy, nullable, nonatomic) NSString *suggestedInvocationPhrase API_AVAILABLE(ios(12.0), watchos(5.0));
|
|
12
|
+
|
|
13
|
+
- (void)setImage:(nullable INImage *)image forParameterNamed:(NSString *)parameterName API_AVAILABLE(ios(12.0), watchos(5.0)) NS_REFINED_FOR_SWIFT;
|
|
14
|
+
- (nullable INImage *)imageForParameterNamed:(NSString *)parameterName API_AVAILABLE(ios(12.0), watchos(5.0)) NS_REFINED_FOR_SWIFT;
|
|
15
|
+
|
|
16
|
+
@end
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
FOUNDATION_EXPORT NSString *const INStartAudioCallIntentIdentifier API_DEPRECATED("use INStartCallIntentIdentifier", ios(10.0, 13.0), watchos(3.2, 6.0)) API_UNAVAILABLE(macos, tvos);
|
|
4
|
+
FOUNDATION_EXPORT NSString *const INStartVideoCallIntentIdentifier API_DEPRECATED("use INStartCallIntentIdentifier", ios(10.0, 13.0), watchos(3.2, 6.0)) API_UNAVAILABLE(macos, tvos);
|
|
5
|
+
FOUNDATION_EXPORT NSString *const INSearchCallHistoryIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
6
|
+
FOUNDATION_EXPORT NSString *const INStartCallIntentIdentifier API_AVAILABLE(ios(13.0), watchos(6.0)) API_UNAVAILABLE(macos, tvos);
|
|
7
|
+
FOUNDATION_EXPORT NSString *const INAnswerCallIntentIdentifier API_AVAILABLE(ios(16.2), macos(13.1), watchos(9.2), tvos(16.2));
|
|
8
|
+
FOUNDATION_EXPORT NSString *const INHangUpCallIntentIdentifier API_AVAILABLE(ios(16.2), macos(13.1), watchos(9.2), tvos(16.2));
|
|
9
|
+
FOUNDATION_EXPORT NSString *const INSetAudioSourceInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
10
|
+
FOUNDATION_EXPORT NSString *const INSetClimateSettingsInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
11
|
+
FOUNDATION_EXPORT NSString *const INSetDefrosterSettingsInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
12
|
+
FOUNDATION_EXPORT NSString *const INSetSeatSettingsInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
13
|
+
FOUNDATION_EXPORT NSString *const INSetProfileInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
14
|
+
FOUNDATION_EXPORT NSString *const INSaveProfileInCarIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
15
|
+
FOUNDATION_EXPORT NSString *const INStartWorkoutIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
16
|
+
FOUNDATION_EXPORT NSString *const INPauseWorkoutIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
17
|
+
FOUNDATION_EXPORT NSString *const INEndWorkoutIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
18
|
+
FOUNDATION_EXPORT NSString *const INCancelWorkoutIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
19
|
+
FOUNDATION_EXPORT NSString *const INResumeWorkoutIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
20
|
+
FOUNDATION_EXPORT NSString *const INSetRadioStationIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
|
|
21
|
+
FOUNDATION_EXPORT NSString *const INSendMessageIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
22
|
+
FOUNDATION_EXPORT NSString *const INSearchForMessagesIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
23
|
+
FOUNDATION_EXPORT NSString *const INSetMessageAttributeIntentIdentifier API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos);
|
|
24
|
+
FOUNDATION_EXPORT NSString *const INSendPaymentIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
25
|
+
FOUNDATION_EXPORT NSString *const INRequestPaymentIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
26
|
+
FOUNDATION_EXPORT NSString *const INSearchForPhotosIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
27
|
+
FOUNDATION_EXPORT NSString *const INStartPhotoPlaybackIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
28
|
+
FOUNDATION_EXPORT NSString *const INListRideOptionsIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
29
|
+
FOUNDATION_EXPORT NSString *const INRequestRideIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
30
|
+
FOUNDATION_EXPORT NSString *const INGetRideStatusIntentIdentifier API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
4
|
+
|
|
5
|
+
API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0))
|
|
6
|
+
PEACH_SWIFT_CLASS(IntentsCore) @interface INIntentResponse : NSObject
|
|
7
|
+
|
|
8
|
+
@property (copy, nullable, nonatomic) NSUserActivity *userActivity;
|
|
9
|
+
|
|
10
|
+
@end
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
|
|
3
|
+
@class INIntent;
|
|
4
|
+
@class INIntentResponse;
|
|
5
|
+
|
|
6
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
7
|
+
|
|
8
|
+
typedef NS_ENUM(NSInteger, INInteractionDirection) {
|
|
9
|
+
INInteractionDirectionUnspecified = 0,
|
|
10
|
+
INInteractionDirectionOutgoing,
|
|
11
|
+
INInteractionDirectionIncoming,
|
|
12
|
+
} API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0));
|
|
13
|
+
|
|
14
|
+
API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0))
|
|
15
|
+
PEACH_SWIFT_CLASS(SwiftUICore) @interface INInteraction : NSObject
|
|
16
|
+
|
|
17
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
18
|
+
- (instancetype)initWithIntent:(INIntent *)intent response:(nullable INIntentResponse *)response NS_DESIGNATED_INITIALIZER;
|
|
19
|
+
|
|
20
|
+
- (void)donateInteractionWithCompletion:(void (^_Nullable)(NSError *_Nullable error))completion NS_SWIFT_NAME(donate(completion:));
|
|
21
|
+
|
|
22
|
+
+ (void)deleteAllInteractionsWithCompletion:(void (^_Nullable)(NSError *_Nullable error))completion NS_SWIFT_NAME(deleteAll(completion:));
|
|
23
|
+
+ (void)deleteInteractionsWithIdentifiers:(NSArray<NSString *> *)identifiers completion:(void (^_Nullable)(NSError *_Nullable error))completion NS_SWIFT_NAME(delete(with:completion:));
|
|
24
|
+
+ (void)deleteInteractionsWithGroupIdentifier:(NSString *)groupIdentifier completion:(void (^_Nullable)(NSError *_Nullable error))completion NS_SWIFT_NAME(delete(with:completion:));
|
|
25
|
+
|
|
26
|
+
@property (readonly, copy, nonatomic) INIntent *intent;
|
|
27
|
+
@property (readonly, copy, nullable, nonatomic) INIntentResponse *intentResponse;
|
|
28
|
+
@property (assign, nonatomic) INInteractionDirection direction;
|
|
29
|
+
@property (copy, nullable, nonatomic) NSDateInterval *dateInterval;
|
|
30
|
+
@property (copy, nonatomic) NSString *identifier;
|
|
31
|
+
@property (copy, nullable, nonatomic) NSString *groupIdentifier;
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
NS_ASSUME_NONNULL_END
|