peachsim 0.1.2306 → 0.1.2363
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/README.md +5 -0
- package/cli/cdp.ts +81 -0
- package/cli/cloud-box-artifact.ts +6 -1
- package/cli/cloud-client.ts +19 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/box/bundle-plane.ts +28 -4
- package/cli/commands/box.ts +13 -8
- package/cli/commands/canvas.ts +752 -0
- package/cli/commands/cleanup.ts +2 -0
- package/cli/commands/control.ts +22 -6
- package/cli/commands/cpu-profile.ts +1 -80
- package/cli/commands/debug.ts +73 -5
- package/cli/commands/flow.ts +1 -1
- package/cli/commands/inspect/actions.ts +3 -1
- package/cli/commands/inspect/core.ts +18 -5
- package/cli/commands/inspect/settling.ts +20 -19
- package/cli/commands/inspect.ts +24 -14
- package/cli/commands/map.ts +31 -8
- package/cli/commands/platform.ts +89 -7
- package/cli/commands/serve.ts +66 -4
- package/cli/commands/shell-url.ts +25 -5
- package/cli/commands/task-trace.ts +234 -0
- package/cli/dev-build-freshness.ts +151 -49
- package/cli/drivers/linux-cocoapods.lock.json +303 -0
- package/cli/drivers/linux-cocoapods.ts +99 -0
- package/cli/drivers/playwright.ts +1 -5
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +6 -0
- package/cli/main.ts +6 -0
- package/cli/outbound-endpoints.ts +35 -2
- package/cli/output-redaction.ts +1 -1
- package/cli/remote-metro.ts +109 -0
- package/cli/task-trace.ts +166 -0
- package/cli/taskTraceContract.ts +53 -0
- package/cli/ws-bridge.ts +11 -4
- package/detox/gestures.ts +4 -4
- package/detox/index.ts +10 -3
- 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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +15093 -9243
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +2 -2
- package/dist-lib/detox/index.cjs +79 -55
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +12391 -7202
- package/dist-lib/expo-swift-metadata.cjs +3 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +12497 -8637
- package/dist-lib/host/fetch-proxy-handler.cjs +431 -206
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +17 -3
- package/dist-lib/index.cjs +2187 -805
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +14 -12
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2176 -791
- package/dist-lib/native-app-identity-project.cjs +1372 -336
- package/dist-lib/native-app-identity-project.mjs +1480 -437
- package/dist-lib/native-app-identity.cjs +11 -1
- package/dist-lib/native-app-identity.mjs +11 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +33 -26
- package/dist-lib/public-origins-lib.json +219 -124
- package/dist-lib/react-native-host-modules.cjs +26 -2
- package/dist-lib/react-native-host-modules.mjs +24 -2
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +42 -28
- package/dist-lib/sdk.mjs +42 -28
- package/dist-lib/skills.cjs +13910 -9670
- package/dist-lib/swift-compile.cjs +2066 -1691
- package/dist-lib/swift-compile.mjs +1942 -1566
- package/dist-lib/swift-package.cjs +18 -10
- package/dist-lib/swift-package.mjs +18 -10
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +20 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5344 -3572
- package/dist-lib/vite.cjs +2890 -2523
- package/dist-lib/worklet-executable.cjs +36 -10
- package/dist-lib/worklet-executable.mjs +36 -10
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/android-stretch-effect.d.ts +0 -8
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/audioContract.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/core-layout-program.d.ts +19 -0
- package/dist-types/packages/peach-engine/src/engine/core-layout-transition.d.ts +31 -0
- package/dist-types/packages/peach-engine/src/engine/debug-channels.d.ts +86 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/node-kind-contract.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/host-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +5 -2
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/layout-animation-owner.d.ts +60 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass-rect.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +8 -8
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +14 -28
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-graph.d.ts +8 -10
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/native-node-drive.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-geometry.d.ts +34 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-record.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/engine/native-node-style-input.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/native-paint.d.ts +95 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-range.d.ts → native-scroll-geometry.d.ts} +5 -0
- package/dist-types/packages/peach-engine/src/engine/{scroll-platform.d.ts → native-scroll-personality.d.ts} +58 -72
- package/dist-types/packages/peach-engine/src/engine/native-scroll-tracker.d.ts +40 -0
- package/dist-types/packages/peach-engine/src/engine/native-style-store.d.ts +161 -0
- package/dist-types/packages/peach-engine/src/engine/native-text-style.d.ts +56 -0
- package/dist-types/packages/peach-engine/src/engine/native-trace.d.ts +18 -0
- package/dist-types/packages/peach-engine/src/engine/nativePaintContract.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +53 -112
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +20 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/rn-spring.d.ts +2 -9
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +201 -66
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +10 -3
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +5 -11
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/engine/style-schema.d.ts +296 -0
- package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-paint-receipt.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +18 -26
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/yoga-layout.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +40 -2
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/observability/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/platform/android-back-panel.d.ts +15 -55
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +110 -48
- package/dist-types/packages/peach-engine/src/react-native/gesture-touch-metadata.d.ts +14 -0
- package/dist-types/packages/peach-engine/src/react-native/layout-animation.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +9 -3
- package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/aux-surface-types.d.ts +33 -1
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-content-readyContract.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +81 -9
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +116 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-fields.d.ts +57 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-tree.d.ts +100 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-frame-layers.d.ts +42 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-layers.d.ts +49 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/transition-program.d.ts +65 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +17 -7
- package/dist-types/packages/peach-engine/src/render-worker/gesture-seam-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +35 -3
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +27 -3
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +14 -12
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +23 -3
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +4 -6
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -13
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +9 -24
- package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +33 -1
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +0 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nativeSurfaceContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/secure-item-store.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +65 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +24 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/runtime.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +29 -4
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/{popover-placement.d.ts → native-popover.d.ts} +13 -8
- package/dist-types/packages/peach-kit/src/ui/native-tab-selection.d.ts +39 -0
- package/dist-types/packages/peach-kit/src/ui/presentationContract.d.ts +21 -0
- package/dist-types/packages/peach-kit/src/ui/swift-layout-contract.d.ts +33 -0
- package/java-platform/licenses/android.txt +4 -0
- package/java-platform/licenses/jzlib.txt +28 -0
- package/java-platform/licenses/openjdk.txt +11 -2
- package/kotlin/README.md +5 -2
- package/kotlin/fork/NOTICE +7 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +9 -9
- package/node-runtime.d.json.ts +4 -0
- package/node-runtime.json +1 -0
- package/package.json +4 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABAddressBook.h +109 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABGroup.h +41 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABMultiValue.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABPerson.h +208 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABRecord.h +60 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/ABSource.h +49 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBook.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Headers/AddressBookDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/AddressBook.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.apinotes +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/CoreML.h +90 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLAllComputeDevices.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLArrayBatchProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLBatchProvider.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCPUComputeDevice.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputeDeviceProtocol.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlan.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanCost.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLComputePlanDeviceUsage.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomLayer.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLCustomModel.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryConstraint.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLDictionaryFeatureProvider.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLExport.h +13 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureDescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureType.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue+MLImageConversion.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureValue.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLGPUComputeDevice.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageConstraint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSize.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLImageSizeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLKey.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMetricKey.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLComputeDevice.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLModelCompilation.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel+MLState.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h +130 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelAsset.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollection.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelCollectionEntry.h +72 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelConfiguration.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelDescription.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelError.h +114 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelMetadataKeys.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructure.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetwork.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureNeuralNetworkLayer.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructurePipeline.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgram.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramArgument.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBinding.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramBlock.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramFunction.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramNamedValueType.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramOperation.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValue.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLModelStructureProgramValueType.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArray.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraint.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLMultiArrayShapeConstraintType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNeuralEngineComputeDevice.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLNumericConstraint.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLOptimizationHints.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterDescription.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLParameterKey.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLPredictionOptions.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLReshapeFrequencyHint.h +18 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequence.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSequenceConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLSpecializationStrategy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLState.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLStateConstraint.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLTask.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateContext.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressEvent.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateProgressHandlers.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLUpdateTask.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Headers/MLWritable.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreML.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +2 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKBaseEffect.h +159 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectProperty.h +46 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyFog.h +58 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyLight.h +83 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyMaterial.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTexture.h +62 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffectPropertyTransform.h +45 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKEffects.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMath.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathTypes.h +167 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMathUtils.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix3.h +535 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrix4.h +1012 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKMatrixStack.h +130 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKModel.h +227 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKNamedEffect.h +14 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKQuaternion.h +340 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKReflectionMapEffect.h +143 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKSkyboxEffect.h +117 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKTextureLoader.h +357 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector2.h +483 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector3.h +307 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKVector4.h +587 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKView.h +129 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKit.h +21 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Headers/GLKitBase.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GLKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddIdentityDocumentConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h +48 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h +88 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h +134 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h +57 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h +76 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h +124 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h +94 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementSummaryItem.h +22 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKError.h +95 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h +83 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h +130 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h +54 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKInstantFundsOutFeeSummaryItem.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionAuthorizationProviding.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h +23 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h +63 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h +170 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPassRelevantDate.h +30 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h +25 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h +44 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h +72 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h +64 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h +208 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h +108 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h +147 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h +55 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h +29 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h +255 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h +171 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h +50 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h +49 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h +59 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h +52 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h +81 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h +42 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h +37 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h +36 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h +43 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h +34 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h +71 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.apinotes +68 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h +187 -0
- package/sdk/ios/System/Library/Frameworks/PassKit.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +8 -8
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h +48 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +25 -12
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +23 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +1 -231
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +1 -375
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +1 -545
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +1 -82
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +1 -74
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +1 -210
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +1 -194
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +1 -196
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +0 -87
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +15 -15
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +1 -86
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +1 -198
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +1 -48
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +3 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +13 -13
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +12 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +6 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +4 -4
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSAttributedString.h +231 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSLayoutManager.h +375 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSParagraphStyle.h +545 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSStringDrawing.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSText.h +74 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextContainer.h +210 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextList.h +194 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/NSTextStorage.h +196 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFont.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIFontDescriptor.h +198 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitDefines.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.h +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +11 -11
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIAccessibilityTraits.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.apinotes +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +1 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTBase.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h +1686 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionSession.h +509 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionProperties.h +548 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTDecompressionSession.h +577 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h +144 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor.h +134 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorConfiguration.h +68 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorErrors.h +60 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorFrame.h +82 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessorParameters.h +48 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_FrameRateConversion.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencyFrameInterpolation.h +171 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_LowLatencySuperResolutionScaler.h +143 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_MotionBlur.h +207 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_OpticalFlow.h +172 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_SuperResolutionScaler.h +245 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameProcessor_TemporalNoiseFilter.h +161 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTFrameSilo.h +177 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTHDRPerFrameMetadataGenerationSession.h +116 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSession.h +176 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMotionEstimationSessionProperties.h +76 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTMultiPassStorage.h +96 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationProperties.h +75 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelRotationSession.h +111 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferProperties.h +231 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTPixelTransferSession.h +123 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTSession.h +151 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTUtilities.h +146 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VTVideoEncoderList.h +74 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.apinotes +197 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Headers/VideoToolbox.h +41 -0
- package/sdk/ios/System/Library/Frameworks/VideoToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCalculateImageAestheticsScoresRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNClassifyImageRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNCoreMLRequest.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDefines.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectAnimalBodyPoseRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectBarcodesRequest.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectContoursRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectDocumentSegmentationRequest.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceCaptureQualityRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceLandmarksRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectFaceRectanglesRequest.h +47 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHorizonRequest.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPose3DRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanBodyPoseRequest.h +194 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanHandPoseRequest.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectHumanRectanglesRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectRectanglesRequest.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTextRectanglesRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectTrajectoriesRequest.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNDetectedPoint.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNError.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceLandmarks.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNFaceObservationAccepting.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateAttentionBasedSaliencyImageRequest.h +42 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateForegroundInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateImageFeaturePrintRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateObjectnessBasedSaliencyImageRequest.h +41 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGenerateOpticalFlowRequest.h +89 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonInstanceMaskRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeneratePersonSegmentationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometry.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNGeometryUtils.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNHumanBodyRecognizedPoint3D.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNImageRegistrationRequest.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNObservation.h +994 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeAnimalsRequest.h +61 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizeTextRequest.h +109 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRecognizedPoint3D.h +34 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h +197 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestHandler.h +419 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNRequestRevisionProviding.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNStatefulRequest.h +49 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTargetedImageRequest.h +302 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackHomographicImageRegistrationRequest.h +46 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackObjectRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackOpticalFlowRequest.h +106 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackRectangleRequest.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackTranslationalImageRegistrationRequest.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTrackingRequest.h +72 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNTypes.h +201 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNUtils.h +198 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/VNVideoProcessor.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes +130 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Headers/Vision.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Vision.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/usr/include/AssertMacros.h +1463 -0
- package/sdk/ios/usr/include/_modules/_os_lock.h +33 -0
- package/sdk/ios/usr/include/libkern/OSCacheControl.h +66 -0
- package/sdk/ios/usr/include/os.modulemap +1 -1
- package/sdk/ios/usr/include/pthread/pthread_spis.h +105 -0
- package/sdk/ios/usr/include/pthread_spis.h +105 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/pthread/sched.h +3 -0
- package/sdk/ios/wasm/include/pthread.h +7 -0
- package/sdk/ios/wasm/include/sched.h +9 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/poll.h +3 -0
- package/sdk/ios/wasm/include/tgmath.h +5 -0
- package/sdk/ios/wasm/include/unistd.h +5 -1
- package/skills/contrast/SKILL.md +1 -0
- package/skills/peach-debug/SKILL.md +43 -1
- package/skills/peach-debug/references/events.md +14 -1
- package/src/android-autolinking.ts +5 -18
- package/src/answeredNativePackages.ts +24 -5
- package/src/app-config.ts +12 -1
- package/src/assetCatalogContract.ts +3 -39
- package/src/autolinker-process.ts +82 -0
- package/src/bazel-project.ts +1133 -0
- package/src/bridge-contract.ts +3 -0
- package/src/case-insensitive-header-overlay.ts +99 -0
- package/src/config.ts +5 -0
- package/src/device-catalog.ts +9 -0
- package/src/expo-autolinking.ts +12 -15
- package/src/expo-native-prebuilt.ts +28 -5
- package/src/expo-native-workspace.ts +91 -23
- package/src/expo-swift-host.ts +190 -57
- package/src/expo-swift-ready.ts +8 -0
- package/src/expo-workspace-exclusion.ts +96 -27
- package/src/flow-graph-layout.ts +166 -0
- package/src/git-repo-env.ts +7 -0
- package/src/host/app-package-handler.ts +5 -0
- package/src/host/bridge-host.ts +3 -1
- package/src/host/hostname-resolver.ts +55 -2
- package/src/host/staged-host-files.ts +17 -1
- package/src/host/websocket-proxy.ts +19 -2
- package/src/java-static-imports.ts +68 -0
- package/src/kotlin-jvm-sources.ts +35 -0
- package/src/kotlinSdkContract.ts +3 -1
- package/src/launchMetadataContract.ts +8 -0
- package/src/metro-hot-update.ts +68 -0
- package/src/native-app-identity-project.ts +35 -7
- package/src/native-app-identity.ts +32 -0
- package/src/native-package-slice-build.ts +35 -9
- package/src/native-package-slice.ts +10 -4
- package/src/native-slices.ts +1 -1
- package/src/native-static-libraries.ts +50 -22
- package/src/nitro-adapter.lock.json +265 -265
- package/src/nitro-app-providers.ts +28 -0
- package/src/nitro-bundle.ts +4 -41
- package/src/nitro-compile.ts +450 -76
- package/src/nitro-source.ts +585 -114
- package/src/nitro-superset.lock.json +4 -4
- package/src/node-runtime.ts +27 -0
- package/src/nodeRuntimeContract.ts +5 -0
- package/src/one-sdk-bundle.ts +15 -3
- package/src/one-sdk-preparation.ts +69 -9
- package/src/oneSdkContract.ts +13 -2
- package/src/podspec-sources.ts +376 -1814
- package/src/portable-expo-contract.ts +7 -2
- package/src/portable-expo-workspace.ts +7 -2
- package/src/process-group.ts +13 -0
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-autolinking.ts +13 -43
- package/src/react-native-bridge-modules.ts +3 -3
- package/src/react-native-core-build.ts +6 -0
- package/src/react-native-host-modules.ts +37 -3
- package/src/reap-browser.ts +1 -0
- package/src/sfSymbolMetricsContract.ts +0 -53
- package/src/sim-client.ts +8 -2
- package/src/storekit-test-store.ts +49 -0
- package/src/stub-pattern-matcher.ts +4 -26
- package/src/swift-compile-budget.ts +42 -0
- package/src/swift-compile.ts +780 -658
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-cxx-reachable.ts +20 -21
- package/src/swift-distribution.lock.json +18 -12
- package/src/swift-guest-compile.ts +38 -21
- package/src/swift-guest-image-ledger.ts +28 -19
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-host.ts +90 -23
- package/src/swift-objc-compile.ts +117 -29
- package/src/swift-objc-standin.ts +12 -1
- package/src/swift-package-manifest.ts +18 -1
- package/src/swift-package.ts +26 -8
- package/src/swift-packages.ts +66 -27
- package/src/swift-resource-class-names.ts +44 -0
- package/src/swift-root-lock.ts +50 -15
- package/src/swift-shared-sdk.ts +2 -4
- package/src/swift-source-file.ts +6 -0
- package/src/swift-standin-emit.ts +10 -0
- package/src/swift-standins.ts +351 -66
- package/src/swift-submit.ts +6 -1
- package/src/swift-toolchain.ts +19 -0
- package/src/swift-wasm-prune.ts +15 -8
- package/src/swiftContract.ts +4 -5
- package/src/turbo-bundle.ts +1 -1
- package/src/turbo-codegen-intake.ts +8 -5
- package/src/turbo-compile.ts +2 -1
- package/src/turbo-runtime.lock.json +24 -24
- package/src/turbo-source.ts +2027 -271
- package/src/vite-plugin-swift.ts +3 -2
- package/src/wasm-optimize.ts +14 -10
- package/src/worker-system-chunks.ts +31 -3
- package/src/worklet-kernel.ts +56 -9
- package/src/worklets-babel.ts +8 -1
- package/src/xcode-header-search.ts +9 -0
- package/src/xcode-project.ts +82 -6
- package/dist-types/packages/peach-engine/src/engine/ios-fast-scroll.d.ts +0 -16
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +0 -12
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -15
- /package/dist-types/packages/{peach-engine → peach-compat}/src/react-bridge.d.ts +0 -0
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
// peach canvas: lay out live apps, and maps of an app, on one canvas sim. the
|
|
2
|
+
// working file is peach-canvas.json; every change posts the whole canvas to the
|
|
3
|
+
// connected canvas sim, which acks the revision once that canvas reaches the
|
|
4
|
+
// display.
|
|
5
|
+
|
|
6
|
+
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
|
|
7
|
+
import { dirname, resolve } from 'node:path'
|
|
8
|
+
import { devices, isDeviceModel, type DeviceModel } from '../../src/device-catalog'
|
|
9
|
+
import { layoutFlowGraph } from '../../src/flow-graph-layout'
|
|
10
|
+
import { isRecord } from '../../src/is-record'
|
|
11
|
+
import { LAUNCH_METADATA_QUERY_PARAM } from '../../src/launchMetadataContract'
|
|
12
|
+
import {
|
|
13
|
+
createBridgeFromParsed,
|
|
14
|
+
evalInBridge,
|
|
15
|
+
parseBridgeCliArgs,
|
|
16
|
+
type ParsedBridgeCliArgs,
|
|
17
|
+
} from '../ws-bridge'
|
|
18
|
+
import { deepLink, deepLinkBase, readLocalMap } from './map'
|
|
19
|
+
|
|
20
|
+
type CanvasItem = {
|
|
21
|
+
id: string
|
|
22
|
+
title: string | null
|
|
23
|
+
app: string
|
|
24
|
+
bundleUrl: string | null
|
|
25
|
+
// the staged fonts, asset catalog and native configuration of that bundle's app
|
|
26
|
+
launchMetadata: string | null
|
|
27
|
+
// the link the app launches with
|
|
28
|
+
url: string | null
|
|
29
|
+
// a png the canvas draws until the app first runs
|
|
30
|
+
poster: string | null
|
|
31
|
+
device: DeviceModel
|
|
32
|
+
x: number
|
|
33
|
+
y: number
|
|
34
|
+
width: number
|
|
35
|
+
height: number
|
|
36
|
+
live: boolean
|
|
37
|
+
radius: number | null
|
|
38
|
+
// the map this item is a screen of
|
|
39
|
+
map: string | null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type LocalCanvas = {
|
|
43
|
+
version: 1
|
|
44
|
+
rev: number
|
|
45
|
+
items: CanvasItem[]
|
|
46
|
+
edges: Array<{ from: string; to: string }>
|
|
47
|
+
focused: string | null
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const ITEM_GAP = 80
|
|
51
|
+
const FLOW_GAP_X = 120
|
|
52
|
+
const FLOW_GAP_Y = 64
|
|
53
|
+
const PUSH_TIMEOUT_MS = 20_000
|
|
54
|
+
const CANVAS_BRIDGE_TIMEOUT_MS = PUSH_TIMEOUT_MS + 5_000
|
|
55
|
+
|
|
56
|
+
const HELP = `
|
|
57
|
+
peach canvas — lay out live apps and maps of an app on one canvas
|
|
58
|
+
|
|
59
|
+
usage:
|
|
60
|
+
peach canvas open
|
|
61
|
+
peach canvas place <app> [--device <model>] [--at x,y] [--id <id>] [--radius <pt>]
|
|
62
|
+
peach canvas place --bundle <url|file> [--app-fonts-dir <dir>] [--url <link>] [--device <model>] [--at x,y] [--id <id>]
|
|
63
|
+
peach canvas map --bundle <url|file> [--app-fonts-dir <dir>] [--map <file>] [--scheme myapp://] [--device <model>] [--at x,y] [--id <name>]
|
|
64
|
+
peach canvas move <id> --at x,y
|
|
65
|
+
peach canvas resize <id> --size width,height
|
|
66
|
+
peach canvas arrange [--by title|device|app] [--columns <n>] [--gap <pt>]
|
|
67
|
+
peach canvas arrange --flow
|
|
68
|
+
peach canvas focus [id]
|
|
69
|
+
peach canvas live <id>
|
|
70
|
+
peach canvas freeze <id>
|
|
71
|
+
peach canvas camera --at x,y --scale <n>
|
|
72
|
+
peach canvas remove <id>
|
|
73
|
+
peach canvas list
|
|
74
|
+
peach canvas push
|
|
75
|
+
peach canvas view fit
|
|
76
|
+
peach canvas view <id>
|
|
77
|
+
peach canvas view --center x,y [--scale <n>]
|
|
78
|
+
|
|
79
|
+
verbs:
|
|
80
|
+
open open a canvas sim
|
|
81
|
+
place run a built-in app, or a guest bundle, live on the canvas
|
|
82
|
+
map put a map from peach map on the canvas: every route a live app, linked by its taps
|
|
83
|
+
move move an item to canvas coordinates
|
|
84
|
+
resize change an item's size in points
|
|
85
|
+
arrange lay every item out in a grid, or each map along its links with --flow
|
|
86
|
+
focus select an item, or clear focus without an id
|
|
87
|
+
live resume an item's app
|
|
88
|
+
freeze retain an item's last frame and app state
|
|
89
|
+
camera set the canvas translation and scale
|
|
90
|
+
remove take an item, or a whole map by its name, off the canvas
|
|
91
|
+
list print the working file's items
|
|
92
|
+
push post the working file to the canvas sim again, as after a reload
|
|
93
|
+
view fit the canvas, bring one item into view at 100%, or center a canvas point
|
|
94
|
+
|
|
95
|
+
options:
|
|
96
|
+
--device <model> the item's device (default: iphone-17-pro)
|
|
97
|
+
--at x,y the item's top left corner in canvas points (default: right of the last item)
|
|
98
|
+
--id <id> item id (default: the app id, numbered when taken), or a map name (default: the scheme)
|
|
99
|
+
--bundle <url> a Metro bundle url, a built bundle file, or a packaged app's launch url, the item or every route of a map runs
|
|
100
|
+
--app-fonts-dir <dir> the project holding the fonts a built bundle's app links natively
|
|
101
|
+
--map <file> map: the map working file (default: peach-map.json)
|
|
102
|
+
--scheme <url> map: deep link scheme (default: the one the map was crawled with)
|
|
103
|
+
--url <link> the deep link the item's app launches with
|
|
104
|
+
--radius <pt> corner radius in points (default: the device's display)
|
|
105
|
+
--size width,height custom item size in points
|
|
106
|
+
--by <key> arrange: order items by title, device or app (default: the canvas's order)
|
|
107
|
+
--columns <n> arrange: items per row (default: a square grid)
|
|
108
|
+
--gap <pt> arrange: space between items (default: ${ITEM_GAP})
|
|
109
|
+
--flow arrange: lay each map out along its links and leave other items in place
|
|
110
|
+
--file <path> working file (default: peach-canvas.json)
|
|
111
|
+
--sim <id> target a specific canvas sim
|
|
112
|
+
|
|
113
|
+
examples:
|
|
114
|
+
peach canvas open
|
|
115
|
+
peach canvas place photos
|
|
116
|
+
peach canvas place notes --device iphone-se
|
|
117
|
+
peach canvas place --bundle "http://localhost:8081/index.bundle?platform=ios"
|
|
118
|
+
peach canvas place --bundle "http://localhost:8081/index.bundle?platform=ios" --url myapp://settings
|
|
119
|
+
peach canvas map --bundle "http://localhost:8081/index.bundle?platform=ios"
|
|
120
|
+
peach canvas view fit
|
|
121
|
+
`
|
|
122
|
+
|
|
123
|
+
function flag(args: string[], name: string): string | undefined {
|
|
124
|
+
const index = args.indexOf(name)
|
|
125
|
+
if (index < 0) return undefined
|
|
126
|
+
const value = args[index + 1]
|
|
127
|
+
if (!value || value.startsWith('--')) throw new Error(`${name} requires a value`)
|
|
128
|
+
return value
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function point(value: string, name: string): { x: number; y: number } {
|
|
132
|
+
if (value.split(',').length !== 2) throw new Error(`${name} takes two coordinates`)
|
|
133
|
+
const [x, y] = value.split(',').map(Number)
|
|
134
|
+
if (!Number.isFinite(x) || !Number.isFinite(y)) {
|
|
135
|
+
throw new Error(`${name} takes x,y in canvas points, got "${value}"`)
|
|
136
|
+
}
|
|
137
|
+
return { x, y }
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function size(value: string): { width: number; height: number } {
|
|
141
|
+
const { x: width, y: height } = point(value, '--size')
|
|
142
|
+
if (width <= 0 || height <= 0 || width > 2048 || height > 2048)
|
|
143
|
+
throw new Error('--size dimensions must be greater than zero and at most 2048 points')
|
|
144
|
+
return { width, height }
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function readCanvas(file: string): LocalCanvas {
|
|
148
|
+
if (!existsSync(file))
|
|
149
|
+
return { version: 1, rev: 0, items: [], edges: [], focused: null }
|
|
150
|
+
const parsed: unknown = JSON.parse(readFileSync(file, 'utf8'))
|
|
151
|
+
if (
|
|
152
|
+
!isRecord(parsed) ||
|
|
153
|
+
parsed.version !== 1 ||
|
|
154
|
+
!Array.isArray(parsed.items) ||
|
|
155
|
+
!Number.isSafeInteger(parsed.rev) ||
|
|
156
|
+
typeof parsed.rev !== 'number' ||
|
|
157
|
+
parsed.rev < 0
|
|
158
|
+
) {
|
|
159
|
+
throw new Error(`${file} is not a peach canvas file`)
|
|
160
|
+
}
|
|
161
|
+
const items: CanvasItem[] = []
|
|
162
|
+
for (const raw of parsed.items) {
|
|
163
|
+
if (!isRecord(raw)) throw new Error(`${file} contains an invalid canvas item`)
|
|
164
|
+
const { id, app, device, x, y } = raw
|
|
165
|
+
if (
|
|
166
|
+
typeof id !== 'string' ||
|
|
167
|
+
!id ||
|
|
168
|
+
typeof app !== 'string' ||
|
|
169
|
+
!app ||
|
|
170
|
+
typeof device !== 'string' ||
|
|
171
|
+
!isDeviceModel(device) ||
|
|
172
|
+
typeof x !== 'number' ||
|
|
173
|
+
!Number.isFinite(x) ||
|
|
174
|
+
typeof y !== 'number' ||
|
|
175
|
+
!Number.isFinite(y) ||
|
|
176
|
+
items.some((item) => item.id === id)
|
|
177
|
+
)
|
|
178
|
+
throw new Error(`${file} contains an invalid canvas item`)
|
|
179
|
+
const width = raw.width ?? devices[device].width
|
|
180
|
+
const height = raw.height ?? devices[device].height
|
|
181
|
+
const radius = raw.radius ?? null
|
|
182
|
+
const live = raw.live ?? true
|
|
183
|
+
const bundleUrl = raw.bundleUrl ?? null
|
|
184
|
+
const launchMetadata = raw.launchMetadata ?? null
|
|
185
|
+
const url = raw.url ?? null
|
|
186
|
+
const title = raw.title ?? null
|
|
187
|
+
const poster = raw.poster ?? null
|
|
188
|
+
const map = raw.map ?? null
|
|
189
|
+
if (
|
|
190
|
+
typeof width !== 'number' ||
|
|
191
|
+
!Number.isFinite(width) ||
|
|
192
|
+
width <= 0 ||
|
|
193
|
+
width > 2048 ||
|
|
194
|
+
typeof height !== 'number' ||
|
|
195
|
+
!Number.isFinite(height) ||
|
|
196
|
+
height <= 0 ||
|
|
197
|
+
height > 2048 ||
|
|
198
|
+
(radius !== null &&
|
|
199
|
+
(typeof radius !== 'number' || !Number.isFinite(radius) || radius < 0)) ||
|
|
200
|
+
typeof live !== 'boolean' ||
|
|
201
|
+
(bundleUrl !== null && typeof bundleUrl !== 'string') ||
|
|
202
|
+
(launchMetadata !== null && typeof launchMetadata !== 'string') ||
|
|
203
|
+
(url !== null && typeof url !== 'string') ||
|
|
204
|
+
(title !== null && typeof title !== 'string') ||
|
|
205
|
+
(poster !== null && typeof poster !== 'string') ||
|
|
206
|
+
(map !== null && (typeof map !== 'string' || !map))
|
|
207
|
+
)
|
|
208
|
+
throw new Error(`${file} contains an invalid canvas item`)
|
|
209
|
+
items.push({
|
|
210
|
+
id,
|
|
211
|
+
title,
|
|
212
|
+
app,
|
|
213
|
+
bundleUrl,
|
|
214
|
+
launchMetadata,
|
|
215
|
+
url,
|
|
216
|
+
poster,
|
|
217
|
+
device,
|
|
218
|
+
x,
|
|
219
|
+
y,
|
|
220
|
+
width,
|
|
221
|
+
height,
|
|
222
|
+
live,
|
|
223
|
+
radius,
|
|
224
|
+
map,
|
|
225
|
+
})
|
|
226
|
+
}
|
|
227
|
+
const focused = parsed.focused ?? null
|
|
228
|
+
if (
|
|
229
|
+
focused !== null &&
|
|
230
|
+
(typeof focused !== 'string' || !items.some((item) => item.id === focused))
|
|
231
|
+
)
|
|
232
|
+
throw new Error(`${file} names an invalid focused item`)
|
|
233
|
+
const edges: LocalCanvas['edges'] = []
|
|
234
|
+
for (const raw of Array.isArray(parsed.edges) ? parsed.edges : []) {
|
|
235
|
+
if (
|
|
236
|
+
!isRecord(raw) ||
|
|
237
|
+
typeof raw.from !== 'string' ||
|
|
238
|
+
typeof raw.to !== 'string' ||
|
|
239
|
+
!items.some((item) => item.id === raw.from) ||
|
|
240
|
+
!items.some((item) => item.id === raw.to)
|
|
241
|
+
)
|
|
242
|
+
throw new Error(`${file} contains an invalid canvas edge`)
|
|
243
|
+
edges.push({ from: raw.from, to: raw.to })
|
|
244
|
+
}
|
|
245
|
+
return { version: 1, rev: parsed.rev, items, edges, focused }
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// each screen of a map one column right of the screen that leads to it, as a
|
|
249
|
+
// published map lays out, from the map's own corner
|
|
250
|
+
function arrangeMap(canvas: LocalCanvas, name: string, origin: { x: number; y: number }) {
|
|
251
|
+
const screens = canvas.items.filter((item) => item.map === name)
|
|
252
|
+
const positions = layoutFlowGraph(
|
|
253
|
+
screens.map((item, order) => ({
|
|
254
|
+
id: item.id,
|
|
255
|
+
width: item.width,
|
|
256
|
+
height: item.height,
|
|
257
|
+
order,
|
|
258
|
+
})),
|
|
259
|
+
canvas.edges.filter(
|
|
260
|
+
(edge) =>
|
|
261
|
+
screens.some((item) => item.id === edge.from) &&
|
|
262
|
+
screens.some((item) => item.id === edge.to),
|
|
263
|
+
),
|
|
264
|
+
{ gapX: FLOW_GAP_X, gapY: FLOW_GAP_Y },
|
|
265
|
+
)
|
|
266
|
+
for (const item of screens) {
|
|
267
|
+
const position = positions.get(item.id) ?? { x: 0, y: 0 }
|
|
268
|
+
Object.assign(item, { x: origin.x + position.x, y: origin.y + position.y })
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function mapCorner(canvas: LocalCanvas, name: string): { x: number; y: number } | null {
|
|
273
|
+
const screens = canvas.items.filter((item) => item.map === name)
|
|
274
|
+
return screens.length
|
|
275
|
+
? {
|
|
276
|
+
x: Math.min(...screens.map((item) => item.x)),
|
|
277
|
+
y: Math.min(...screens.map((item) => item.y)),
|
|
278
|
+
}
|
|
279
|
+
: null
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function removeItems(canvas: LocalCanvas, gone: (item: CanvasItem) => boolean): void {
|
|
283
|
+
const ids = new Set(canvas.items.filter(gone).map((item) => item.id))
|
|
284
|
+
canvas.items = canvas.items.filter((item) => !ids.has(item.id))
|
|
285
|
+
canvas.edges = canvas.edges.filter((edge) => !ids.has(edge.from) && !ids.has(edge.to))
|
|
286
|
+
if (canvas.focused !== null && ids.has(canvas.focused)) canvas.focused = null
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
type AppLaunch = { bundleUrl: string; launchMetadata: string | null }
|
|
290
|
+
|
|
291
|
+
// an app's fonts, asset catalog and native configuration reach its item as they
|
|
292
|
+
// reach a device: staged by the launch its bundle resolves to
|
|
293
|
+
async function resolveLaunch(
|
|
294
|
+
target: string,
|
|
295
|
+
bridgePort: number,
|
|
296
|
+
appFontsDir?: string,
|
|
297
|
+
): Promise<AppLaunch> {
|
|
298
|
+
const { buildShellUrl, resolveShellBaseUrlForBridgePort } = await import('./shell-url')
|
|
299
|
+
const { prebuiltBundleFile, stagePrebuiltBundle } = await import('./control')
|
|
300
|
+
const file = prebuiltBundleFile(target)
|
|
301
|
+
const launch = new URL(
|
|
302
|
+
await buildShellUrl(
|
|
303
|
+
file ? (await stagePrebuiltBundle(file, bridgePort)).bundleUrl : target,
|
|
304
|
+
resolveShellBaseUrlForBridgePort(bridgePort),
|
|
305
|
+
{ bridgePort, appFontsDir },
|
|
306
|
+
),
|
|
307
|
+
)
|
|
308
|
+
const bundleUrl = launch.searchParams.get('bundle')
|
|
309
|
+
if (!bundleUrl) throw new Error(`${target} names no bundle`)
|
|
310
|
+
return {
|
|
311
|
+
bundleUrl,
|
|
312
|
+
launchMetadata: launch.searchParams.get(LAUNCH_METADATA_QUERY_PARAM),
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// a map is a group of items: one live app per mapped route, launched by its
|
|
317
|
+
// deep link, with the taps between them as edges. placing a map again replaces
|
|
318
|
+
// its screens where they sat and leaves the rest of the canvas alone
|
|
319
|
+
function placeMap(canvas: LocalCanvas, args: string[], launch: AppLaunch): number {
|
|
320
|
+
const mapFile = resolve(flag(args, '--map') ?? 'peach-map.json')
|
|
321
|
+
const map = readLocalMap(mapFile)
|
|
322
|
+
const scheme = flag(args, '--scheme') ?? map.scheme
|
|
323
|
+
if (!scheme) throw new Error(`${mapFile} records no scheme; pass --scheme myapp://`)
|
|
324
|
+
const device = flag(args, '--device') ?? 'iphone-17-pro'
|
|
325
|
+
if (!isDeviceModel(device))
|
|
326
|
+
throw new Error(`unknown device "${device}"; see peach device list`)
|
|
327
|
+
// a deep link opens a route's default state, so other states have no live item
|
|
328
|
+
const routed = map.screens.flatMap((screen) =>
|
|
329
|
+
screen.route !== null && screen.state === null
|
|
330
|
+
? [{ id: screen.id, route: screen.route, title: screen.title, png: screen.png }]
|
|
331
|
+
: [],
|
|
332
|
+
)
|
|
333
|
+
if (routed.length === 0) throw new Error(`${mapFile} has no routed screens`)
|
|
334
|
+
const base = deepLinkBase(scheme)
|
|
335
|
+
const name = flag(args, '--id') ?? base.slice(0, -'://'.length)
|
|
336
|
+
const at = flag(args, '--at')
|
|
337
|
+
const corner = at ? point(at, '--at') : mapCorner(canvas, name)
|
|
338
|
+
removeItems(canvas, (item) => item.map === name)
|
|
339
|
+
const origin = corner ?? {
|
|
340
|
+
x: Math.max(0, ...canvas.items.map((item) => item.x + item.width + ITEM_GAP)),
|
|
341
|
+
y: 0,
|
|
342
|
+
}
|
|
343
|
+
const taken = new Set(canvas.items.map((item) => item.id))
|
|
344
|
+
const itemIds = new Map<string, string>()
|
|
345
|
+
for (const screen of routed) {
|
|
346
|
+
const slug =
|
|
347
|
+
screen.route.replace(/[^a-zA-Z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'root'
|
|
348
|
+
let id = slug
|
|
349
|
+
for (let n = 2; taken.has(id); n++) id = `${slug}-${n}`
|
|
350
|
+
taken.add(id)
|
|
351
|
+
itemIds.set(screen.id, id)
|
|
352
|
+
}
|
|
353
|
+
const { width, height } = devices[device]
|
|
354
|
+
for (const screen of routed) {
|
|
355
|
+
const png = resolve(dirname(mapFile), screen.png)
|
|
356
|
+
canvas.items.push({
|
|
357
|
+
id: itemIds.get(screen.id) ?? screen.id,
|
|
358
|
+
title: screen.title,
|
|
359
|
+
app: 'connect',
|
|
360
|
+
...launch,
|
|
361
|
+
url: deepLink(base, screen.route),
|
|
362
|
+
poster: existsSync(png) ? png : null,
|
|
363
|
+
device,
|
|
364
|
+
x: 0,
|
|
365
|
+
y: 0,
|
|
366
|
+
width,
|
|
367
|
+
height,
|
|
368
|
+
live: true,
|
|
369
|
+
radius: null,
|
|
370
|
+
map: name,
|
|
371
|
+
})
|
|
372
|
+
}
|
|
373
|
+
for (const edge of map.edges) {
|
|
374
|
+
const from = itemIds.get(edge.from)
|
|
375
|
+
const to = itemIds.get(edge.to)
|
|
376
|
+
if (from && to && from !== to) canvas.edges.push({ from, to })
|
|
377
|
+
}
|
|
378
|
+
arrangeMap(canvas, name, origin)
|
|
379
|
+
return routed.length
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const ARRANGE_KEYS = {
|
|
383
|
+
title: (item: CanvasItem) => item.title ?? item.id,
|
|
384
|
+
device: (item: CanvasItem) => item.device,
|
|
385
|
+
app: (item: CanvasItem) => item.bundleUrl ?? item.app,
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
function arrangeGrid(canvas: LocalCanvas, args: string[]): void {
|
|
389
|
+
const by = flag(args, '--by')
|
|
390
|
+
if (by !== undefined) {
|
|
391
|
+
if (by !== 'title' && by !== 'device' && by !== 'app')
|
|
392
|
+
throw new Error('--by takes title, device or app')
|
|
393
|
+
const key = ARRANGE_KEYS[by]
|
|
394
|
+
canvas.items.sort((a, b) =>
|
|
395
|
+
key(a).localeCompare(key(b), undefined, { numeric: true }),
|
|
396
|
+
)
|
|
397
|
+
}
|
|
398
|
+
const columns = Number(
|
|
399
|
+
flag(args, '--columns') ?? Math.ceil(Math.sqrt(canvas.items.length)),
|
|
400
|
+
)
|
|
401
|
+
const gap = Number(flag(args, '--gap') ?? ITEM_GAP)
|
|
402
|
+
if (!Number.isInteger(columns) || columns < 1)
|
|
403
|
+
throw new Error('--columns must be a whole number of at least 1')
|
|
404
|
+
if (!Number.isFinite(gap) || gap < 0)
|
|
405
|
+
throw new Error('--gap must be a nonnegative number')
|
|
406
|
+
const widths = Array.from({ length: columns }, (_, column) =>
|
|
407
|
+
Math.max(
|
|
408
|
+
0,
|
|
409
|
+
...canvas.items.flatMap((item, index) =>
|
|
410
|
+
index % columns === column ? [item.width] : [],
|
|
411
|
+
),
|
|
412
|
+
),
|
|
413
|
+
)
|
|
414
|
+
let y = 0
|
|
415
|
+
for (let start = 0; start < canvas.items.length; start += columns) {
|
|
416
|
+
const row = canvas.items.slice(start, start + columns)
|
|
417
|
+
let x = 0
|
|
418
|
+
row.forEach((item, column) => {
|
|
419
|
+
Object.assign(item, { x, y })
|
|
420
|
+
x += (widths[column] ?? 0) + gap
|
|
421
|
+
})
|
|
422
|
+
y += Math.max(...row.map((item) => item.height)) + gap
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function findItem(canvas: LocalCanvas, id: string | undefined): CanvasItem {
|
|
427
|
+
const item = canvas.items.find((entry) => entry.id === id)
|
|
428
|
+
if (!item) throw new Error(`no item "${id ?? ''}" on the canvas; see peach canvas list`)
|
|
429
|
+
return item
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// the canvas map data a canvas renders: every item an app artboard on its device
|
|
433
|
+
function canvasData(canvas: LocalCanvas) {
|
|
434
|
+
return {
|
|
435
|
+
rev: canvas.rev,
|
|
436
|
+
backgroundStyle: 'checker',
|
|
437
|
+
controls: 'embedded',
|
|
438
|
+
artboardControls: 'none',
|
|
439
|
+
panPointers: 2,
|
|
440
|
+
selectedScreenId: canvas.focused ?? undefined,
|
|
441
|
+
edges: canvas.edges,
|
|
442
|
+
pins: [],
|
|
443
|
+
screens: canvas.items.map((item) => ({
|
|
444
|
+
id: item.id,
|
|
445
|
+
title: item.title ?? item.id,
|
|
446
|
+
x: item.x,
|
|
447
|
+
y: item.y,
|
|
448
|
+
width: item.width,
|
|
449
|
+
height: item.height,
|
|
450
|
+
deviceModel: item.device,
|
|
451
|
+
status: 'ready',
|
|
452
|
+
...(item.radius === null ? {} : { cornerRadius: item.radius }),
|
|
453
|
+
content: {
|
|
454
|
+
kind: 'app',
|
|
455
|
+
appId: item.app,
|
|
456
|
+
live: item.live,
|
|
457
|
+
...(item.bundleUrl ? { bundleUrl: item.bundleUrl } : {}),
|
|
458
|
+
...(item.launchMetadata ? { launchMetadata: item.launchMetadata } : {}),
|
|
459
|
+
...(item.url ? { url: item.url } : {}),
|
|
460
|
+
...(item.poster
|
|
461
|
+
? {
|
|
462
|
+
poster: `data:image/png;base64,${readFileSync(item.poster).toString('base64')}`,
|
|
463
|
+
}
|
|
464
|
+
: {}),
|
|
465
|
+
},
|
|
466
|
+
})),
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// a canvas takes its data from its own page; a post during boot can land before
|
|
471
|
+
// the listener exists, so it reposts until the canvas acks this revision
|
|
472
|
+
function pushCode(data: ReturnType<typeof canvasData>, timeoutMs: number): string {
|
|
473
|
+
return `(async () => {
|
|
474
|
+
const data = ${JSON.stringify(data)}
|
|
475
|
+
if (!window.__peachCanvasMoves) {
|
|
476
|
+
window.__peachCanvasMoves = []
|
|
477
|
+
window.addEventListener('message', (event) => {
|
|
478
|
+
const message = event.data
|
|
479
|
+
if (message?.type === 'sootsim-action' && message.action === 'canvas-map-move') window.__peachCanvasMoves.push(message.value)
|
|
480
|
+
})
|
|
481
|
+
}
|
|
482
|
+
const post = () => {
|
|
483
|
+
window.postMessage({ type: 'contrast-action', action: 'set-fullscreen-app', value: true }, '*')
|
|
484
|
+
window.postMessage({ type: 'contrast-action', action: 'canvas-map-data', value: data }, '*')
|
|
485
|
+
}
|
|
486
|
+
return await new Promise((done) => {
|
|
487
|
+
const finish = (applied) => {
|
|
488
|
+
clearInterval(timer)
|
|
489
|
+
clearTimeout(deadline)
|
|
490
|
+
window.removeEventListener('message', onMessage)
|
|
491
|
+
done({ applied })
|
|
492
|
+
}
|
|
493
|
+
const onMessage = (event) => {
|
|
494
|
+
const message = event.data
|
|
495
|
+
if (message?.type === 'sootsim-action' && message.action === 'canvas-map-data-applied' && message.rev === data.rev) finish(true)
|
|
496
|
+
}
|
|
497
|
+
window.addEventListener('message', onMessage)
|
|
498
|
+
const timer = setInterval(post, 700)
|
|
499
|
+
const deadline = setTimeout(() => finish(false), ${timeoutMs})
|
|
500
|
+
post()
|
|
501
|
+
})
|
|
502
|
+
})()`
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// items dragged in the window since the last push, taken out of its page
|
|
506
|
+
const MOVES_CODE = `(() => {
|
|
507
|
+
const moves = window.__peachCanvasMoves ?? []
|
|
508
|
+
if (moves.length) window.__peachCanvasMoves = []
|
|
509
|
+
return { moves }
|
|
510
|
+
})()`
|
|
511
|
+
|
|
512
|
+
function commandCode(command: unknown): string {
|
|
513
|
+
return `(() => {
|
|
514
|
+
window.postMessage({ type: 'contrast-action', action: 'canvas-map-command', value: ${JSON.stringify(command)} }, '*')
|
|
515
|
+
return { ok: true }
|
|
516
|
+
})()`
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export async function runCanvas(
|
|
520
|
+
args: string[],
|
|
521
|
+
opts: { port?: number; verbose?: boolean },
|
|
522
|
+
): Promise<number> {
|
|
523
|
+
try {
|
|
524
|
+
return await dispatch(args, opts)
|
|
525
|
+
} catch (error) {
|
|
526
|
+
console.error(
|
|
527
|
+
` canvas failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
528
|
+
)
|
|
529
|
+
return 1
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
async function dispatch(
|
|
534
|
+
args: string[],
|
|
535
|
+
opts: { port?: number; verbose?: boolean },
|
|
536
|
+
): Promise<number> {
|
|
537
|
+
const parsed = parseBridgeCliArgs(args, {
|
|
538
|
+
port: opts.port,
|
|
539
|
+
commandTimeoutMs: CANVAS_BRIDGE_TIMEOUT_MS,
|
|
540
|
+
stripBooleanFlags: ['--help', '-h'],
|
|
541
|
+
stripValueFlags: [
|
|
542
|
+
'--file',
|
|
543
|
+
'--device',
|
|
544
|
+
'--at',
|
|
545
|
+
'--id',
|
|
546
|
+
'--bundle',
|
|
547
|
+
'--app-fonts-dir',
|
|
548
|
+
'--url',
|
|
549
|
+
'--radius',
|
|
550
|
+
'--center',
|
|
551
|
+
'--scale',
|
|
552
|
+
'--size',
|
|
553
|
+
'--map',
|
|
554
|
+
'--scheme',
|
|
555
|
+
],
|
|
556
|
+
})
|
|
557
|
+
const [verb, target] = parsed.positional
|
|
558
|
+
if (!verb || verb === 'help' || args.includes('--help') || args.includes('-h')) {
|
|
559
|
+
console.log(HELP)
|
|
560
|
+
return verb ? 0 : 1
|
|
561
|
+
}
|
|
562
|
+
if (verb === 'open') {
|
|
563
|
+
const { runOpenCommand } = await import('./control')
|
|
564
|
+
const opened = await runOpenCommand(
|
|
565
|
+
['canvas-map', '--device', 'canvas-workspace', ...args.slice(1)],
|
|
566
|
+
opts,
|
|
567
|
+
)
|
|
568
|
+
return opened ? 0 : 1
|
|
569
|
+
}
|
|
570
|
+
const file = resolve(flag(args, '--file') ?? 'peach-canvas.json')
|
|
571
|
+
const canvas = readCanvas(file)
|
|
572
|
+
if (verb === 'camera') {
|
|
573
|
+
const at = flag(args, '--at')
|
|
574
|
+
if (!at) throw new Error('camera takes --at x,y and --scale <n>')
|
|
575
|
+
const scale = Number(flag(args, '--scale'))
|
|
576
|
+
if (!Number.isFinite(scale) || scale <= 0) throw new Error('--scale must be positive')
|
|
577
|
+
const bridge = createBridgeFromParsed(parsed)
|
|
578
|
+
try {
|
|
579
|
+
await evalInBridge(
|
|
580
|
+
bridge,
|
|
581
|
+
commandCode({ kind: 'camera', ...point(at, '--at'), scale }),
|
|
582
|
+
)
|
|
583
|
+
} finally {
|
|
584
|
+
bridge.close()
|
|
585
|
+
}
|
|
586
|
+
return 0
|
|
587
|
+
}
|
|
588
|
+
if (verb === 'list') {
|
|
589
|
+
for (const item of canvas.items) {
|
|
590
|
+
console.log(
|
|
591
|
+
` ${item.id} ${item.bundleUrl ?? item.app}${item.url ? ` ${item.url}` : ''} ${item.device} at ${item.x},${item.y}${item.map ? ` map ${item.map}` : ''}`,
|
|
592
|
+
)
|
|
593
|
+
}
|
|
594
|
+
console.log(` ${canvas.items.length} items`)
|
|
595
|
+
return 0
|
|
596
|
+
}
|
|
597
|
+
if (verb === 'view') {
|
|
598
|
+
const center = flag(args, '--center')
|
|
599
|
+
let command: unknown
|
|
600
|
+
if (target === 'fit') command = 'fit'
|
|
601
|
+
else if (center) {
|
|
602
|
+
const { x, y } = point(center, '--center')
|
|
603
|
+
command = {
|
|
604
|
+
kind: 'view-center',
|
|
605
|
+
x,
|
|
606
|
+
y,
|
|
607
|
+
scale: Number(flag(args, '--scale') ?? 1),
|
|
608
|
+
animate: false,
|
|
609
|
+
}
|
|
610
|
+
} else {
|
|
611
|
+
const item = findItem(canvas, target)
|
|
612
|
+
const { width, height } = item
|
|
613
|
+
command = {
|
|
614
|
+
kind: 'view-center',
|
|
615
|
+
x: item.x + width / 2,
|
|
616
|
+
y: item.y + height / 2,
|
|
617
|
+
scale: 1,
|
|
618
|
+
animate: false,
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
const bridge = createBridgeFromParsed(parsed)
|
|
622
|
+
try {
|
|
623
|
+
await evalInBridge(bridge, commandCode(command))
|
|
624
|
+
} finally {
|
|
625
|
+
bridge.close()
|
|
626
|
+
}
|
|
627
|
+
return 0
|
|
628
|
+
}
|
|
629
|
+
const bridge = createBridgeFromParsed(parsed)
|
|
630
|
+
try {
|
|
631
|
+
const dragged = await evalInBridge(bridge, MOVES_CODE)
|
|
632
|
+
if (isRecord(dragged) && Array.isArray(dragged.moves)) {
|
|
633
|
+
for (const move of dragged.moves) {
|
|
634
|
+
if (!isRecord(move) || move.rev !== canvas.rev) continue
|
|
635
|
+
const item = canvas.items.find((entry) => entry.id === move.screenId)
|
|
636
|
+
if (item && typeof move.x === 'number' && typeof move.y === 'number')
|
|
637
|
+
Object.assign(item, { x: move.x, y: move.y })
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
} finally {
|
|
641
|
+
bridge.close()
|
|
642
|
+
}
|
|
643
|
+
if (verb === 'place') {
|
|
644
|
+
const bundle = flag(args, '--bundle')
|
|
645
|
+
const launch = bundle
|
|
646
|
+
? await resolveLaunch(bundle, parsed.wsPort, flag(args, '--app-fonts-dir'))
|
|
647
|
+
: { bundleUrl: null, launchMetadata: null }
|
|
648
|
+
const app = bundle ? (target ?? 'connect') : target
|
|
649
|
+
if (!app) throw new Error('place takes a built-in app id or --bundle <url>')
|
|
650
|
+
const device = flag(args, '--device') ?? 'iphone-17-pro'
|
|
651
|
+
if (!isDeviceModel(device))
|
|
652
|
+
throw new Error(`unknown device "${device}"; see peach device list`)
|
|
653
|
+
const at = flag(args, '--at')
|
|
654
|
+
const right = Math.max(
|
|
655
|
+
0,
|
|
656
|
+
...canvas.items.map((item) => item.x + item.width + ITEM_GAP),
|
|
657
|
+
)
|
|
658
|
+
const base = flag(args, '--id') ?? app
|
|
659
|
+
let id = base
|
|
660
|
+
for (let n = 2; canvas.items.some((item) => item.id === id); n++) id = `${base}-${n}`
|
|
661
|
+
const radius = flag(args, '--radius')
|
|
662
|
+
const cornerRadius = radius === undefined ? null : Number(radius)
|
|
663
|
+
if (cornerRadius !== null && (!Number.isFinite(cornerRadius) || cornerRadius < 0))
|
|
664
|
+
throw new Error('--radius must be a nonnegative number')
|
|
665
|
+
const customSize = flag(args, '--size')
|
|
666
|
+
const dimensions = customSize
|
|
667
|
+
? size(customSize)
|
|
668
|
+
: { width: devices[device].width, height: devices[device].height }
|
|
669
|
+
canvas.items.push({
|
|
670
|
+
id,
|
|
671
|
+
title: null,
|
|
672
|
+
app,
|
|
673
|
+
...launch,
|
|
674
|
+
url: flag(args, '--url') ?? null,
|
|
675
|
+
poster: null,
|
|
676
|
+
device,
|
|
677
|
+
...dimensions,
|
|
678
|
+
live: true,
|
|
679
|
+
...(at ? point(at, '--at') : { x: right, y: 0 }),
|
|
680
|
+
radius: cornerRadius,
|
|
681
|
+
map: null,
|
|
682
|
+
})
|
|
683
|
+
} else if (verb === 'map') {
|
|
684
|
+
const bundle = flag(args, '--bundle')
|
|
685
|
+
if (!bundle) throw new Error('map needs --bundle <metro bundle url>')
|
|
686
|
+
const routes = placeMap(
|
|
687
|
+
canvas,
|
|
688
|
+
args,
|
|
689
|
+
await resolveLaunch(bundle, parsed.wsPort, flag(args, '--app-fonts-dir')),
|
|
690
|
+
)
|
|
691
|
+
await pushCanvas(file, canvas, parsed)
|
|
692
|
+
console.log(` ${routes} routes live on the canvas (${file})`)
|
|
693
|
+
return 0
|
|
694
|
+
} else if (verb === 'move') {
|
|
695
|
+
const at = flag(args, '--at')
|
|
696
|
+
if (!at) throw new Error('move takes --at x,y')
|
|
697
|
+
Object.assign(findItem(canvas, target), point(at, '--at'))
|
|
698
|
+
} else if (verb === 'remove') {
|
|
699
|
+
if (canvas.items.some((item) => item.id === target))
|
|
700
|
+
removeItems(canvas, (item) => item.id === target)
|
|
701
|
+
else if (canvas.items.some((item) => item.map === target))
|
|
702
|
+
removeItems(canvas, (item) => item.map === target)
|
|
703
|
+
else findItem(canvas, target)
|
|
704
|
+
} else if (verb === 'resize') {
|
|
705
|
+
const dimensions = flag(args, '--size')
|
|
706
|
+
if (!dimensions) throw new Error('resize takes --size width,height')
|
|
707
|
+
Object.assign(findItem(canvas, target), size(dimensions))
|
|
708
|
+
} else if (verb === 'arrange') {
|
|
709
|
+
if (!args.includes('--flow')) arrangeGrid(canvas, args)
|
|
710
|
+
else {
|
|
711
|
+
const names = new Set(canvas.items.flatMap((item) => item.map ?? []))
|
|
712
|
+
if (names.size === 0)
|
|
713
|
+
throw new Error('--flow needs a map on the canvas; see peach canvas map')
|
|
714
|
+
for (const name of names) {
|
|
715
|
+
const corner = mapCorner(canvas, name)
|
|
716
|
+
if (corner) arrangeMap(canvas, name, corner)
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
} else if (verb === 'focus') {
|
|
720
|
+
canvas.focused = target ? findItem(canvas, target).id : null
|
|
721
|
+
} else if (verb === 'live' || verb === 'freeze') {
|
|
722
|
+
findItem(canvas, target).live = verb === 'live'
|
|
723
|
+
} else if (verb !== 'push') {
|
|
724
|
+
console.error(` unknown canvas verb: ${verb}\n${HELP}`)
|
|
725
|
+
return 1
|
|
726
|
+
}
|
|
727
|
+
await pushCanvas(file, canvas, parsed)
|
|
728
|
+
console.log(` canvas has ${canvas.items.length} items (${file})`)
|
|
729
|
+
return 0
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
// save the canvas as its next revision and post it to the canvas sim
|
|
733
|
+
async function pushCanvas(
|
|
734
|
+
file: string,
|
|
735
|
+
canvas: LocalCanvas,
|
|
736
|
+
parsed: ParsedBridgeCliArgs,
|
|
737
|
+
): Promise<void> {
|
|
738
|
+
canvas.rev += 1
|
|
739
|
+
writeFileSync(file, `${JSON.stringify(canvas, null, 2)}\n`)
|
|
740
|
+
const bridge = createBridgeFromParsed(parsed)
|
|
741
|
+
try {
|
|
742
|
+
const result = await evalInBridge(
|
|
743
|
+
bridge,
|
|
744
|
+
pushCode(canvasData(canvas), PUSH_TIMEOUT_MS),
|
|
745
|
+
)
|
|
746
|
+
if (!isRecord(result) || result.applied !== true) {
|
|
747
|
+
throw new Error('the sim did not apply the canvas; open one with peach canvas open')
|
|
748
|
+
}
|
|
749
|
+
} finally {
|
|
750
|
+
bridge.close()
|
|
751
|
+
}
|
|
752
|
+
}
|