@satinhq/kit 0.0.0-stage → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +96 -0
- package/README.md +454 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/bin/satin.mjs +13 -0
- package/dist/acknowledgements/Acknowledgements.d.ts +4 -0
- package/dist/acknowledgements/Acknowledgements.js +42 -0
- package/dist/acknowledgements/bundledNotices.d.ts +4 -0
- package/dist/acknowledgements/bundledNotices.js +58 -0
- package/dist/acknowledgements/inventory.d.ts +17 -0
- package/dist/acknowledgements/inventory.js +10 -0
- package/dist/acknowledgements/inventory.json +39 -0
- package/dist/actions/ActionMenu.d.ts +30 -0
- package/dist/actions/ActionMenu.js +103 -0
- package/dist/actions/RowActions.d.ts +42 -0
- package/dist/actions/RowActions.js +820 -0
- package/dist/actions/contextMotion.d.ts +78 -0
- package/dist/actions/contextMotion.js +329 -0
- package/dist/actions/motion.d.ts +19 -0
- package/dist/actions/motion.js +74 -0
- package/dist/actions/nativeContextAppearance.json +86 -0
- package/dist/actions/nativeContextMotion.json +734 -0
- package/dist/actions/nativeMotion.json +388 -0
- package/dist/actions/preview.d.ts +27 -0
- package/dist/actions/preview.js +217 -0
- package/dist/actions/recognizers.d.ts +24 -0
- package/dist/actions/recognizers.js +87 -0
- package/dist/actions/rowScrub.d.ts +59 -0
- package/dist/actions/rowScrub.js +400 -0
- package/dist/actions/swipeSpring.d.ts +14 -0
- package/dist/actions/swipeSpring.js +35 -0
- package/dist/actions/types.d.ts +71 -0
- package/dist/actions/types.js +28 -0
- package/dist/app/InstallComponents.d.ts +16 -0
- package/dist/app/InstallComponents.js +104 -0
- package/dist/app/InstallationDiagnostics.d.ts +7 -0
- package/dist/app/InstallationDiagnostics.js +23 -0
- package/dist/app/OrientationGuard.d.ts +8 -0
- package/dist/app/OrientationGuard.js +9 -0
- package/dist/app/appearance.d.ts +18 -0
- package/dist/app/appearance.js +15 -0
- package/dist/app/appearanceStore.d.ts +30 -0
- package/dist/app/appearanceStore.js +228 -0
- package/dist/app/backgroundUpdate.d.ts +20 -0
- package/dist/app/backgroundUpdate.js +151 -0
- package/dist/app/buildInfo.d.ts +11 -0
- package/dist/app/buildInfo.js +12 -0
- package/dist/app/buildInfoBuild.d.ts +3 -0
- package/dist/app/buildInfoBuild.js +12 -0
- package/dist/app/checkCli.d.ts +1 -0
- package/dist/app/checkCli.js +73 -0
- package/dist/app/coldLaunchUpdate.d.ts +14 -0
- package/dist/app/coldLaunchUpdate.js +384 -0
- package/dist/app/definition.d.ts +85 -0
- package/dist/app/definition.js +347 -0
- package/dist/app/deployment.d.ts +28 -0
- package/dist/app/deployment.js +352 -0
- package/dist/app/deploymentBuild.d.ts +3 -0
- package/dist/app/deploymentBuild.js +55 -0
- package/dist/app/earlyWorker.d.ts +3 -0
- package/dist/app/earlyWorker.js +77 -0
- package/dist/app/head.d.ts +10 -0
- package/dist/app/head.js +120 -0
- package/dist/app/icons.d.ts +4 -0
- package/dist/app/icons.js +35 -0
- package/dist/app/install.d.ts +18 -0
- package/dist/app/install.js +82 -0
- package/dist/app/installCheck.d.ts +2 -0
- package/dist/app/installCheck.js +148 -0
- package/dist/app/installContext.d.ts +35 -0
- package/dist/app/installContext.js +45 -0
- package/dist/app/installCustom.d.ts +25 -0
- package/dist/app/installCustom.js +55 -0
- package/dist/app/installExperience.d.ts +22 -0
- package/dist/app/installExperience.js +389 -0
- package/dist/app/installExperienceDevice.d.ts +29 -0
- package/dist/app/installExperienceDevice.js +160 -0
- package/dist/app/installExperienceHome.d.ts +16 -0
- package/dist/app/installExperienceHome.js +304 -0
- package/dist/app/installExperienceRuntime.d.ts +37 -0
- package/dist/app/installExperienceRuntime.js +285 -0
- package/dist/app/installPolicy.d.ts +28 -0
- package/dist/app/installPolicy.js +90 -0
- package/dist/app/installQr.d.ts +10 -0
- package/dist/app/installQr.js +139 -0
- package/dist/app/installStrings.d.ts +52 -0
- package/dist/app/installStrings.js +75 -0
- package/dist/app/installTipPath.d.ts +12 -0
- package/dist/app/installTipPath.js +9 -0
- package/dist/app/installationFailure.d.ts +14 -0
- package/dist/app/installationFailure.js +38 -0
- package/dist/app/launch.d.ts +7 -0
- package/dist/app/launch.js +241 -0
- package/dist/app/launchReadiness.d.ts +9 -0
- package/dist/app/launchReadiness.js +72 -0
- package/dist/app/launchScreen.d.ts +16 -0
- package/dist/app/launchScreen.js +14 -0
- package/dist/app/launchScreenRuntime.d.ts +19 -0
- package/dist/app/launchScreenRuntime.js +313 -0
- package/dist/app/launchWatchdog.d.ts +1 -0
- package/dist/app/launchWatchdog.js +202 -0
- package/dist/app/manifests.d.ts +19 -0
- package/dist/app/manifests.js +20 -0
- package/dist/app/mdm.d.ts +3 -0
- package/dist/app/mdm.js +20 -0
- package/dist/app/mediaCheck.d.ts +9 -0
- package/dist/app/mediaCheck.js +122 -0
- package/dist/app/mediaTypes.d.ts +2 -0
- package/dist/app/mediaTypes.js +13 -0
- package/dist/app/platformPolicy.d.ts +3 -0
- package/dist/app/platformPolicy.js +10 -0
- package/dist/app/platformScripts.d.ts +6 -0
- package/dist/app/platformScripts.js +65 -0
- package/dist/app/releaseUpdates.d.ts +7 -0
- package/dist/app/releaseUpdates.js +53 -0
- package/dist/app/runtime.d.ts +9 -0
- package/dist/app/runtime.js +38 -0
- package/dist/app/startup.d.ts +30 -0
- package/dist/app/startup.js +24 -0
- package/dist/app/statusBand.d.ts +11 -0
- package/dist/app/statusBand.js +257 -0
- package/dist/app/viewport.d.ts +3 -0
- package/dist/app/viewport.js +42 -0
- package/dist/app/viewportValue.d.ts +5 -0
- package/dist/app/viewportValue.js +14 -0
- package/dist/app/vite.d.ts +27 -0
- package/dist/app/vite.js +440 -0
- package/dist/app/warmImage.d.ts +3 -0
- package/dist/app/warmImage.js +59 -0
- package/dist/content/content.d.ts +153 -0
- package/dist/content/content.js +315 -0
- package/dist/content/layout.d.ts +26 -0
- package/dist/content/layout.js +114 -0
- package/dist/content/scaledMetric.d.ts +3 -0
- package/dist/content/scaledMetric.js +68 -0
- package/dist/content/typography.d.ts +83 -0
- package/dist/content/typography.js +32 -0
- package/dist/controls/ActivityIndicatorSegments.d.ts +4 -0
- package/dist/controls/ActivityIndicatorSegments.js +5 -0
- package/dist/controls/ColorPicker.d.ts +20 -0
- package/dist/controls/ColorPicker.js +70 -0
- package/dist/controls/ControlRow.d.ts +5 -0
- package/dist/controls/ControlRow.js +10 -0
- package/dist/controls/DatePicker.d.ts +41 -0
- package/dist/controls/DatePicker.js +148 -0
- package/dist/controls/ProgressView.d.ts +17 -0
- package/dist/controls/ProgressView.js +24 -0
- package/dist/controls/civilDate.d.ts +49 -0
- package/dist/controls/civilDate.js +112 -0
- package/dist/data/database.d.ts +154 -0
- package/dist/data/database.js +710 -0
- package/dist/data/value-equal.d.ts +2 -0
- package/dist/data/value-equal.js +36 -0
- package/dist/data/write-store.d.ts +38 -0
- package/dist/data/write-store.js +192 -0
- package/dist/dev-menu/DevMenu.d.ts +1 -0
- package/dist/dev-menu/DevMenu.js +121 -0
- package/dist/dev-menu/actions.d.ts +12 -0
- package/dist/dev-menu/actions.js +99 -0
- package/dist/dev-menu/build.d.ts +5 -0
- package/dist/dev-menu/build.js +40 -0
- package/dist/dev-menu/gesture.d.ts +18 -0
- package/dist/dev-menu/gesture.js +109 -0
- package/dist/dev-menu/shake.d.ts +2 -0
- package/dist/dev-menu/shake.js +36 -0
- package/dist/dev-menu/types.d.ts +8 -0
- package/dist/dev-menu/types.js +1 -0
- package/dist/diagnostics.d.ts +3 -0
- package/dist/diagnostics.js +4 -0
- package/dist/docs/app-recipes.md +411 -0
- package/dist/docs/components/file-importer.md +54 -0
- package/dist/docs/components/paste-button.md +48 -0
- package/dist/docs/components/photos-picker.md +53 -0
- package/dist/docs/components/share-link.md +58 -0
- package/dist/docs/content.md +159 -0
- package/dist/docs/controls.md +151 -0
- package/dist/docs/data.md +332 -0
- package/dist/docs/limitations.md +40 -0
- package/dist/docs/messaging-scroll.md +234 -0
- package/dist/docs/networking.md +190 -0
- package/dist/docs/push.md +215 -0
- package/dist/docs/swiftui-reference.md +1895 -0
- package/dist/docs/symbols.md +293 -0
- package/dist/docs/tokens.md +60 -0
- package/dist/fidelity/devAssertions.d.ts +21 -0
- package/dist/fidelity/devAssertions.js +199 -0
- package/dist/focus/focusIntentMachine.d.ts +106 -0
- package/dist/focus/focusIntentMachine.js +359 -0
- package/dist/focus/navigationFocus.d.ts +42 -0
- package/dist/focus/navigationFocus.js +241 -0
- package/dist/focus/programmaticFocus.d.ts +15 -0
- package/dist/focus/programmaticFocus.js +152 -0
- package/dist/gestures/GestureView.d.ts +12 -0
- package/dist/gestures/GestureView.js +321 -0
- package/dist/gestures/arena.d.ts +138 -0
- package/dist/gestures/arena.js +417 -0
- package/dist/gestures/existingCompetitors.d.ts +79 -0
- package/dist/gestures/existingCompetitors.js +82 -0
- package/dist/gestures/gesture.d.ts +62 -0
- package/dist/gestures/gesture.js +107 -0
- package/dist/glass/ControlLens.d.ts +46 -0
- package/dist/glass/ControlLens.js +88 -0
- package/dist/glass/GlassBar.d.ts +9 -0
- package/dist/glass/GlassBar.js +22 -0
- package/dist/glass/GlassConfusionReview.d.ts +3 -0
- package/dist/glass/GlassConfusionReview.js +185 -0
- package/dist/glass/GlassEffect.d.ts +69 -0
- package/dist/glass/GlassEffect.js +550 -0
- package/dist/glass/GlassMaterialRoot.d.ts +7 -0
- package/dist/glass/GlassMaterialRoot.js +39 -0
- package/dist/glass/GlassPresentation.d.ts +28 -0
- package/dist/glass/GlassPresentation.js +1038 -0
- package/dist/glass/GlassProbeIcons.d.ts +8 -0
- package/dist/glass/GlassProbeIcons.js +12 -0
- package/dist/glass/GlassProbeOverlay.d.ts +52 -0
- package/dist/glass/GlassProbeOverlay.js +45 -0
- package/dist/glass/GlassTextField.d.ts +22 -0
- package/dist/glass/GlassTextField.js +12 -0
- package/dist/glass/MaterialEffectRoot.d.ts +9 -0
- package/dist/glass/MaterialEffectRoot.js +189 -0
- package/dist/glass/Menu.d.ts +3 -0
- package/dist/glass/Menu.js +35 -0
- package/dist/glass/MenuStack.d.ts +23 -0
- package/dist/glass/MenuStack.js +371 -0
- package/dist/glass/MenuSymbol.d.ts +7 -0
- package/dist/glass/MenuSymbol.js +16 -0
- package/dist/glass/MorphEllipsisArtwork.d.ts +2 -0
- package/dist/glass/MorphEllipsisArtwork.js +6 -0
- package/dist/glass/TabBar.d.ts +29 -0
- package/dist/glass/TabBar.js +169 -0
- package/dist/glass/capability.d.ts +25 -0
- package/dist/glass/capability.js +63 -0
- package/dist/glass/captureWindow.d.ts +60 -0
- package/dist/glass/captureWindow.js +119 -0
- package/dist/glass/confusionSession.d.ts +41 -0
- package/dist/glass/confusionSession.js +44 -0
- package/dist/glass/contactPhysics.d.ts +130 -0
- package/dist/glass/contactPhysics.js +214 -0
- package/dist/glass/context.d.ts +37 -0
- package/dist/glass/context.js +11 -0
- package/dist/glass/errorAlert.d.ts +6 -0
- package/dist/glass/errorAlert.js +57 -0
- package/dist/glass/errors.d.ts +22 -0
- package/dist/glass/errors.js +78 -0
- package/dist/glass/failurePolicy.d.ts +4 -0
- package/dist/glass/failurePolicy.js +20 -0
- package/dist/glass/fallback/material.d.ts +16 -0
- package/dist/glass/fallback/material.js +87 -0
- package/dist/glass/fallback/regions.d.ts +16 -0
- package/dist/glass/fallback/regions.js +249 -0
- package/dist/glass/fallback/runtime.d.ts +72 -0
- package/dist/glass/fallback/runtime.js +278 -0
- package/dist/glass/fallback/selection.d.ts +2 -0
- package/dist/glass/fallback/selection.js +9 -0
- package/dist/glass/fieldGeometry.d.ts +28 -0
- package/dist/glass/fieldGeometry.js +64 -0
- package/dist/glass/fieldMotion.d.ts +42 -0
- package/dist/glass/fieldMotion.js +47 -0
- package/dist/glass/glassContact.d.ts +76 -0
- package/dist/glass/glassContact.js +153 -0
- package/dist/glass/glassProbeSettings.d.ts +18 -0
- package/dist/glass/glassProbeSettings.js +133 -0
- package/dist/glass/lens/Scene.d.ts +108 -0
- package/dist/glass/lens/Scene.js +553 -0
- package/dist/glass/lens/backgrounds.json +103 -0
- package/dist/glass/lens/bitmapBackdrop.d.ts +14 -0
- package/dist/glass/lens/bitmapBackdrop.js +35 -0
- package/dist/glass/lens/controlLift.d.ts +94 -0
- package/dist/glass/lens/controlLift.js +78 -0
- package/dist/glass/lens/data.d.ts +19 -0
- package/dist/glass/lens/data.js +161 -0
- package/dist/glass/lens/drawableTop.d.ts +16 -0
- package/dist/glass/lens/drawableTop.js +15 -0
- package/dist/glass/lens/icons.d.ts +9 -0
- package/dist/glass/lens/icons.js +34 -0
- package/dist/glass/lens/interactiveContact.d.ts +33 -0
- package/dist/glass/lens/interactiveContact.js +158 -0
- package/dist/glass/lens/interactivePress.d.ts +95 -0
- package/dist/glass/lens/interactivePress.js +169 -0
- package/dist/glass/lens/ios27GlyphFit.json +126 -0
- package/dist/glass/lens/lensLightingSamples.json +1 -0
- package/dist/glass/lens/lensPress.d.ts +22 -0
- package/dist/glass/lens/lensPress.js +68 -0
- package/dist/glass/lens/lensPressSamples.json +1 -0
- package/dist/glass/lens/liquidMotion.d.ts +50 -0
- package/dist/glass/lens/liquidMotion.js +239 -0
- package/dist/glass/lens/materialGlassRecipes.json +776 -0
- package/dist/glass/lens/materialUniforms.d.ts +22 -0
- package/dist/glass/lens/materialUniforms.js +117 -0
- package/dist/glass/lens/menu-closing-close-fit.json +380 -0
- package/dist/glass/lens/menu-opening-native-fits.json +911 -0
- package/dist/glass/lens/menuContextFit.json +88 -0
- package/dist/glass/lens/menuContextOpacity.json +98 -0
- package/dist/glass/lens/menuContextPresentation.d.ts +15 -0
- package/dist/glass/lens/menuContextPresentation.js +65 -0
- package/dist/glass/lens/menuCornerFit.json +252 -0
- package/dist/glass/lens/menuCornerMotion.d.ts +9 -0
- package/dist/glass/lens/menuCornerMotion.js +5 -0
- package/dist/glass/lens/menuDropFit.json +64 -0
- package/dist/glass/lens/menuField.d.ts +178 -0
- package/dist/glass/lens/menuField.js +564 -0
- package/dist/glass/lens/menuGesturePresentation.d.ts +12 -0
- package/dist/glass/lens/menuGesturePresentation.js +42 -0
- package/dist/glass/lens/menuGlyphDropFit.json +38 -0
- package/dist/glass/lens/menuMorphFit.json +564 -0
- package/dist/glass/lens/menuMorphMotion.d.ts +70 -0
- package/dist/glass/lens/menuMorphMotion.js +219 -0
- package/dist/glass/lens/menuMorphPhoneFit.json +85 -0
- package/dist/glass/lens/menuMotion.d.ts +81 -0
- package/dist/glass/lens/menuMotion.js +323 -0
- package/dist/glass/lens/menuPlacement.d.ts +5 -0
- package/dist/glass/lens/menuPlacement.js +29 -0
- package/dist/glass/lens/menuSpring.d.ts +18 -0
- package/dist/glass/lens/menuSpring.js +29 -0
- package/dist/glass/lens/menuTouchLight.d.ts +13 -0
- package/dist/glass/lens/menuTouchLight.js +147 -0
- package/dist/glass/lens/mirrorConstants.d.ts +1 -0
- package/dist/glass/lens/mirrorConstants.js +2 -0
- package/dist/glass/lens/mirrorExtents.d.ts +52 -0
- package/dist/glass/lens/mirrorExtents.js +264 -0
- package/dist/glass/lens/mirrorInvalidation.d.ts +6 -0
- package/dist/glass/lens/mirrorInvalidation.js +10 -0
- package/dist/glass/lens/mirrorReuse.d.ts +20 -0
- package/dist/glass/lens/mirrorReuse.js +166 -0
- package/dist/glass/lens/motion.d.ts +62 -0
- package/dist/glass/lens/motion.js +93 -0
- package/dist/glass/lens/recordedMotion.d.ts +6 -0
- package/dist/glass/lens/recordedMotion.js +44 -0
- package/dist/glass/lens/referenceBackground.d.ts +9 -0
- package/dist/glass/lens/referenceBackground.js +151 -0
- package/dist/glass/lens/referenceProfiles.d.ts +21 -0
- package/dist/glass/lens/referenceProfiles.js +33 -0
- package/dist/glass/lens/referenceRegularTint.d.ts +12 -0
- package/dist/glass/lens/referenceRegularTint.js +41 -0
- package/dist/glass/lens/scopeSegments.d.ts +12 -0
- package/dist/glass/lens/scopeSegments.js +18 -0
- package/dist/glass/lens/scrollAnchoring.d.ts +15 -0
- package/dist/glass/lens/scrollAnchoring.js +17 -0
- package/dist/glass/lens/selectionParameters.json +94 -0
- package/dist/glass/lens/shapeParameters.json +198 -0
- package/dist/glass/lens/tab-motion-native-fits.json +778 -0
- package/dist/glass/lens/tabAccessoryMotion.d.ts +52 -0
- package/dist/glass/lens/tabAccessoryMotion.js +52 -0
- package/dist/glass/lens/tabChromaRimModel.d.ts +43 -0
- package/dist/glass/lens/tabChromaRimModel.js +93 -0
- package/dist/glass/lens/tabCollapseInkSamples.json +49 -0
- package/dist/glass/lens/tabCompactGesture.d.ts +15 -0
- package/dist/glass/lens/tabCompactGesture.js +50 -0
- package/dist/glass/lens/tabGeometryAttack.json +70 -0
- package/dist/glass/lens/tabGlyphColours.d.ts +17 -0
- package/dist/glass/lens/tabGlyphColours.js +37 -0
- package/dist/glass/lens/tabInterruptedDecaySamples.json +245 -0
- package/dist/glass/lens/tabInterruptedRestoreSamples.json +290 -0
- package/dist/glass/lens/tabMaterialModel.d.ts +10 -0
- package/dist/glass/lens/tabMaterialModel.js +108 -0
- package/dist/glass/lens/tabMinimizeInk.d.ts +15 -0
- package/dist/glass/lens/tabMinimizeInk.js +14 -0
- package/dist/glass/lens/tabMinimizeMotion.d.ts +36 -0
- package/dist/glass/lens/tabMinimizeMotion.js +107 -0
- package/dist/glass/lens/tabMinimizeSamples.json +411 -0
- package/dist/glass/lens/tabMotion.d.ts +91 -0
- package/dist/glass/lens/tabMotion.js +478 -0
- package/dist/glass/lens/tabMotionFit.d.ts +76 -0
- package/dist/glass/lens/tabMotionFit.js +61 -0
- package/dist/glass/lens/tabNativeSymbols.d.ts +1 -0
- package/dist/glass/lens/tabNativeSymbols.js +7 -0
- package/dist/glass/lens/tabPresentation.d.ts +21 -0
- package/dist/glass/lens/tabPresentation.js +20 -0
- package/dist/glass/lens/tabRelease.d.ts +5 -0
- package/dist/glass/lens/tabRelease.js +14 -0
- package/dist/glass/lens/tabRestoreMotion.d.ts +19 -0
- package/dist/glass/lens/tabRestoreMotion.js +65 -0
- package/dist/glass/lens/tabRestoreSamples.json +1272 -0
- package/dist/glass/lens/tabSearchMember.d.ts +38 -0
- package/dist/glass/lens/tabSearchMember.js +74 -0
- package/dist/glass/lens/tabSelectionMaterial.d.ts +20 -0
- package/dist/glass/lens/tabSelectionMaterial.js +23 -0
- package/dist/glass/lens/tabSelectionMeasurements.test-fixture.d.ts +9 -0
- package/dist/glass/lens/tabSelectionMeasurements.test-fixture.js +74 -0
- package/dist/glass/lens/tabSettingsSymbol.d.ts +1 -0
- package/dist/glass/lens/tabSettingsSymbol.js +2 -0
- package/dist/glass/lens/tabShapeResponse.d.ts +7 -0
- package/dist/glass/lens/tabShapeResponse.js +30 -0
- package/dist/glass/lens/theme.d.ts +18 -0
- package/dist/glass/lens/theme.js +40 -0
- package/dist/glass/lens/trace.d.ts +2 -0
- package/dist/glass/lens/trace.js +27 -0
- package/dist/glass/liquidContext.d.ts +31 -0
- package/dist/glass/liquidContext.js +2 -0
- package/dist/glass/menuPanelPlacement.d.ts +51 -0
- package/dist/glass/menuPanelPlacement.js +128 -0
- package/dist/glass/menuPresenter.d.ts +34 -0
- package/dist/glass/menuPresenter.js +983 -0
- package/dist/glass/menuSymbolMasks.d.ts +1 -0
- package/dist/glass/menuSymbolMasks.js +1 -0
- package/dist/glass/menuSymbolTokens.d.ts +22 -0
- package/dist/glass/menuSymbolTokens.js +12 -0
- package/dist/glass/menuTriggerGeometry.d.ts +99 -0
- package/dist/glass/menuTriggerGeometry.js +126 -0
- package/dist/glass/menuTriggerSnapshot.d.ts +77 -0
- package/dist/glass/menuTriggerSnapshot.js +69 -0
- package/dist/glass/menuTypes.d.ts +22 -0
- package/dist/glass/menuTypes.js +1 -0
- package/dist/glass/morphField.d.ts +18 -0
- package/dist/glass/morphField.js +139 -0
- package/dist/glass/presentationFrame.d.ts +43 -0
- package/dist/glass/presentationFrame.js +82 -0
- package/dist/glass/pressHighlight.d.ts +9 -0
- package/dist/glass/pressHighlight.js +158 -0
- package/dist/glass/regionRegistry.d.ts +93 -0
- package/dist/glass/regionRegistry.js +313 -0
- package/dist/glass/regions.d.ts +262 -0
- package/dist/glass/regions.js +147 -0
- package/dist/glass/regularMaterialContext.d.ts +45 -0
- package/dist/glass/regularMaterialContext.js +118 -0
- package/dist/glass/regularTriggerMaterial.d.ts +19 -0
- package/dist/glass/regularTriggerMaterial.js +111 -0
- package/dist/glass/regularTriggerRim.d.ts +163 -0
- package/dist/glass/regularTriggerRim.js +436 -0
- package/dist/glass/renderSpecs.d.ts +454 -0
- package/dist/glass/renderSpecs.js +231 -0
- package/dist/glass/rendererContract.d.ts +205 -0
- package/dist/glass/rendererContract.js +18 -0
- package/dist/glass/shapeTrack.d.ts +53 -0
- package/dist/glass/shapeTrack.js +74 -0
- package/dist/glass/shapeTrackRegistry.d.ts +40 -0
- package/dist/glass/shapeTrackRegistry.js +49 -0
- package/dist/glass/sourceDamage.d.ts +6 -0
- package/dist/glass/sourceDamage.js +8 -0
- package/dist/glass/submenuMotion.d.ts +205 -0
- package/dist/glass/submenuMotion.js +306 -0
- package/dist/glass/tabBarModel.d.ts +12 -0
- package/dist/glass/tabBarModel.js +32 -0
- package/dist/glass/testing.d.ts +14 -0
- package/dist/glass/testing.js +14 -0
- package/dist/glass/tokens.d.ts +79 -0
- package/dist/glass/tokens.js +86 -0
- package/dist/glass/toolbarMaterialContext.d.ts +28 -0
- package/dist/glass/toolbarMaterialContext.js +66 -0
- package/dist/glass/topLayer.d.ts +5 -0
- package/dist/glass/topLayer.js +10 -0
- package/dist/glass/unionOutline.d.ts +11 -0
- package/dist/glass/unionOutline.js +98 -0
- package/dist/glass/visibleDeadline.d.ts +21 -0
- package/dist/glass/visibleDeadline.js +61 -0
- package/dist/glass/webgpu/accessoryMorph.d.ts +99 -0
- package/dist/glass/webgpu/accessoryMorph.js +473 -0
- package/dist/glass/webgpu/accessoryTrack.d.ts +47 -0
- package/dist/glass/webgpu/accessoryTrack.js +59 -0
- package/dist/glass/webgpu/areaMips.d.ts +50 -0
- package/dist/glass/webgpu/areaMips.js +166 -0
- package/dist/glass/webgpu/backdrop.d.ts +86 -0
- package/dist/glass/webgpu/backdrop.js +243 -0
- package/dist/glass/webgpu/backdropLayers.d.ts +29 -0
- package/dist/glass/webgpu/backdropLayers.js +182 -0
- package/dist/glass/webgpu/backgroundLayers.d.ts +71 -0
- package/dist/glass/webgpu/backgroundLayers.js +385 -0
- package/dist/glass/webgpu/cadence.d.ts +18 -0
- package/dist/glass/webgpu/cadence.js +35 -0
- package/dist/glass/webgpu/canvasSubmission.d.ts +6 -0
- package/dist/glass/webgpu/canvasSubmission.js +22 -0
- package/dist/glass/webgpu/capture.d.ts +77 -0
- package/dist/glass/webgpu/capture.js +534 -0
- package/dist/glass/webgpu/captureBands.d.ts +39 -0
- package/dist/glass/webgpu/captureBands.js +53 -0
- package/dist/glass/webgpu/captureContext.d.ts +1 -0
- package/dist/glass/webgpu/captureContext.js +6 -0
- package/dist/glass/webgpu/captureDemand.d.ts +44 -0
- package/dist/glass/webgpu/captureDemand.js +81 -0
- package/dist/glass/webgpu/captureRelease.d.ts +18 -0
- package/dist/glass/webgpu/captureRelease.js +39 -0
- package/dist/glass/webgpu/client.d.ts +49 -0
- package/dist/glass/webgpu/client.js +336 -0
- package/dist/glass/webgpu/contextBackdrop.d.ts +6 -0
- package/dist/glass/webgpu/contextBackdrop.js +13 -0
- package/dist/glass/webgpu/contextComposite.d.ts +64 -0
- package/dist/glass/webgpu/contextComposite.js +66 -0
- package/dist/glass/webgpu/decodedImage.d.ts +1 -0
- package/dist/glass/webgpu/decodedImage.js +2 -0
- package/dist/glass/webgpu/deviceLimits.d.ts +5 -0
- package/dist/glass/webgpu/deviceLimits.js +8 -0
- package/dist/glass/webgpu/edgePass.d.ts +9 -0
- package/dist/glass/webgpu/edgePass.js +170 -0
- package/dist/glass/webgpu/entry.worker.d.ts +1 -0
- package/dist/glass/webgpu/entry.worker.js +28 -0
- package/dist/glass/webgpu/errorCode.d.ts +3 -0
- package/dist/glass/webgpu/errorCode.js +27 -0
- package/dist/glass/webgpu/errors.d.ts +8 -0
- package/dist/glass/webgpu/errors.js +55 -0
- package/dist/glass/webgpu/fieldInk.d.ts +9 -0
- package/dist/glass/webgpu/fieldInk.js +62 -0
- package/dist/glass/webgpu/foreground.d.ts +29 -0
- package/dist/glass/webgpu/foreground.js +313 -0
- package/dist/glass/webgpu/frameClock.d.ts +34 -0
- package/dist/glass/webgpu/frameClock.js +60 -0
- package/dist/glass/webgpu/frameGraph.d.ts +57 -0
- package/dist/glass/webgpu/frameGraph.js +287 -0
- package/dist/glass/webgpu/frameProbe.d.ts +58 -0
- package/dist/glass/webgpu/frameProbe.js +181 -0
- package/dist/glass/webgpu/interactionProfiles.d.ts +10 -0
- package/dist/glass/webgpu/interactionProfiles.js +25 -0
- package/dist/glass/webgpu/keptGlyphs.d.ts +68 -0
- package/dist/glass/webgpu/keptGlyphs.js +85 -0
- package/dist/glass/webgpu/keyboardBackdrop.d.ts +12 -0
- package/dist/glass/webgpu/keyboardBackdrop.js +51 -0
- package/dist/glass/webgpu/lagTrace.d.ts +31 -0
- package/dist/glass/webgpu/lagTrace.js +22 -0
- package/dist/glass/webgpu/layers.d.ts +100 -0
- package/dist/glass/webgpu/layers.js +301 -0
- package/dist/glass/webgpu/lensDebug.d.ts +4 -0
- package/dist/glass/webgpu/lensDebug.js +28 -0
- package/dist/glass/webgpu/lensDiffusion.d.ts +2 -0
- package/dist/glass/webgpu/lensDiffusion.js +20 -0
- package/dist/glass/webgpu/lensLightingFit.json +222 -0
- package/dist/glass/webgpu/menuLiftInput.d.ts +30 -0
- package/dist/glass/webgpu/menuLiftInput.js +39 -0
- package/dist/glass/webgpu/menuSurfaceGuard.d.ts +17 -0
- package/dist/glass/webgpu/menuSurfaceGuard.js +26 -0
- package/dist/glass/webgpu/minimize.d.ts +184 -0
- package/dist/glass/webgpu/minimize.js +470 -0
- package/dist/glass/webgpu/navigationAtlasCopy.d.ts +12 -0
- package/dist/glass/webgpu/navigationAtlasCopy.js +121 -0
- package/dist/glass/webgpu/navigationTracks.d.ts +3 -0
- package/dist/glass/webgpu/navigationTracks.js +84 -0
- package/dist/glass/webgpu/passes.d.ts +204 -0
- package/dist/glass/webgpu/passes.js +394 -0
- package/dist/glass/webgpu/pendingSurfaceInput.d.ts +29 -0
- package/dist/glass/webgpu/pendingSurfaceInput.js +51 -0
- package/dist/glass/webgpu/preparedSourcePixels.d.ts +21 -0
- package/dist/glass/webgpu/preparedSourcePixels.js +43 -0
- package/dist/glass/webgpu/presentationBackdrop.d.ts +3 -0
- package/dist/glass/webgpu/presentationBackdrop.js +33 -0
- package/dist/glass/webgpu/presentationDiffusion.d.ts +48 -0
- package/dist/glass/webgpu/presentationDiffusion.js +57 -0
- package/dist/glass/webgpu/presentationMaterial.d.ts +9 -0
- package/dist/glass/webgpu/presentationMaterial.js +156 -0
- package/dist/glass/webgpu/presenterViewport.d.ts +11 -0
- package/dist/glass/webgpu/presenterViewport.js +193 -0
- package/dist/glass/webgpu/production.d.ts +552 -0
- package/dist/glass/webgpu/production.js +1929 -0
- package/dist/glass/webgpu/productionInstalls.d.ts +53 -0
- package/dist/glass/webgpu/productionInstalls.js +225 -0
- package/dist/glass/webgpu/productionNavigation.d.ts +5 -0
- package/dist/glass/webgpu/productionNavigation.js +360 -0
- package/dist/glass/webgpu/productionPinnedTop.d.ts +80 -0
- package/dist/glass/webgpu/productionPinnedTop.js +77 -0
- package/dist/glass/webgpu/productionPinnedTopPrepare.d.ts +21 -0
- package/dist/glass/webgpu/productionPinnedTopPrepare.js +132 -0
- package/dist/glass/webgpu/productionPlanes.d.ts +135 -0
- package/dist/glass/webgpu/productionPlanes.js +412 -0
- package/dist/glass/webgpu/productionPrepare.d.ts +18 -0
- package/dist/glass/webgpu/productionPrepare.js +832 -0
- package/dist/glass/webgpu/productionTracks.d.ts +73 -0
- package/dist/glass/webgpu/productionTracks.js +22 -0
- package/dist/glass/webgpu/productionViewport.d.ts +20 -0
- package/dist/glass/webgpu/productionViewport.js +52 -0
- package/dist/glass/webgpu/profile.d.ts +37 -0
- package/dist/glass/webgpu/profile.js +101 -0
- package/dist/glass/webgpu/raster.d.ts +337 -0
- package/dist/glass/webgpu/raster.js +1360 -0
- package/dist/glass/webgpu/rasterMaterial.d.ts +19 -0
- package/dist/glass/webgpu/rasterMaterial.js +197 -0
- package/dist/glass/webgpu/rasterShaders.d.ts +7 -0
- package/dist/glass/webgpu/rasterShaders.js +105 -0
- package/dist/glass/webgpu/rasterUniforms.d.ts +304 -0
- package/dist/glass/webgpu/rasterUniforms.js +415 -0
- package/dist/glass/webgpu/regionBackdrop.d.ts +8 -0
- package/dist/glass/webgpu/regionBackdrop.js +12 -0
- package/dist/glass/webgpu/regionBridge.d.ts +145 -0
- package/dist/glass/webgpu/regionBridge.js +1691 -0
- package/dist/glass/webgpu/regionScene.d.ts +294 -0
- package/dist/glass/webgpu/regionScene.js +2144 -0
- package/dist/glass/webgpu/renderer.d.ts +8 -0
- package/dist/glass/webgpu/renderer.js +1478 -0
- package/dist/glass/webgpu/residentPlanes.d.ts +69 -0
- package/dist/glass/webgpu/residentPlanes.js +104 -0
- package/dist/glass/webgpu/restMaterial.d.ts +6 -0
- package/dist/glass/webgpu/restMaterial.js +65 -0
- package/dist/glass/webgpu/resumeOverlay.d.ts +44 -0
- package/dist/glass/webgpu/resumeOverlay.js +82 -0
- package/dist/glass/webgpu/sampleTrace.d.ts +11 -0
- package/dist/glass/webgpu/sampleTrace.js +50 -0
- package/dist/glass/webgpu/scrollEdgeBackdrop.d.ts +89 -0
- package/dist/glass/webgpu/scrollEdgeBackdrop.js +177 -0
- package/dist/glass/webgpu/scrollEdgePose.d.ts +4 -0
- package/dist/glass/webgpu/scrollEdgePose.js +49 -0
- package/dist/glass/webgpu/selectionThumb.d.ts +81 -0
- package/dist/glass/webgpu/selectionThumb.js +209 -0
- package/dist/glass/webgpu/shaders.d.ts +67 -0
- package/dist/glass/webgpu/shaders.js +595 -0
- package/dist/glass/webgpu/sharedLift.d.ts +7 -0
- package/dist/glass/webgpu/sharedLift.js +223 -0
- package/dist/glass/webgpu/sourcePixels.d.ts +42 -0
- package/dist/glass/webgpu/sourcePixels.js +140 -0
- package/dist/glass/webgpu/sourcePixels.worker.d.ts +1 -0
- package/dist/glass/webgpu/sourcePixels.worker.js +62 -0
- package/dist/glass/webgpu/tabGlyphInk.d.ts +14 -0
- package/dist/glass/webgpu/tabGlyphInk.js +72 -0
- package/dist/glass/webgpu/touchLight.d.ts +4 -0
- package/dist/glass/webgpu/touchLight.js +15 -0
- package/dist/glass/worker/client.d.ts +21 -0
- package/dist/glass/worker/client.js +152 -0
- package/dist/glass/worker/experiment.d.ts +13 -0
- package/dist/glass/worker/experiment.js +221 -0
- package/dist/glass/worker/fixture.d.ts +21 -0
- package/dist/glass/worker/fixture.js +152 -0
- package/dist/glass/worker/protocol.d.ts +439 -0
- package/dist/glass/worker/protocol.js +5 -0
- package/dist/graphicsProbe.d.ts +19 -0
- package/dist/graphicsProbe.js +111 -0
- package/dist/haptics/SensoryButton.d.ts +21 -0
- package/dist/haptics/SensoryButton.js +80 -0
- package/dist/image/ContentAdmission.d.ts +19 -0
- package/dist/image/ContentAdmission.js +70 -0
- package/dist/image/Image.d.ts +30 -0
- package/dist/image/Image.js +341 -0
- package/dist/image/asset.d.ts +9 -0
- package/dist/image/asset.js +1 -0
- package/dist/image/contentReadiness.d.ts +7 -0
- package/dist/image/contentReadiness.js +54 -0
- package/dist/image/imports.d.ts +4 -0
- package/dist/image/resource.d.ts +53 -0
- package/dist/image/resource.js +286 -0
- package/dist/image/vite.d.ts +3 -0
- package/dist/image/vite.js +63 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +102 -0
- package/dist/install.d.ts +8 -0
- package/dist/install.js +8 -0
- package/dist/internal.d.ts +96 -0
- package/dist/internal.js +80 -0
- package/dist/keyboard/adapter.d.ts +82 -0
- package/dist/keyboard/adapter.js +727 -0
- package/dist/keyboard/avoidance.d.ts +24 -0
- package/dist/keyboard/avoidance.js +283 -0
- package/dist/keyboard/caretMirror.d.ts +13 -0
- package/dist/keyboard/caretMirror.js +122 -0
- package/dist/keyboard/expectedKeyboard.d.ts +10 -0
- package/dist/keyboard/expectedKeyboard.js +60 -0
- package/dist/keyboard/geometry.d.ts +10 -0
- package/dist/keyboard/geometry.js +21 -0
- package/dist/keyboard/modalTapFocus.d.ts +41 -0
- package/dist/keyboard/modalTapFocus.js +224 -0
- package/dist/keyboard/motion.d.ts +54 -0
- package/dist/keyboard/motion.js +80 -0
- package/dist/keyboard/translation.d.ts +12 -0
- package/dist/keyboard/translation.js +19 -0
- package/dist/layout/adaptiveTabsContext.d.ts +5 -0
- package/dist/layout/adaptiveTabsContext.js +2 -0
- package/dist/layout/deviceIdiom.d.ts +4 -0
- package/dist/layout/deviceIdiom.js +12 -0
- package/dist/layout/layoutClass.d.ts +44 -0
- package/dist/layout/layoutClass.js +102 -0
- package/dist/layout/navigationLayoutContext.d.ts +8 -0
- package/dist/layout/navigationLayoutContext.js +5 -0
- package/dist/list-form/ListForm.d.ts +158 -0
- package/dist/list-form/ListForm.js +427 -0
- package/dist/list-form/ListItem.d.ts +30 -0
- package/dist/list-form/ListItem.js +251 -0
- package/dist/list-form/RowLabel.d.ts +14 -0
- package/dist/list-form/RowLabel.js +11 -0
- package/dist/list-form/Slider.d.ts +18 -0
- package/dist/list-form/Slider.js +235 -0
- package/dist/list-form/StepperButton.d.ts +9 -0
- package/dist/list-form/StepperButton.js +60 -0
- package/dist/list-form/Toggle.d.ts +16 -0
- package/dist/list-form/Toggle.js +204 -0
- package/dist/list-form/editMotion.d.ts +15 -0
- package/dist/list-form/editMotion.js +25 -0
- package/dist/list-form/editing.d.ts +102 -0
- package/dist/list-form/editing.js +51 -0
- package/dist/list-form/listContext.d.ts +4 -0
- package/dist/list-form/listContext.js +5 -0
- package/dist/list-form/offsets.d.ts +26 -0
- package/dist/list-form/offsets.js +34 -0
- package/dist/list-form/reorder.d.ts +20 -0
- package/dist/list-form/reorder.js +193 -0
- package/dist/list-form/rowMotion.d.ts +11 -0
- package/dist/list-form/rowMotion.js +236 -0
- package/dist/list-form/rowMotionScope.d.ts +14 -0
- package/dist/list-form/rowMotionScope.js +61 -0
- package/dist/list-form/separatorInsets.d.ts +4 -0
- package/dist/list-form/separatorInsets.js +87 -0
- package/dist/list-form/sliderContact.d.ts +40 -0
- package/dist/list-form/sliderContact.js +98 -0
- package/dist/list-form/state.d.ts +5 -0
- package/dist/list-form/state.js +8 -0
- package/dist/list-form/toggleContact.d.ts +55 -0
- package/dist/list-form/toggleContact.js +164 -0
- package/dist/media/controller.d.ts +7 -0
- package/dist/media/controller.js +612 -0
- package/dist/media/react.d.ts +9 -0
- package/dist/media/react.js +38 -0
- package/dist/media/systemMedia.d.ts +6 -0
- package/dist/media/systemMedia.js +200 -0
- package/dist/media/types.d.ts +83 -0
- package/dist/media/types.js +1 -0
- package/dist/menu/menuContact.d.ts +20 -0
- package/dist/menu/menuContact.js +286 -0
- package/dist/menu/menuGesture.d.ts +84 -0
- package/dist/menu/menuGesture.js +502 -0
- package/dist/menu/menuInteraction.d.ts +17 -0
- package/dist/menu/menuInteraction.js +34 -0
- package/dist/menu/menuOutside.d.ts +9 -0
- package/dist/menu/menuOutside.js +58 -0
- package/dist/menu/menuPanelContact.d.ts +11 -0
- package/dist/menu/menuPanelContact.js +77 -0
- package/dist/menu/menuTriggerHold.d.ts +3 -0
- package/dist/menu/menuTriggerHold.js +52 -0
- package/dist/menu/sampledMotion.d.ts +37 -0
- package/dist/menu/sampledMotion.js +86 -0
- package/dist/modal/lifecycle.d.ts +10 -0
- package/dist/modal/lifecycle.js +189 -0
- package/dist/motion/TransitionView.d.ts +12 -0
- package/dist/motion/TransitionView.js +118 -0
- package/dist/motion/animate.d.ts +20 -0
- package/dist/motion/animate.js +79 -0
- package/dist/motion/animationValue.d.ts +25 -0
- package/dist/motion/animationValue.js +42 -0
- package/dist/motion/composerMotion.d.ts +3 -0
- package/dist/motion/composerMotion.js +15 -0
- package/dist/motion/layoutTransaction.d.ts +7 -0
- package/dist/motion/layoutTransaction.js +28 -0
- package/dist/motion/matchedGeometry.d.ts +55 -0
- package/dist/motion/matchedGeometry.js +412 -0
- package/dist/motion/springPath.d.ts +27 -0
- package/dist/motion/springPath.js +46 -0
- package/dist/motion/springTrack.d.ts +33 -0
- package/dist/motion/springTrack.js +69 -0
- package/dist/motion/transition.d.ts +48 -0
- package/dist/motion/transition.js +56 -0
- package/dist/motion/transitionImages.d.ts +7 -0
- package/dist/motion/transitionImages.js +49 -0
- package/dist/motionProbe.d.ts +227 -0
- package/dist/motionProbe.js +697 -0
- package/dist/motionProbeControls.d.ts +2 -0
- package/dist/motionProbeControls.js +118 -0
- package/dist/motionProbeDelivery.d.ts +15 -0
- package/dist/motionProbeDelivery.js +84 -0
- package/dist/navigation/DetailList.d.ts +9 -0
- package/dist/navigation/DetailList.js +7 -0
- package/dist/navigation/NavigationChrome.d.ts +18 -0
- package/dist/navigation/NavigationChrome.js +195 -0
- package/dist/navigation/NavigationSearchRow.d.ts +9 -0
- package/dist/navigation/NavigationSearchRow.js +101 -0
- package/dist/navigation/NavigationTitleSlots.d.ts +18 -0
- package/dist/navigation/NavigationTitleSlots.js +64 -0
- package/dist/navigation/NavigatorHost.d.ts +17 -0
- package/dist/navigation/NavigatorHost.js +534 -0
- package/dist/navigation/ScreenContainer.d.ts +31 -0
- package/dist/navigation/ScreenContainer.js +219 -0
- package/dist/navigation/ScrubSourceFrames.d.ts +18 -0
- package/dist/navigation/ScrubSourceFrames.js +67 -0
- package/dist/navigation/Sidebar.d.ts +16 -0
- package/dist/navigation/Sidebar.js +20 -0
- package/dist/navigation/SidebarSymbol.d.ts +4 -0
- package/dist/navigation/SidebarSymbol.js +6 -0
- package/dist/navigation/ToolbarGlass.d.ts +2 -0
- package/dist/navigation/ToolbarGlass.js +429 -0
- package/dist/navigation/TransitionEdge.d.ts +4 -0
- package/dist/navigation/TransitionEdge.js +33 -0
- package/dist/navigation/bottomToolbarGeometry.d.ts +6 -0
- package/dist/navigation/bottomToolbarGeometry.js +14 -0
- package/dist/navigation/chromeCurves.d.ts +48 -0
- package/dist/navigation/chromeCurves.js +255 -0
- package/dist/navigation/glassTransition.d.ts +32 -0
- package/dist/navigation/glassTransition.js +55 -0
- package/dist/navigation/horizontalDrag.d.ts +6 -0
- package/dist/navigation/horizontalDrag.js +15 -0
- package/dist/navigation/interactivePop.d.ts +45 -0
- package/dist/navigation/interactivePop.js +86 -0
- package/dist/navigation/interactivePopTypes.d.ts +85 -0
- package/dist/navigation/interactivePopTypes.js +36 -0
- package/dist/navigation/keyboard.d.ts +9 -0
- package/dist/navigation/keyboard.js +55 -0
- package/dist/navigation/motion.d.ts +19 -0
- package/dist/navigation/motion.js +645 -0
- package/dist/navigation/motionTokens.d.ts +43 -0
- package/dist/navigation/motionTokens.js +75 -0
- package/dist/navigation/nativeScrubExperiment.d.ts +5 -0
- package/dist/navigation/nativeScrubExperiment.js +153 -0
- package/dist/navigation/nativeScrubSource.d.ts +15 -0
- package/dist/navigation/nativeScrubSource.js +88 -0
- package/dist/navigation/navigationChromeModel.d.ts +8 -0
- package/dist/navigation/navigationChromeModel.js +30 -0
- package/dist/navigation/navigationContext.d.ts +22 -0
- package/dist/navigation/navigationContext.js +65 -0
- package/dist/navigation/navigationEdge.d.ts +4 -0
- package/dist/navigation/navigationEdge.js +101 -0
- package/dist/navigation/pointerPop.d.ts +32 -0
- package/dist/navigation/pointerPop.js +206 -0
- package/dist/navigation/probeLayers.d.ts +7 -0
- package/dist/navigation/probeLayers.js +8 -0
- package/dist/navigation/registry.d.ts +14 -0
- package/dist/navigation/registry.js +31 -0
- package/dist/navigation/releaseDecision.d.ts +21 -0
- package/dist/navigation/releaseDecision.js +94 -0
- package/dist/navigation/releaseTrajectory.d.ts +20 -0
- package/dist/navigation/releaseTrajectory.js +95 -0
- package/dist/navigation/releaseVelocity.d.ts +9 -0
- package/dist/navigation/releaseVelocity.js +38 -0
- package/dist/navigation/routeCodec.d.ts +33 -0
- package/dist/navigation/routeCodec.js +123 -0
- package/dist/navigation/scrollEdge.d.ts +18 -0
- package/dist/navigation/scrollEdge.js +66 -0
- package/dist/navigation/scrubFrameLoop.d.ts +44 -0
- package/dist/navigation/scrubFrameLoop.js +129 -0
- package/dist/navigation/sidebarSelection.d.ts +5 -0
- package/dist/navigation/sidebarSelection.js +8 -0
- package/dist/navigation/splitContext.d.ts +17 -0
- package/dist/navigation/splitContext.js +9 -0
- package/dist/navigation/splitState.d.ts +46 -0
- package/dist/navigation/splitState.js +130 -0
- package/dist/navigation/stack.d.ts +25 -0
- package/dist/navigation/stack.js +136 -0
- package/dist/navigation/store.d.ts +80 -0
- package/dist/navigation/store.js +464 -0
- package/dist/navigation/toolbarGlassMotion.d.ts +40 -0
- package/dist/navigation/toolbarGlassMotion.js +202 -0
- package/dist/navigation/toolbarMinimization.d.ts +9 -0
- package/dist/navigation/toolbarMinimization.js +76 -0
- package/dist/navigation/toolbarMotionOwner.d.ts +6 -0
- package/dist/navigation/toolbarMotionOwner.js +30 -0
- package/dist/navigation/touchArbitration.d.ts +34 -0
- package/dist/navigation/touchArbitration.js +550 -0
- package/dist/navigation/tracking.d.ts +7 -0
- package/dist/navigation/tracking.js +19 -0
- package/dist/navigation/transitionBindings.d.ts +31 -0
- package/dist/navigation/transitionBindings.js +106 -0
- package/dist/navigation/transitionChrome.d.ts +31 -0
- package/dist/navigation/transitionChrome.js +380 -0
- package/dist/navigation/transitionPose.d.ts +52 -0
- package/dist/navigation/transitionPose.js +295 -0
- package/dist/navigation/types.d.ts +133 -0
- package/dist/navigation/types.js +1 -0
- package/dist/navigation/zoomDrag.d.ts +3 -0
- package/dist/navigation/zoomDrag.js +125 -0
- package/dist/navigation/zoomGeometry.d.ts +48 -0
- package/dist/navigation/zoomGeometry.js +94 -0
- package/dist/navigation/zoomGlass.d.ts +27 -0
- package/dist/navigation/zoomGlass.js +64 -0
- package/dist/navigation/zoomMotion.d.ts +73 -0
- package/dist/navigation/zoomMotion.js +104 -0
- package/dist/navigation/zoomTransition.d.ts +82 -0
- package/dist/navigation/zoomTransition.js +975 -0
- package/dist/presentation/Presentation.d.ts +61 -0
- package/dist/presentation/Presentation.js +92 -0
- package/dist/presentation/PresentationSurface.d.ts +29 -0
- package/dist/presentation/PresentationSurface.js +586 -0
- package/dist/presentation/PresentedSheet.d.ts +2 -0
- package/dist/presentation/PresentedSheet.js +571 -0
- package/dist/presentation/activity.d.ts +3 -0
- package/dist/presentation/activity.js +24 -0
- package/dist/presentation/coldLaunch.d.ts +2 -0
- package/dist/presentation/coldLaunch.js +19 -0
- package/dist/presentation/dismiss.d.ts +26 -0
- package/dist/presentation/dismiss.js +30 -0
- package/dist/presentation/glassMotion.d.ts +39 -0
- package/dist/presentation/glassMotion.js +259 -0
- package/dist/presentation/glassReady.d.ts +11 -0
- package/dist/presentation/glassReady.js +246 -0
- package/dist/presentation/model.d.ts +108 -0
- package/dist/presentation/model.js +183 -0
- package/dist/presentation/motion.d.ts +56 -0
- package/dist/presentation/motion.js +263 -0
- package/dist/presentation/presentationMotion.d.ts +10 -0
- package/dist/presentation/presentationMotion.js +74 -0
- package/dist/presentation/presentationSource.d.ts +2 -0
- package/dist/presentation/presentationSource.js +28 -0
- package/dist/presentation/sheetChromeContext.d.ts +2 -0
- package/dist/presentation/sheetChromeContext.js +3 -0
- package/dist/presentation/sheetMaterialTransition.d.ts +14 -0
- package/dist/presentation/sheetMaterialTransition.js +33 -0
- package/dist/presentation/sheetReleaseMotion.d.ts +18 -0
- package/dist/presentation/sheetReleaseMotion.js +123 -0
- package/dist/presentation/useAlertKeyboardMotion.d.ts +8 -0
- package/dist/presentation/useAlertKeyboardMotion.js +104 -0
- package/dist/press/Pressable.d.ts +19 -0
- package/dist/press/Pressable.js +16 -0
- package/dist/press/activation.d.ts +20 -0
- package/dist/press/activation.js +28 -0
- package/dist/press/contactReceipt.d.ts +23 -0
- package/dist/press/contactReceipt.js +177 -0
- package/dist/press/gestureArbitration.d.ts +13 -0
- package/dist/press/gestureArbitration.js +38 -0
- package/dist/press/stateMachine.d.ts +29 -0
- package/dist/press/stateMachine.js +39 -0
- package/dist/press/tokens.d.ts +18 -0
- package/dist/press/tokens.js +19 -0
- package/dist/press/usePressInteraction.d.ts +30 -0
- package/dist/press/usePressInteraction.js +247 -0
- package/dist/public/Label.d.ts +16 -0
- package/dist/public/Label.js +40 -0
- package/dist/public/NativeFilePicker.d.ts +19 -0
- package/dist/public/NativeFilePicker.js +75 -0
- package/dist/public/Screen.d.ts +42 -0
- package/dist/public/Screen.js +87 -0
- package/dist/public/actions.d.ts +16 -0
- package/dist/public/actions.js +15 -0
- package/dist/public/buttonBorderShape.d.ts +7 -0
- package/dist/public/buttonBorderShape.js +9 -0
- package/dist/public/chrome.d.ts +3 -0
- package/dist/public/chrome.js +5 -0
- package/dist/public/colors.d.ts +29 -0
- package/dist/public/colors.js +28 -0
- package/dist/public/context.d.ts +19 -0
- package/dist/public/context.js +8 -0
- package/dist/public/controlStyle.d.ts +93 -0
- package/dist/public/controlStyle.js +52 -0
- package/dist/public/controls.d.ts +360 -0
- package/dist/public/controls.js +301 -0
- package/dist/public/definition.d.ts +65 -0
- package/dist/public/definition.js +58 -0
- package/dist/public/deviceActions.d.ts +23 -0
- package/dist/public/deviceActions.js +87 -0
- package/dist/public/environment.d.ts +77 -0
- package/dist/public/environment.js +171 -0
- package/dist/public/fieldContext.d.ts +2 -0
- package/dist/public/fieldContext.js +3 -0
- package/dist/public/filePickers.d.ts +25 -0
- package/dist/public/filePickers.js +11 -0
- package/dist/public/glass.d.ts +31 -0
- package/dist/public/glass.js +29 -0
- package/dist/public/glassValue.d.ts +19 -0
- package/dist/public/glassValue.js +32 -0
- package/dist/public/keyboard.d.ts +4 -0
- package/dist/public/keyboard.js +6 -0
- package/dist/public/navigationTransition.d.ts +48 -0
- package/dist/public/navigationTransition.js +49 -0
- package/dist/public/pickerNavigation.d.ts +7 -0
- package/dist/public/pickerNavigation.js +64 -0
- package/dist/public/presentation.d.ts +40 -0
- package/dist/public/presentation.js +21 -0
- package/dist/public/presentationContext.d.ts +2 -0
- package/dist/public/presentationContext.js +3 -0
- package/dist/public/routeRegistry.d.ts +3 -0
- package/dist/public/routeRegistry.js +10 -0
- package/dist/public/routes.d.ts +74 -0
- package/dist/public/routes.js +105 -0
- package/dist/public/runtime.d.ts +134 -0
- package/dist/public/runtime.js +292 -0
- package/dist/public/screenChrome.d.ts +91 -0
- package/dist/public/screenChrome.js +187 -0
- package/dist/public/scroll.d.ts +38 -0
- package/dist/public/scroll.js +7 -0
- package/dist/public/storage.d.ts +9 -0
- package/dist/public/storage.js +9 -0
- package/dist/public/structure.d.ts +65 -0
- package/dist/public/structure.js +40 -0
- package/dist/public/toolbar.d.ts +37 -0
- package/dist/public/toolbar.js +76 -0
- package/dist/push/PushPermissionExplainer.d.ts +14 -0
- package/dist/push/PushPermissionExplainer.js +30 -0
- package/dist/push/notifications.d.ts +54 -0
- package/dist/push/notifications.js +276 -0
- package/dist/push/routes.d.ts +20 -0
- package/dist/push/routes.js +63 -0
- package/dist/push/schema.d.ts +42 -0
- package/dist/push/schema.js +41 -0
- package/dist/push/urlProjection.d.ts +24 -0
- package/dist/push/urlProjection.js +207 -0
- package/dist/reachability/controller.d.ts +21 -0
- package/dist/reachability/controller.js +202 -0
- package/dist/reachability/model.d.ts +94 -0
- package/dist/reachability/model.js +131 -0
- package/dist/reachability/react.d.ts +29 -0
- package/dist/reachability/react.js +69 -0
- package/dist/restoration/navigation.d.ts +9 -0
- package/dist/restoration/navigation.js +55 -0
- package/dist/restoration/react.d.ts +6 -0
- package/dist/restoration/react.js +21 -0
- package/dist/restoration/routes.d.ts +22 -0
- package/dist/restoration/routes.js +166 -0
- package/dist/restoration/scene.d.ts +44 -0
- package/dist/restoration/scene.js +284 -0
- package/dist/root/SatinRoot.d.ts +25 -0
- package/dist/root/SatinRoot.js +512 -0
- package/dist/root/mountSatin.d.ts +12 -0
- package/dist/root/mountSatin.js +60 -0
- package/dist/root/runtimeContext.d.ts +26 -0
- package/dist/root/runtimeContext.js +30 -0
- package/dist/safe-area/Overlay.d.ts +9 -0
- package/dist/safe-area/Overlay.js +26 -0
- package/dist/safe-area/SafeAreaInset.d.ts +25 -0
- package/dist/safe-area/SafeAreaInset.js +138 -0
- package/dist/safe-area/bottomInsetGeometry.d.ts +12 -0
- package/dist/safe-area/bottomInsetGeometry.js +73 -0
- package/dist/safe-area/context.d.ts +15 -0
- package/dist/safe-area/context.js +8 -0
- package/dist/safe-area/displayCorners.d.ts +21 -0
- package/dist/safe-area/displayCorners.js +70 -0
- package/dist/safe-area/keyboardCarrier.d.ts +26 -0
- package/dist/safe-area/keyboardCarrier.js +394 -0
- package/dist/safe-area/keyboardCarrierGeometry.d.ts +37 -0
- package/dist/safe-area/keyboardCarrierGeometry.js +49 -0
- package/dist/safe-area/modifiers.d.ts +52 -0
- package/dist/safe-area/modifiers.js +86 -0
- package/dist/safe-area/useSafeAreaMetrics.d.ts +83 -0
- package/dist/safe-area/useSafeAreaMetrics.js +367 -0
- package/dist/safe-area/windowChrome.d.ts +7 -0
- package/dist/safe-area/windowChrome.js +14 -0
- package/dist/scroll/RefreshControl.d.ts +8 -0
- package/dist/scroll/RefreshControl.js +135 -0
- package/dist/scroll/ScrollSurface.d.ts +62 -0
- package/dist/scroll/ScrollSurface.js +278 -0
- package/dist/scroll/ScrollTarget.d.ts +6 -0
- package/dist/scroll/ScrollTarget.js +11 -0
- package/dist/scroll/edgePolicy.d.ts +21 -0
- package/dist/scroll/edgePolicy.js +17 -0
- package/dist/scroll/insertionMotion.d.ts +15 -0
- package/dist/scroll/insertionMotion.js +128 -0
- package/dist/scroll/nativeScroll.d.ts +14 -0
- package/dist/scroll/nativeScroll.js +71 -0
- package/dist/scroll/position.d.ts +31 -0
- package/dist/scroll/position.js +273 -0
- package/dist/scroll/pressOwnership.d.ts +4 -0
- package/dist/scroll/pressOwnership.js +65 -0
- package/dist/scroll/refreshMotion.d.ts +9 -0
- package/dist/scroll/refreshMotion.js +15 -0
- package/dist/scroll/refreshable.d.ts +6 -0
- package/dist/scroll/refreshable.js +50 -0
- package/dist/scroll/registry.d.ts +38 -0
- package/dist/scroll/registry.js +261 -0
- package/dist/scroll/screenGeometry.d.ts +8 -0
- package/dist/scroll/screenGeometry.js +50 -0
- package/dist/scroll/scrollIndicator.d.ts +7 -0
- package/dist/scroll/scrollIndicator.js +114 -0
- package/dist/scroll/scrollJump.d.ts +7 -0
- package/dist/scroll/scrollJump.js +16 -0
- package/dist/scroll/types.d.ts +12 -0
- package/dist/scroll/types.js +1 -0
- package/dist/search/SearchDrawer.d.ts +16 -0
- package/dist/search/SearchDrawer.js +421 -0
- package/dist/search/SearchScopesBar.d.ts +6 -0
- package/dist/search/SearchScopesBar.js +12 -0
- package/dist/search/SearchToolbarField.d.ts +8 -0
- package/dist/search/SearchToolbarField.js +115 -0
- package/dist/search/searchBackdrop.d.ts +12 -0
- package/dist/search/searchBackdrop.js +45 -0
- package/dist/search/searchChrome.d.ts +13 -0
- package/dist/search/searchChrome.js +31 -0
- package/dist/search/searchMotion.d.ts +30 -0
- package/dist/search/searchMotion.js +46 -0
- package/dist/search/searchPlacement.d.ts +11 -0
- package/dist/search/searchPlacement.js +15 -0
- package/dist/search/searchable.d.ts +46 -0
- package/dist/search/searchable.js +5 -0
- package/dist/search/useSearchPresentation.d.ts +15 -0
- package/dist/search/useSearchPresentation.js +61 -0
- package/dist/server.d.ts +7 -0
- package/dist/server.js +144 -0
- package/dist/settings/DisclosureIndicator.d.ts +4 -0
- package/dist/settings/DisclosureIndicator.js +6 -0
- package/dist/settings/tokens.d.ts +129 -0
- package/dist/settings/tokens.js +143 -0
- package/dist/shapes/corners.d.ts +14 -0
- package/dist/shapes/corners.js +80 -0
- package/dist/styles.css +9078 -0
- package/dist/styles.css.d.ts +3 -0
- package/dist/sw/activationState.d.ts +20 -0
- package/dist/sw/activationState.js +39 -0
- package/dist/sw/generator.d.ts +14 -0
- package/dist/sw/generator.js +26 -0
- package/dist/sw/manifest.d.ts +32 -0
- package/dist/sw/manifest.js +137 -0
- package/dist/sw/protocol.d.ts +7 -0
- package/dist/sw/protocol.js +7 -0
- package/dist/sw/pushRuntime.d.ts +2 -0
- package/dist/sw/pushRuntime.js +161 -0
- package/dist/sw/registerAppShell.d.ts +25 -0
- package/dist/sw/registerAppShell.js +259 -0
- package/dist/sw/renderServiceWorker.d.ts +10 -0
- package/dist/sw/renderServiceWorker.js +370 -0
- package/dist/sw/requestRouting.d.ts +13 -0
- package/dist/sw/requestRouting.js +26 -0
- package/dist/sw/updateCheck.d.ts +2 -0
- package/dist/sw/updateCheck.js +25 -0
- package/dist/sw/vite.d.ts +20 -0
- package/dist/sw/vite.js +71 -0
- package/dist/symbols/Symbol.d.ts +33 -0
- package/dist/symbols/Symbol.js +59 -0
- package/dist/symbols/catalogue.d.ts +4 -0
- package/dist/symbols/catalogue.js +4139 -0
- package/dist/symbols/exclusions.d.ts +2 -0
- package/dist/symbols/exclusions.js +4 -0
- package/dist/symbols/inheritedWeight.d.ts +3 -0
- package/dist/symbols/inheritedWeight.js +104 -0
- package/dist/symbols/metrics.d.ts +38 -0
- package/dist/symbols/metrics.js +53 -0
- package/dist/symbols/svg.d.ts +3 -0
- package/dist/symbols/svg.js +16 -0
- package/dist/symbols/types.d.ts +30 -0
- package/dist/symbols/types.js +1 -0
- package/dist/tabs/TabSection.d.ts +12 -0
- package/dist/tabs/TabSection.js +4 -0
- package/dist/tabs/TabSidebarSurface.d.ts +7 -0
- package/dist/tabs/TabSidebarSurface.js +29 -0
- package/dist/tabs/TabView.d.ts +28 -0
- package/dist/tabs/TabView.js +258 -0
- package/dist/tabs/accessoryContact.d.ts +2 -0
- package/dist/tabs/accessoryContact.js +42 -0
- package/dist/tabs/compactBar.d.ts +4 -0
- package/dist/tabs/compactBar.js +28 -0
- package/dist/tabs/context.d.ts +8 -0
- package/dist/tabs/context.js +6 -0
- package/dist/tabs/keyboard.d.ts +3 -0
- package/dist/tabs/keyboard.js +23 -0
- package/dist/tabs/model.d.ts +6 -0
- package/dist/tabs/model.js +16 -0
- package/dist/tabs/presentation.d.ts +7 -0
- package/dist/tabs/presentation.js +14 -0
- package/dist/tabs/sourceRevision.d.ts +3 -0
- package/dist/tabs/sourceRevision.js +36 -0
- package/dist/tabs/tabSidebarGlyph.d.ts +2 -0
- package/dist/tabs/tabSidebarGlyph.js +11 -0
- package/dist/tasks/useTask.d.ts +16 -0
- package/dist/tasks/useTask.js +67 -0
- package/dist/testing.d.ts +9 -0
- package/dist/testing.js +11 -0
- package/dist/text-input/TextEditor.d.ts +25 -0
- package/dist/text-input/TextEditor.js +74 -0
- package/dist/text-input/TextField.d.ts +32 -0
- package/dist/text-input/TextField.js +29 -0
- package/dist/text-input/editorGeometry.d.ts +2 -0
- package/dist/text-input/editorGeometry.js +6 -0
- package/dist/text-input/editorTextLayout.d.ts +2 -0
- package/dist/text-input/editorTextLayout.js +31 -0
- package/dist/text-input/focusChain.d.ts +27 -0
- package/dist/text-input/focusChain.js +62 -0
- package/dist/text-input/kinds.d.ts +8 -0
- package/dist/text-input/kinds.js +34 -0
- package/dist/text-input/measureEditor.d.ts +2 -0
- package/dist/text-input/measureEditor.js +50 -0
- package/dist/text-input/submit.d.ts +9 -0
- package/dist/text-input/submit.js +7 -0
- package/dist/unstable.d.ts +16 -0
- package/dist/unstable.js +16 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +3 -0
- package/dist/web/WebView.d.ts +42 -0
- package/dist/web/WebView.js +115 -0
- package/dist/web/authentication.d.ts +75 -0
- package/dist/web/authentication.js +488 -0
- package/dist/web/openURL.d.ts +37 -0
- package/dist/web/openURL.js +89 -0
- package/dist/web/urlPolicy.d.ts +3 -0
- package/dist/web/urlPolicy.js +19 -0
- package/dist/web/useWebAuthentication.d.ts +3 -0
- package/dist/web/useWebAuthentication.js +6 -0
- package/dist/zoom/Zoomable.d.ts +10 -0
- package/dist/zoom/Zoomable.js +116 -0
- package/dist/zoom/geometry.d.ts +11 -0
- package/dist/zoom/geometry.js +16 -0
- package/package.json +115 -3
|
@@ -0,0 +1,1038 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { strictGlassRequested } from './failurePolicy.js';
|
|
3
|
+
import { TopTabLabel } from '../tabs/presentation.js';
|
|
4
|
+
import { readDeviceIdiom } from '../layout/deviceIdiom.js';
|
|
5
|
+
import { ownPhysicalContact, retirePhysicalContact } from '../press/contactReceipt.js';
|
|
6
|
+
import { SymbolImage, SymbolSelectionContext } from '../symbols/Symbol.js';
|
|
7
|
+
import { focusFromFramework } from '../focus/programmaticFocus.js';
|
|
8
|
+
import { sidebarCssTokens } from '../settings/tokens.js';
|
|
9
|
+
import { intrinsicTabGeometry } from './tabBarModel.js';
|
|
10
|
+
import { recordMotionEventCost } from '../motionProbe.js';
|
|
11
|
+
import { glassFailureCode } from './webgpu/errorCode.js';
|
|
12
|
+
import { reportGlassError } from './errors.js';
|
|
13
|
+
import { ProductionGlassRuntime } from './webgpu/production.js';
|
|
14
|
+
import { fallbackGlassRequested } from './fallback/selection.js';
|
|
15
|
+
import { isBitmapBackdrop, prepareGlassBitmapBackdrop } from './lens/bitmapBackdrop.js';
|
|
16
|
+
import { readDarkAppearance, subscribeAppearance } from '../app/appearance.js';
|
|
17
|
+
import { useSafeAreaMetrics } from '../safe-area/useSafeAreaMetrics.js';
|
|
18
|
+
import { flushSync } from 'react-dom';
|
|
19
|
+
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, } from 'react';
|
|
20
|
+
import { GLASS_CIRCLE_INLINE_INSET_PX, GLASS_CIRCLE_SIZE_PX, GLASS_CIRCLE_TOP_PX, GLASS_DOCK_BOTTOM_GAP_PX, GLASS_DOCK_HEIGHT_PX, GLASS_DOCK_RADIUS_PX, ReferenceBackgroundScene, glassDockWidth, isCalibratedMaxLayout, SettingsDomScene, } from './lens/Scene.js';
|
|
21
|
+
import { runScriptedDrag, runScriptedScroll, scriptedDragFrames, } from './lens/motion.js';
|
|
22
|
+
import { trace } from './lens/trace.js';
|
|
23
|
+
import { LIQUID_ENVELOPES, LIQUID_PILL_BAR } from './lens/liquidMotion.js';
|
|
24
|
+
import { tabGlyphStyle } from './lens/tabSelectionMaterial.js';
|
|
25
|
+
import { formatMetric, isLensMode, LIQUID_PLAYBACK_SPEED, measurementClientId, persistFlag, persistLens, requestedAppearance, requestedLiquidMotion, storedFlag, storedLens, storedPage, useAppearance, } from './glassProbeSettings.js';
|
|
26
|
+
import { RimProofMarkers, TabIcon } from './GlassProbeIcons.js';
|
|
27
|
+
import { renderProbeOverlay } from './GlassProbeOverlay.js';
|
|
28
|
+
import { tabPresentation, tabProbeOverride } from './lens/tabPresentation.js';
|
|
29
|
+
function debugWindow() {
|
|
30
|
+
return window;
|
|
31
|
+
}
|
|
32
|
+
function createPresentationRuntime(options, backend) {
|
|
33
|
+
if (strictGlassRequested() ||
|
|
34
|
+
backend === 'webgpu' ||
|
|
35
|
+
(backend === undefined && !fallbackGlassRequested()))
|
|
36
|
+
return ProductionGlassRuntime.create(options);
|
|
37
|
+
// Keep fallback's outline sampler out of the default app's eager module graph.
|
|
38
|
+
return import('./fallback/runtime.js').then(({ FallbackGlassRuntime }) => FallbackGlassRuntime.create(options));
|
|
39
|
+
}
|
|
40
|
+
/** Shared semantic DOM and runtime ownership. Probe controls are testing-only. */
|
|
41
|
+
export function GlassPresentation({ consumer }) {
|
|
42
|
+
const probe = !consumer;
|
|
43
|
+
const consumerRef = useRef(consumer);
|
|
44
|
+
consumerRef.current = consumer;
|
|
45
|
+
const safeArea = useSafeAreaMetrics();
|
|
46
|
+
const insetHost = consumer?.tabs?.insetHost;
|
|
47
|
+
const [insetFrame, setInsetFrame] = useState();
|
|
48
|
+
useLayoutEffect(() => {
|
|
49
|
+
if (!insetHost) {
|
|
50
|
+
setInsetFrame(undefined);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const measure = () => {
|
|
54
|
+
const rect = insetHost.getBoundingClientRect();
|
|
55
|
+
const root = insetHost.closest('[data-satin-root]')?.getBoundingClientRect();
|
|
56
|
+
const next = {
|
|
57
|
+
x: rect.x - (root?.x ?? 0),
|
|
58
|
+
y: rect.y - (root?.y ?? 0),
|
|
59
|
+
width: rect.width,
|
|
60
|
+
height: rect.height,
|
|
61
|
+
};
|
|
62
|
+
setInsetFrame(previous => previous &&
|
|
63
|
+
Object.keys(next).every(key => previous[key] === next[key])
|
|
64
|
+
? previous
|
|
65
|
+
: next);
|
|
66
|
+
};
|
|
67
|
+
measure();
|
|
68
|
+
// Padding animates on the bottom boundary. Its content box shrinks even when the slot and
|
|
69
|
+
// accessory keep the same size. Commit the foreground geometry in that measuring frame.
|
|
70
|
+
const observer = new ResizeObserver(() => flushSync(measure));
|
|
71
|
+
observer.observe(insetHost);
|
|
72
|
+
if (insetHost.parentElement)
|
|
73
|
+
observer.observe(insetHost.parentElement);
|
|
74
|
+
const boundary = insetHost.closest('[data-satin-bottom-boundary="root"]');
|
|
75
|
+
if (boundary)
|
|
76
|
+
observer.observe(boundary);
|
|
77
|
+
return () => observer.disconnect();
|
|
78
|
+
}, [insetHost, safeArea.layoutViewport.width, safeArea.layoutViewport.height]);
|
|
79
|
+
const safeAreaRef = useRef(safeArea);
|
|
80
|
+
safeAreaRef.current = safeArea;
|
|
81
|
+
const systemAppearance = useAppearance();
|
|
82
|
+
const [measurementAppearance, setMeasurementAppearance] = useState();
|
|
83
|
+
const measurementAppearanceRef = useRef(measurementAppearance);
|
|
84
|
+
measurementAppearanceRef.current = measurementAppearance;
|
|
85
|
+
const appearance = measurementAppearance ?? systemAppearance;
|
|
86
|
+
const appearanceRef = useRef(appearance);
|
|
87
|
+
appearanceRef.current = appearance;
|
|
88
|
+
const liquidMotion = probe ? requestedLiquidMotion() : 'none';
|
|
89
|
+
const [screen, setScreen] = useState(() => probe && storedFlag('screen', 'root') === 'general' ? 'general' : 'root');
|
|
90
|
+
const [contentPage, setContentPage] = useState(() => probe ? (liquidMotion === 'none' ? storedPage() : 'shapes') : 'settings');
|
|
91
|
+
const [backgroundOffset, setBackgroundOffset] = useState(() => probe ? Number.parseFloat(storedFlag('offset', '0')) || 0 : 0);
|
|
92
|
+
const [query, setQuery] = useState('');
|
|
93
|
+
const [bridgeEnabled, setBridgeEnabled] = useState(() => !probe || storedFlag('bridge', '1') !== '0');
|
|
94
|
+
const [glassEnabled, setGlassEnabled] = useState(() => !probe || storedFlag('glass', '1') !== '0');
|
|
95
|
+
const [lensMode, setLensMode] = useState(() => probe ? storedLens() : 'reference-regular');
|
|
96
|
+
const [markers, setMarkers] = useState(() => probe && storedFlag('markers', '0') === '1');
|
|
97
|
+
const [velocityFadeEnabled, setVelocityFadeEnabled] = useState(() => storedFlag('velocity-fade', '1') !== '0');
|
|
98
|
+
const [rimEnabled, setRimEnabled] = useState(() => !probe || storedFlag('rim', '1') !== '0');
|
|
99
|
+
const [telemetryEnabled, setTelemetryEnabled] = useState(() => storedFlag('telemetry', '1') !== '0');
|
|
100
|
+
const [controlsOpen, setControlsOpen] = useState(false);
|
|
101
|
+
const [captureClean, setCaptureClean] = useState(false);
|
|
102
|
+
const [probeSelectedTab, setSelectedTab] = useState(0);
|
|
103
|
+
const selectedTab = consumer?.tabs
|
|
104
|
+
? Math.max(0, consumer.tabs.items.findIndex(item => item.id === consumer.tabs.selected))
|
|
105
|
+
: probeSelectedTab;
|
|
106
|
+
const tabPointer = useRef(undefined);
|
|
107
|
+
const tabContactOwner = useRef({});
|
|
108
|
+
const tabContactPointer = useRef(undefined);
|
|
109
|
+
const [tabBarProbe, setTabBarProbe] = useState(() => tabProbeOverride(window.location.search));
|
|
110
|
+
const [runtimeError, setRuntimeError] = useState();
|
|
111
|
+
const [runtimeReady, setRuntimeReady] = useState(false);
|
|
112
|
+
const telemetryRef = useRef(telemetryEnabled);
|
|
113
|
+
telemetryRef.current = telemetryEnabled;
|
|
114
|
+
const contentPageRef = useRef(contentPage);
|
|
115
|
+
contentPageRef.current = contentPage;
|
|
116
|
+
const rimRef = useRef(rimEnabled);
|
|
117
|
+
rimRef.current = rimEnabled;
|
|
118
|
+
const measurementClientRef = useRef(undefined);
|
|
119
|
+
if (!measurementClientRef.current)
|
|
120
|
+
measurementClientRef.current = measurementClientId();
|
|
121
|
+
const screenRef = useRef(screen);
|
|
122
|
+
screenRef.current = screen;
|
|
123
|
+
const geometryRef = useRef(undefined);
|
|
124
|
+
const flagsRef = useRef('');
|
|
125
|
+
const runtimeRef = useRef(undefined);
|
|
126
|
+
// The runtime reports its first present (runtimeReady) from inside create(), before the ref is
|
|
127
|
+
// assigned. Effects that hand it state gate on this value, so they run again once it exists
|
|
128
|
+
// Registrations can change after the runtime is created.
|
|
129
|
+
const [boundRuntime, setBoundRuntime] = useState();
|
|
130
|
+
const snapshotRef = useRef(undefined);
|
|
131
|
+
const telemetryAtRef = useRef(0);
|
|
132
|
+
const motionAbortRef = useRef(undefined);
|
|
133
|
+
const motionRunRef = useRef(undefined);
|
|
134
|
+
const scrollerRef = useRef(null);
|
|
135
|
+
const contentHostRef = useRef(null);
|
|
136
|
+
const syncMarkersRef = useRef(null);
|
|
137
|
+
const bandFrameRef = useRef(null);
|
|
138
|
+
const bandClipRef = useRef(null);
|
|
139
|
+
const bandBaseRef = useRef(null);
|
|
140
|
+
const bandTrackRef = useRef(null);
|
|
141
|
+
const directCanvasRef = useRef(null);
|
|
142
|
+
const rimClipRef = useRef(null);
|
|
143
|
+
const rimCanvasRef = useRef(null);
|
|
144
|
+
const dockFrameRef = useRef(null);
|
|
145
|
+
const leftFrameRef = useRef(null);
|
|
146
|
+
const rightFrameRef = useRef(null);
|
|
147
|
+
const bridgeOutputRef = useRef(null);
|
|
148
|
+
const pacingOutputRef = useRef(null);
|
|
149
|
+
const gpuOutputRef = useRef(null);
|
|
150
|
+
const passesOutputRef = useRef(null);
|
|
151
|
+
const domOutputRef = useRef(null);
|
|
152
|
+
const syncOutputRef = useRef(null);
|
|
153
|
+
const debugOutputRef = useRef(null);
|
|
154
|
+
const clockOutputRef = useRef(null);
|
|
155
|
+
const startMotion = (mode) => {
|
|
156
|
+
motionAbortRef.current?.abort();
|
|
157
|
+
const controller = new AbortController();
|
|
158
|
+
motionAbortRef.current = controller;
|
|
159
|
+
const run = mode === 'drag-scripted'
|
|
160
|
+
? runScriptedDrag(progress => runtimeRef.current?.setDragProgress(progress), controller.signal)
|
|
161
|
+
: runScriptedScroll(mode, offset => runtimeRef.current?.setScroll(offset), controller.signal);
|
|
162
|
+
void run.then(result => {
|
|
163
|
+
motionRunRef.current = result;
|
|
164
|
+
});
|
|
165
|
+
return run;
|
|
166
|
+
};
|
|
167
|
+
const width = safeArea.layoutViewport.width;
|
|
168
|
+
const height = safeArea.layoutViewport.height;
|
|
169
|
+
const bottomInset = safeArea.insets.bottom;
|
|
170
|
+
// Legacy lens coordinates are physical; subtract only the excluded viewport strip.
|
|
171
|
+
const physicalTopInset = Math.max(0, safeArea.physicalInsets.top - safeArea.insets.top);
|
|
172
|
+
const isDragPage = contentPage === 'drag';
|
|
173
|
+
const dragFrames = scriptedDragFrames(0, physicalTopInset);
|
|
174
|
+
const calibratedMax = isCalibratedMaxLayout(width, safeArea.screen);
|
|
175
|
+
const dockWidth = insetFrame?.width ||
|
|
176
|
+
(isDragPage
|
|
177
|
+
? dragFrames.capsule.width
|
|
178
|
+
: glassDockWidth(width, safeArea.screen, safeArea.insets, height));
|
|
179
|
+
const tabCount = consumer?.tabs?.items.length ?? 4;
|
|
180
|
+
// The regular-width iPad bar: label-sized items in a 44 pt bar at the top of the scene.
|
|
181
|
+
const topFrames = consumer?.tabs?.placement === 'top' && consumer.tabs.itemFrames?.length === tabCount
|
|
182
|
+
? consumer.tabs.itemFrames
|
|
183
|
+
: undefined;
|
|
184
|
+
const tabBarPlacement = consumer?.tabs?.placement;
|
|
185
|
+
const compactTabs = readDeviceIdiom() === 'phone' && width > height;
|
|
186
|
+
const intrinsicTabs = Boolean(consumer?.tabs?.intrinsicWidth) && !compactTabs;
|
|
187
|
+
const intrinsicGeometry = useMemo(() => (intrinsicTabs ? intrinsicTabGeometry(dockWidth, tabCount) : undefined), [intrinsicTabs, dockWidth, tabCount]);
|
|
188
|
+
const compactItemWidth = (dockWidth - 8 - 4 * (tabCount - 1)) / tabCount;
|
|
189
|
+
const hasConsumerTabs = Boolean(consumer?.tabs);
|
|
190
|
+
const tabBarCentres = useMemo(() => topFrames
|
|
191
|
+
? topFrames.map(frame => frame.x + frame.width / 2)
|
|
192
|
+
: intrinsicGeometry
|
|
193
|
+
? intrinsicGeometry.centres
|
|
194
|
+
: calibratedMax || hasConsumerTabs
|
|
195
|
+
? Array.from({ length: tabCount }, (_, index) => compactTabs
|
|
196
|
+
? 4 + compactItemWidth / 2 + (compactItemWidth + 4) * index
|
|
197
|
+
: 10.5 + ((dockWidth - 20) / tabCount) * (index + 0.5))
|
|
198
|
+
: undefined, [
|
|
199
|
+
calibratedMax,
|
|
200
|
+
hasConsumerTabs,
|
|
201
|
+
dockWidth,
|
|
202
|
+
tabCount,
|
|
203
|
+
compactTabs,
|
|
204
|
+
compactItemWidth,
|
|
205
|
+
intrinsicGeometry,
|
|
206
|
+
topFrames,
|
|
207
|
+
]);
|
|
208
|
+
const tabBarPillWidths = useMemo(() => topFrames?.map(frame => frame.width), [topFrames]);
|
|
209
|
+
// Pinned 11f Pro Max geometry; other tab counts still need a native gate.
|
|
210
|
+
const tabBarPillWidth = topFrames
|
|
211
|
+
? topFrames[0].width
|
|
212
|
+
: intrinsicGeometry
|
|
213
|
+
? intrinsicGeometry.selectionWidth
|
|
214
|
+
: compactTabs
|
|
215
|
+
? compactItemWidth
|
|
216
|
+
: calibratedMax
|
|
217
|
+
? (dockWidth - 20) / tabCount + 13
|
|
218
|
+
: undefined;
|
|
219
|
+
const tabBarPillHeight = compactTabs || topFrames ? 36 : calibratedMax ? 54 : undefined;
|
|
220
|
+
const tabBarPillCenterY = compactTabs
|
|
221
|
+
? 22
|
|
222
|
+
: topFrames
|
|
223
|
+
? (insetFrame?.height ?? 44) / 2
|
|
224
|
+
: undefined;
|
|
225
|
+
const fallbackDockHeight = compactTabs ? 44 : GLASS_DOCK_HEIGHT_PX;
|
|
226
|
+
const dockHeight = insetFrame?.height || (isDragPage ? dragFrames.capsule.height : fallbackDockHeight);
|
|
227
|
+
const dockX = insetFrame?.x ?? (isDragPage ? dragFrames.capsule.x : (width - dockWidth) / 2);
|
|
228
|
+
// Native collapses intrinsic platters at the full phone dock's leading edge.
|
|
229
|
+
// The platter's own origin changes with its labels; the compact button's does not.
|
|
230
|
+
const tabBarMinimizedOffsetX = intrinsicTabs
|
|
231
|
+
? (width - glassDockWidth(width, safeArea.screen, safeArea.insets, height)) / 2 + 7 - dockX
|
|
232
|
+
: 7;
|
|
233
|
+
// The measured TabView material occupies the bottom safe-area band; its
|
|
234
|
+
// glyphs remain above the Home indicator inside that material.
|
|
235
|
+
const dockY = insetFrame?.y ??
|
|
236
|
+
(isDragPage ? dragFrames.capsule.y : height - GLASS_DOCK_BOTTOM_GAP_PX - fallbackDockHeight);
|
|
237
|
+
const dockRadius = isDragPage
|
|
238
|
+
? dragFrames.capsule.height / 2
|
|
239
|
+
: topFrames
|
|
240
|
+
? dockHeight / 2
|
|
241
|
+
: compactTabs
|
|
242
|
+
? 22
|
|
243
|
+
: GLASS_DOCK_RADIUS_PX;
|
|
244
|
+
const circleSize = isDragPage ? dragFrames.circle.width : GLASS_CIRCLE_SIZE_PX;
|
|
245
|
+
const leftX = isDragPage ? dragFrames.circle.x : GLASS_CIRCLE_INLINE_INSET_PX;
|
|
246
|
+
const rightX = width - GLASS_CIRCLE_INLINE_INSET_PX - GLASS_CIRCLE_SIZE_PX;
|
|
247
|
+
const effectiveScreen = contentPage === 'settings' ? screen : 'general';
|
|
248
|
+
const circleY = isDragPage
|
|
249
|
+
? dragFrames.circle.y
|
|
250
|
+
: contentPage === 'settings'
|
|
251
|
+
? GLASS_CIRCLE_TOP_PX
|
|
252
|
+
: 58;
|
|
253
|
+
const tabPolicy = tabPresentation(contentPage, liquidMotion, tabBarProbe);
|
|
254
|
+
const tabBarVisible = probe
|
|
255
|
+
? tabPolicy.visible
|
|
256
|
+
: Boolean(consumer?.tabs) && (!insetHost || Boolean(insetFrame?.height));
|
|
257
|
+
const tabPresentationRef = useRef(tabPolicy);
|
|
258
|
+
tabPresentationRef.current = tabPolicy;
|
|
259
|
+
const geometry = {
|
|
260
|
+
bottomInset,
|
|
261
|
+
circleSize,
|
|
262
|
+
circleY,
|
|
263
|
+
dockHeight,
|
|
264
|
+
dockRadius,
|
|
265
|
+
dockWidth,
|
|
266
|
+
dockX,
|
|
267
|
+
dockY,
|
|
268
|
+
height,
|
|
269
|
+
leftX,
|
|
270
|
+
physicalTopInset,
|
|
271
|
+
rightX,
|
|
272
|
+
surfaceMode: isDragPage ? 'drag' : 'chrome',
|
|
273
|
+
tabBarBackground: contentPage,
|
|
274
|
+
tabBarCentres,
|
|
275
|
+
tabBarMinimizedOffsetX,
|
|
276
|
+
tabBarPillWidth,
|
|
277
|
+
tabBarPillWidths,
|
|
278
|
+
tabBarPlacement,
|
|
279
|
+
tabBarPillHeight,
|
|
280
|
+
tabBarPillCenterY,
|
|
281
|
+
tabBarSelectedIndex: tabBarVisible ? selectedTab : undefined,
|
|
282
|
+
width,
|
|
283
|
+
};
|
|
284
|
+
geometryRef.current = geometry;
|
|
285
|
+
useEffect(() => {
|
|
286
|
+
if (!probe)
|
|
287
|
+
return;
|
|
288
|
+
document.documentElement.dataset.appearance = appearance;
|
|
289
|
+
document.documentElement.style.setProperty('--measured-reference-safe-bottom', `${bottomInset}px`);
|
|
290
|
+
document.documentElement.style.setProperty('--measured-reference-layout-height', `${height}px`);
|
|
291
|
+
}, [appearance, bottomInset, height]);
|
|
292
|
+
useEffect(() => {
|
|
293
|
+
if (!probe)
|
|
294
|
+
return;
|
|
295
|
+
const started = performance.now();
|
|
296
|
+
const id = window.setInterval(() => {
|
|
297
|
+
if (clockOutputRef.current)
|
|
298
|
+
clockOutputRef.current.value = `${((performance.now() - started) / 1000).toFixed(1)}s`;
|
|
299
|
+
}, 250);
|
|
300
|
+
return () => window.clearInterval(id);
|
|
301
|
+
}, []);
|
|
302
|
+
// Probe telemetry and measurement commands. The WebGPU runtime never calls onSnapshot, so none
|
|
303
|
+
// of this runs today; it is research code kept for a later removal round.
|
|
304
|
+
const onSnapshot = useCallback((snapshot) => {
|
|
305
|
+
// Keep the full trace in JS. Clipped JSON text still costs WebKit layout
|
|
306
|
+
// during menu geometry updates, even when no glyph is visible.
|
|
307
|
+
snapshotRef.current = snapshot;
|
|
308
|
+
if (!probe)
|
|
309
|
+
return;
|
|
310
|
+
const build = document.querySelector('script[type="module"][src]')?.src.match(/index-([^.]+)/)?.[1] ?? '?';
|
|
311
|
+
const scenario = snapshot.glassEnabled
|
|
312
|
+
? snapshot.bridge.enabled
|
|
313
|
+
? snapshot.scenarios['scroll-bridge-on']
|
|
314
|
+
: snapshot.scenarios['scroll-bridge-off']
|
|
315
|
+
: snapshot.scenarios['scroll-glass-off'];
|
|
316
|
+
if (bridgeOutputRef.current)
|
|
317
|
+
bridgeOutputRef.current.value = `${snapshot.bridge.mode.replaceAll('-', ' ')} · ${snapshot.bridge.animationStates.join('/') || 'off'}`;
|
|
318
|
+
if (pacingOutputRef.current)
|
|
319
|
+
pacingOutputRef.current.value = `${formatMetric(scenario.fps)} fps · ${formatMetric(scenario.glassJsP95Ms)} ms JS`;
|
|
320
|
+
if (gpuOutputRef.current)
|
|
321
|
+
gpuOutputRef.current.value = `U ${formatMetric(scenario.textureUploadsPerGlassFrame, 2)} · D ${formatMetric(scenario.drawCallsPerGlassFrame, 1)}`;
|
|
322
|
+
if (passesOutputRef.current)
|
|
323
|
+
passesOutputRef.current.value = `RT ${formatMetric(scenario.renderTexturePassesPerGlassFrame, 1)} · F ${formatMetric(scenario.finalCompositePassesPerGlassFrame, 1)} · FX ${snapshot.presentation.filterPassesPerVisibleSurface}`;
|
|
324
|
+
if (domOutputRef.current)
|
|
325
|
+
domOutputRef.current.value = `${snapshot.dom.nodeCount} nodes · ${Math.round(snapshot.presentation.mirrorMemoryBytes / 1024 / 1024)} MB`;
|
|
326
|
+
if (syncOutputRef.current)
|
|
327
|
+
syncOutputRef.current.value = `raf Δ ${formatMetric(scenario.maxRafScrollDeltaPx)} px`;
|
|
328
|
+
if (debugOutputRef.current) {
|
|
329
|
+
debugOutputRef.current.value = `build ${build} | ${flagsRef.current} | ${snapshot.debug}`;
|
|
330
|
+
}
|
|
331
|
+
const now = performance.now();
|
|
332
|
+
if (!telemetryRef.current || now - telemetryAtRef.current < 1000)
|
|
333
|
+
return;
|
|
334
|
+
telemetryAtRef.current = now;
|
|
335
|
+
const snapshotGeometry = geometryRef.current;
|
|
336
|
+
const tabBarGeometry = snapshotGeometry?.tabBarSelectedIndex === undefined
|
|
337
|
+
? null
|
|
338
|
+
: {
|
|
339
|
+
x: snapshotGeometry.dockX,
|
|
340
|
+
y: snapshotGeometry.dockY,
|
|
341
|
+
width: snapshotGeometry.dockWidth,
|
|
342
|
+
height: snapshotGeometry.dockHeight,
|
|
343
|
+
bottomGap: snapshotGeometry.height - snapshotGeometry.dockY - snapshotGeometry.dockHeight,
|
|
344
|
+
};
|
|
345
|
+
void fetch('/__satinGeometry_metrics', {
|
|
346
|
+
method: 'POST',
|
|
347
|
+
headers: { 'content-type': 'application/json' },
|
|
348
|
+
body: JSON.stringify({
|
|
349
|
+
...snapshot,
|
|
350
|
+
_measurementBuild: build,
|
|
351
|
+
_measurementClient: measurementClientRef.current,
|
|
352
|
+
buildId: build,
|
|
353
|
+
captureState: {
|
|
354
|
+
safeArea: safeAreaRef.current,
|
|
355
|
+
geometry: geometryRef.current,
|
|
356
|
+
tabBarGeometry,
|
|
357
|
+
page: contentPageRef.current,
|
|
358
|
+
rim: rimRef.current,
|
|
359
|
+
tabPresentation: tabPresentationRef.current,
|
|
360
|
+
},
|
|
361
|
+
}),
|
|
362
|
+
// Periodic snapshots can exceed the 64 KiB keepalive quota after GPU
|
|
363
|
+
// diagnostics are attached. This is a live request, not an unload beacon.
|
|
364
|
+
keepalive: false,
|
|
365
|
+
})
|
|
366
|
+
.then(response => response.json())
|
|
367
|
+
.then((command) => {
|
|
368
|
+
const runtime = runtimeRef.current;
|
|
369
|
+
if (!runtime || !command)
|
|
370
|
+
return;
|
|
371
|
+
if (command.captureClean !== undefined)
|
|
372
|
+
setCaptureClean(command.captureClean);
|
|
373
|
+
if (command.captureTrace) {
|
|
374
|
+
void fetch('/__satinBackdrop_diagnostics', {
|
|
375
|
+
method: 'POST',
|
|
376
|
+
headers: { 'content-type': 'application/json' },
|
|
377
|
+
body: JSON.stringify({
|
|
378
|
+
build,
|
|
379
|
+
client: measurementClientRef.current,
|
|
380
|
+
trace: runtime.exportFrameTrace(false),
|
|
381
|
+
}),
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
if (command.captureTabTrace) {
|
|
385
|
+
void fetch('/__satinBackdrop_diagnostics', {
|
|
386
|
+
method: 'POST',
|
|
387
|
+
headers: { 'content-type': 'application/json' },
|
|
388
|
+
body: JSON.stringify({
|
|
389
|
+
build,
|
|
390
|
+
client: measurementClientRef.current,
|
|
391
|
+
...runtime.exportFrameTrace(false),
|
|
392
|
+
}),
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
if (command.benchmarkMaterials) {
|
|
396
|
+
void fetch('/__satinBackdrop_diagnostics', {
|
|
397
|
+
method: 'POST',
|
|
398
|
+
headers: { 'content-type': 'application/json' },
|
|
399
|
+
body: JSON.stringify({
|
|
400
|
+
build,
|
|
401
|
+
client: measurementClientRef.current,
|
|
402
|
+
...runtime.benchmarkRestingMaterials(),
|
|
403
|
+
}),
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
if (command.captureBuffers) {
|
|
407
|
+
let diagnostics;
|
|
408
|
+
try {
|
|
409
|
+
diagnostics = runtime.exportDiagnosticBuffers();
|
|
410
|
+
}
|
|
411
|
+
catch (error) {
|
|
412
|
+
diagnostics = {
|
|
413
|
+
error: String(error),
|
|
414
|
+
stack: error instanceof Error ? error.stack : undefined,
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
void fetch('/__satinBackdrop_diagnostics', {
|
|
418
|
+
method: 'POST',
|
|
419
|
+
headers: { 'content-type': 'application/json' },
|
|
420
|
+
body: JSON.stringify({
|
|
421
|
+
build,
|
|
422
|
+
client: measurementClientRef.current,
|
|
423
|
+
captureState: { page: contentPageRef.current, safeArea: safeAreaRef.current },
|
|
424
|
+
diagnostics,
|
|
425
|
+
}),
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
if (command.reload) {
|
|
429
|
+
window.location.reload();
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (command.reset)
|
|
433
|
+
runtime.resetMetrics();
|
|
434
|
+
if (command.appearance) {
|
|
435
|
+
setMeasurementAppearance(command.appearance);
|
|
436
|
+
runtime.setAppearance(command.appearance);
|
|
437
|
+
}
|
|
438
|
+
if (command.bridge !== undefined) {
|
|
439
|
+
setBridgeEnabled(command.bridge);
|
|
440
|
+
runtime.setBridgeEnabled(command.bridge);
|
|
441
|
+
}
|
|
442
|
+
if (command.glass !== undefined) {
|
|
443
|
+
setGlassEnabled(command.glass);
|
|
444
|
+
runtime.setGlassEnabled(command.glass);
|
|
445
|
+
}
|
|
446
|
+
if (command.lens !== undefined) {
|
|
447
|
+
const mode = isLensMode(command.lens) ? command.lens : 'reference-regular';
|
|
448
|
+
setLensMode(mode);
|
|
449
|
+
persistLens(mode);
|
|
450
|
+
runtime.setLensMode(mode);
|
|
451
|
+
}
|
|
452
|
+
if (command.markers !== undefined) {
|
|
453
|
+
setMarkers(command.markers);
|
|
454
|
+
runtime.setMarkers(command.markers);
|
|
455
|
+
}
|
|
456
|
+
if (command.rim !== undefined) {
|
|
457
|
+
setRimEnabled(command.rim);
|
|
458
|
+
persistFlag('rim', command.rim ? '1' : '0');
|
|
459
|
+
}
|
|
460
|
+
if (command.velocityFade !== undefined) {
|
|
461
|
+
setVelocityFadeEnabled(command.velocityFade);
|
|
462
|
+
persistFlag('velocity-fade', command.velocityFade ? '1' : '0');
|
|
463
|
+
runtime.setVelocityFadeEnabled(command.velocityFade);
|
|
464
|
+
}
|
|
465
|
+
if (command.screen)
|
|
466
|
+
navigate(command.screen);
|
|
467
|
+
if (command.page)
|
|
468
|
+
selectPage(command.page, command.offset);
|
|
469
|
+
if (command.scroll !== undefined)
|
|
470
|
+
runtime.setScroll(command.scroll);
|
|
471
|
+
if (command.motion)
|
|
472
|
+
void startMotion(command.motion);
|
|
473
|
+
if (command.liquid)
|
|
474
|
+
runtime.startLiquidMotion(command.liquid.repeats, command.liquid.speed);
|
|
475
|
+
if (command.tabbarProbe !== undefined)
|
|
476
|
+
setTabBarProbe(command.tabbarProbe);
|
|
477
|
+
if (command.tabbarSelect !== undefined) {
|
|
478
|
+
const index = Math.max(0, Math.min(3, Math.round(command.tabbarSelect)));
|
|
479
|
+
setSelectedTab(index);
|
|
480
|
+
runtime.setTabSelection(index);
|
|
481
|
+
}
|
|
482
|
+
if (command.liquidMode && command.liquidMode !== liquidMotion) {
|
|
483
|
+
persistFlag('motion', command.liquidMode);
|
|
484
|
+
window.location.reload();
|
|
485
|
+
}
|
|
486
|
+
})
|
|
487
|
+
.catch(() => {
|
|
488
|
+
// The final Vite preview intentionally has no measurement endpoint.
|
|
489
|
+
});
|
|
490
|
+
}, []);
|
|
491
|
+
useEffect(() => {
|
|
492
|
+
const elements = {
|
|
493
|
+
band: {
|
|
494
|
+
base: bandBaseRef.current,
|
|
495
|
+
canvas: directCanvasRef.current,
|
|
496
|
+
clip: bandClipRef.current,
|
|
497
|
+
frame: bandFrameRef.current,
|
|
498
|
+
rimCanvas: rimCanvasRef.current,
|
|
499
|
+
rimClip: rimClipRef.current,
|
|
500
|
+
track: bandTrackRef.current,
|
|
501
|
+
},
|
|
502
|
+
chrome: {
|
|
503
|
+
dock: dockFrameRef.current,
|
|
504
|
+
left: leftFrameRef.current,
|
|
505
|
+
right: rightFrameRef.current,
|
|
506
|
+
},
|
|
507
|
+
contentHost: consumer?.content ?? contentHostRef.current,
|
|
508
|
+
scroller: consumer?.scroller ?? scrollerRef.current,
|
|
509
|
+
syncMarkers: syncMarkersRef.current,
|
|
510
|
+
};
|
|
511
|
+
if (!elements.contentHost ||
|
|
512
|
+
!elements.scroller ||
|
|
513
|
+
!elements.syncMarkers ||
|
|
514
|
+
!elements.band.base ||
|
|
515
|
+
!elements.band.canvas ||
|
|
516
|
+
!elements.band.clip ||
|
|
517
|
+
!elements.band.frame ||
|
|
518
|
+
!elements.band.rimCanvas ||
|
|
519
|
+
!elements.band.rimClip ||
|
|
520
|
+
!elements.band.track ||
|
|
521
|
+
!elements.chrome.dock ||
|
|
522
|
+
!elements.chrome.left ||
|
|
523
|
+
!elements.chrome.right)
|
|
524
|
+
return;
|
|
525
|
+
let cancelled = false;
|
|
526
|
+
setRuntimeError(undefined);
|
|
527
|
+
trace('effect:create-once');
|
|
528
|
+
// This call's options identify it as the shared runtime's owner: a cancelled call (StrictMode's
|
|
529
|
+
// setup → cleanup → setup while initialization is pending) must not release it after a later call rebound it.
|
|
530
|
+
let runtimeOptions;
|
|
531
|
+
void createPresentationRuntime((runtimeOptions = {
|
|
532
|
+
appearance,
|
|
533
|
+
regions: consumer?.regions,
|
|
534
|
+
consumerMode: Boolean(consumer),
|
|
535
|
+
subscribeAppearance,
|
|
536
|
+
currentAppearance: () => (consumerRef.current
|
|
537
|
+
? undefined
|
|
538
|
+
: (measurementAppearanceRef.current ?? requestedAppearance())) ??
|
|
539
|
+
(readDarkAppearance() ? 'dark' : 'light'),
|
|
540
|
+
bridgeEnabled,
|
|
541
|
+
elements: elements,
|
|
542
|
+
geometry,
|
|
543
|
+
glassEnabled,
|
|
544
|
+
lensMode,
|
|
545
|
+
liquidMotion,
|
|
546
|
+
menuEnabled: false,
|
|
547
|
+
markers,
|
|
548
|
+
onSnapshot,
|
|
549
|
+
onPresented: ready => {
|
|
550
|
+
if (cancelled)
|
|
551
|
+
return;
|
|
552
|
+
const commit = () => {
|
|
553
|
+
setRuntimeReady(ready);
|
|
554
|
+
consumerRef.current?.onReady(ready);
|
|
555
|
+
};
|
|
556
|
+
// True comes only from the renderer's completed rAF submission. Make
|
|
557
|
+
// that one-time ownership handoff visible in this rendering update.
|
|
558
|
+
// False can originate in a React layout effect and must not flush it.
|
|
559
|
+
if (ready)
|
|
560
|
+
flushSync(commit);
|
|
561
|
+
else
|
|
562
|
+
commit();
|
|
563
|
+
},
|
|
564
|
+
onPresentationError: (error, rebuilding) => {
|
|
565
|
+
if (!cancelled)
|
|
566
|
+
consumerRef.current?.onError?.(error, rebuilding);
|
|
567
|
+
},
|
|
568
|
+
onSourceReady: source => {
|
|
569
|
+
if (!cancelled)
|
|
570
|
+
consumerRef.current?.onSourceReady?.(source);
|
|
571
|
+
},
|
|
572
|
+
// Commit content on release, without resetting the moving pill.
|
|
573
|
+
onTabActivated: index => {
|
|
574
|
+
const started = performance.now();
|
|
575
|
+
const tabs = consumerRef.current?.tabs;
|
|
576
|
+
if (tabs?.items[index] && !tabs.items[index].disabled) {
|
|
577
|
+
const button = dockFrameRef.current?.querySelector(`[data-tab-index="${index}"]`);
|
|
578
|
+
if (button)
|
|
579
|
+
focusFromFramework(button, { preventScroll: true });
|
|
580
|
+
flushSync(() => tabs.onSelect(tabs.items[index].id));
|
|
581
|
+
}
|
|
582
|
+
recordMotionEventCost('tab-activation', started, performance.now());
|
|
583
|
+
},
|
|
584
|
+
onTabSelected: index => flushSync(() => {
|
|
585
|
+
setSelectedTab(index);
|
|
586
|
+
}),
|
|
587
|
+
screen: effectiveScreen,
|
|
588
|
+
velocityFadeEnabled,
|
|
589
|
+
}), consumer?.backend)
|
|
590
|
+
.then(runtime => {
|
|
591
|
+
if (cancelled) {
|
|
592
|
+
if (consumerRef.current)
|
|
593
|
+
runtime.dispose(runtimeOptions);
|
|
594
|
+
else
|
|
595
|
+
runtime.detach(runtimeOptions);
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
runtimeRef.current = runtime;
|
|
599
|
+
setBoundRuntime(runtime);
|
|
600
|
+
runtime.commitAppearance(appearanceRef.current);
|
|
601
|
+
if (geometryRef.current)
|
|
602
|
+
runtime.updateGeometry(geometryRef.current);
|
|
603
|
+
debugWindow().__SATIN_LENS_SPLIT__ = {
|
|
604
|
+
regions: () => runtimeRef.current?.regionDiagnostics(),
|
|
605
|
+
metrics: () => snapshotRef.current,
|
|
606
|
+
motion: () => motionRunRef.current,
|
|
607
|
+
navigate,
|
|
608
|
+
resetMetrics: () => runtime.resetMetrics(),
|
|
609
|
+
setBridge: enabled => runtime.setBridgeEnabled(enabled),
|
|
610
|
+
setGlass: enabled => runtime.setGlassEnabled(enabled),
|
|
611
|
+
setLens: mode => {
|
|
612
|
+
setLensMode(mode);
|
|
613
|
+
persistLens(mode);
|
|
614
|
+
runtime.setLensMode(mode);
|
|
615
|
+
},
|
|
616
|
+
setMarkers: enabled => runtime.setMarkers(enabled),
|
|
617
|
+
setPage: (page, offset) => selectPage(page, offset),
|
|
618
|
+
setRim: enabled => {
|
|
619
|
+
setRimEnabled(enabled);
|
|
620
|
+
persistFlag('rim', enabled ? '1' : '0');
|
|
621
|
+
},
|
|
622
|
+
setScroll: offset => runtime.setScroll(offset),
|
|
623
|
+
setTabSelection: index => {
|
|
624
|
+
const selected = Math.max(0, Math.min(3, Math.round(index)));
|
|
625
|
+
setSelectedTab(selected);
|
|
626
|
+
runtime.setTabSelection(selected);
|
|
627
|
+
},
|
|
628
|
+
setVelocityFade: enabled => runtime.setVelocityFadeEnabled(enabled),
|
|
629
|
+
startLiquidMotion: (repeats, speed) => runtime.startLiquidMotion(repeats, speed),
|
|
630
|
+
startMotion,
|
|
631
|
+
};
|
|
632
|
+
performance.mark('satin-glass-runtime-created');
|
|
633
|
+
})
|
|
634
|
+
.catch((error) => {
|
|
635
|
+
reportGlassError(glassFailureCode('production glass startup', error), error, 'production glass startup');
|
|
636
|
+
if (!cancelled) {
|
|
637
|
+
setRuntimeError(error instanceof Error ? error.message : String(error));
|
|
638
|
+
consumerRef.current?.onError?.(error);
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
return () => {
|
|
642
|
+
cancelled = true;
|
|
643
|
+
consumerRef.current?.onReady(false);
|
|
644
|
+
delete debugWindow().__SATIN_LENS_SPLIT__;
|
|
645
|
+
motionAbortRef.current?.abort();
|
|
646
|
+
if (consumerRef.current)
|
|
647
|
+
runtimeRef.current?.dispose(runtimeOptions);
|
|
648
|
+
else
|
|
649
|
+
runtimeRef.current?.detach(runtimeOptions);
|
|
650
|
+
runtimeRef.current = undefined;
|
|
651
|
+
setBoundRuntime(undefined);
|
|
652
|
+
};
|
|
653
|
+
// Replace only the material owner on release demotion. Keep the semantic tab
|
|
654
|
+
// DOM, selected state and renderer-neutral region registrations mounted.
|
|
655
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
656
|
+
}, [consumer?.backend]);
|
|
657
|
+
useEffect(() => {
|
|
658
|
+
runtimeRef.current?.updateGeometry({
|
|
659
|
+
tabBarCentres,
|
|
660
|
+
tabBarPillWidth,
|
|
661
|
+
tabBarPillWidths,
|
|
662
|
+
tabBarPlacement,
|
|
663
|
+
tabBarMinimizedOffsetX,
|
|
664
|
+
tabBarPillHeight,
|
|
665
|
+
tabBarPillCenterY,
|
|
666
|
+
bottomInset,
|
|
667
|
+
circleSize,
|
|
668
|
+
circleY,
|
|
669
|
+
dockHeight,
|
|
670
|
+
dockRadius,
|
|
671
|
+
dockWidth,
|
|
672
|
+
dockX,
|
|
673
|
+
dockY,
|
|
674
|
+
height,
|
|
675
|
+
leftX,
|
|
676
|
+
physicalTopInset,
|
|
677
|
+
rightX,
|
|
678
|
+
surfaceMode: isDragPage ? 'drag' : 'chrome',
|
|
679
|
+
tabBarBackground: contentPage,
|
|
680
|
+
width,
|
|
681
|
+
});
|
|
682
|
+
}, [
|
|
683
|
+
tabBarCentres,
|
|
684
|
+
tabBarPillWidths,
|
|
685
|
+
tabBarPlacement,
|
|
686
|
+
tabBarMinimizedOffsetX,
|
|
687
|
+
tabBarPillWidth,
|
|
688
|
+
tabBarPillHeight,
|
|
689
|
+
tabBarPillCenterY,
|
|
690
|
+
bottomInset,
|
|
691
|
+
circleSize,
|
|
692
|
+
circleY,
|
|
693
|
+
contentPage,
|
|
694
|
+
dockHeight,
|
|
695
|
+
dockRadius,
|
|
696
|
+
dockWidth,
|
|
697
|
+
dockX,
|
|
698
|
+
dockY,
|
|
699
|
+
height,
|
|
700
|
+
isDragPage,
|
|
701
|
+
leftX,
|
|
702
|
+
physicalTopInset,
|
|
703
|
+
rightX,
|
|
704
|
+
width,
|
|
705
|
+
]);
|
|
706
|
+
useEffect(() => runtimeRef.current?.setTabSelection(tabBarVisible ? selectedTab : undefined), [selectedTab, tabBarVisible]);
|
|
707
|
+
useLayoutEffect(() => runtimeRef.current?.commitAppearance(appearance), [appearance]);
|
|
708
|
+
// Settings and reference backgrounds are different DOM roots. Hand the newly
|
|
709
|
+
// committed root to the retained renderer before the next browser paint so
|
|
710
|
+
// an already-scheduled layout read can never inspect the detached root.
|
|
711
|
+
useLayoutEffect(() => {
|
|
712
|
+
if (consumer?.content ?? contentHostRef.current)
|
|
713
|
+
runtimeRef.current?.setContentHost((consumer?.content ?? contentHostRef.current));
|
|
714
|
+
}, [contentPage]);
|
|
715
|
+
const buildStatusRef = useRef(null);
|
|
716
|
+
const buildHealthRef = useRef({ status: 'checking' });
|
|
717
|
+
const loadedBuild = document.querySelector('script[type="module"][src]')?.src.match(/index-([^.]+)/)?.[1] ?? '?';
|
|
718
|
+
useEffect(() => {
|
|
719
|
+
if (!probe)
|
|
720
|
+
return;
|
|
721
|
+
let disposed = false;
|
|
722
|
+
const check = async () => {
|
|
723
|
+
try {
|
|
724
|
+
const response = await fetch(`/__satin_build?check=${Date.now()}`, {
|
|
725
|
+
cache: 'no-store',
|
|
726
|
+
signal: AbortSignal.timeout(3000),
|
|
727
|
+
});
|
|
728
|
+
if (!response.ok)
|
|
729
|
+
throw new Error(`HTTP ${response.status}`);
|
|
730
|
+
const server = (await response.json());
|
|
731
|
+
if (disposed)
|
|
732
|
+
return;
|
|
733
|
+
const status = server.build === loadedBuild ? 'server matches' : `UPDATE AVAILABLE ${server.build}`;
|
|
734
|
+
buildHealthRef.current = {
|
|
735
|
+
loadedBuild,
|
|
736
|
+
serverBuild: server.build,
|
|
737
|
+
status,
|
|
738
|
+
checkedAt: new Date().toISOString(),
|
|
739
|
+
};
|
|
740
|
+
if (buildStatusRef.current)
|
|
741
|
+
buildStatusRef.current.value = `9c ${loadedBuild} · ${status}`;
|
|
742
|
+
}
|
|
743
|
+
catch {
|
|
744
|
+
if (disposed)
|
|
745
|
+
return;
|
|
746
|
+
buildHealthRef.current = {
|
|
747
|
+
loadedBuild,
|
|
748
|
+
status: 'server unreachable; cached build possible',
|
|
749
|
+
checkedAt: new Date().toISOString(),
|
|
750
|
+
};
|
|
751
|
+
if (buildStatusRef.current)
|
|
752
|
+
buildStatusRef.current.value = `9c ${loadedBuild} · SERVER UNREACHABLE`;
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
void check();
|
|
756
|
+
const interval = window.setInterval(() => {
|
|
757
|
+
if (!document.hidden)
|
|
758
|
+
void check();
|
|
759
|
+
}, 15000);
|
|
760
|
+
return () => {
|
|
761
|
+
disposed = true;
|
|
762
|
+
window.clearInterval(interval);
|
|
763
|
+
};
|
|
764
|
+
}, [loadedBuild]);
|
|
765
|
+
const navigate = useCallback((next) => {
|
|
766
|
+
screenRef.current = next;
|
|
767
|
+
setScreen(next);
|
|
768
|
+
persistFlag('screen', next);
|
|
769
|
+
runtimeRef.current?.setScreen(next);
|
|
770
|
+
}, []);
|
|
771
|
+
const openGeneral = useCallback(() => navigate('general'), [navigate]);
|
|
772
|
+
const backdropRequest = useRef(0);
|
|
773
|
+
const selectPage = async (next, offset = backgroundOffset) => {
|
|
774
|
+
const request = ++backdropRequest.current;
|
|
775
|
+
if (isBitmapBackdrop(next))
|
|
776
|
+
await prepareGlassBitmapBackdrop(next);
|
|
777
|
+
if (request !== backdropRequest.current)
|
|
778
|
+
return;
|
|
779
|
+
setContentPage(next);
|
|
780
|
+
setBackgroundOffset(offset);
|
|
781
|
+
persistFlag('page', next);
|
|
782
|
+
persistFlag('offset', String(offset));
|
|
783
|
+
if (scrollerRef.current)
|
|
784
|
+
scrollerRef.current.scrollTop = 0;
|
|
785
|
+
runtimeRef.current?.setScreen(next === 'settings' ? screenRef.current : 'general');
|
|
786
|
+
};
|
|
787
|
+
const toggleBridge = () => {
|
|
788
|
+
const next = !bridgeEnabled;
|
|
789
|
+
setBridgeEnabled(next);
|
|
790
|
+
persistFlag('bridge', next ? '1' : '0');
|
|
791
|
+
runtimeRef.current?.setBridgeEnabled(next);
|
|
792
|
+
};
|
|
793
|
+
const toggleGlass = () => {
|
|
794
|
+
const next = !glassEnabled;
|
|
795
|
+
setGlassEnabled(next);
|
|
796
|
+
persistFlag('glass', next ? '1' : '0');
|
|
797
|
+
runtimeRef.current?.setGlassEnabled(next);
|
|
798
|
+
};
|
|
799
|
+
const toggleLens = () => {
|
|
800
|
+
const next = lensMode === 'reference-regular' ? 'reference-clear' : 'reference-regular';
|
|
801
|
+
setLensMode(next);
|
|
802
|
+
persistLens(next);
|
|
803
|
+
runtimeRef.current?.setLensMode(next);
|
|
804
|
+
};
|
|
805
|
+
const toggleMarkers = () => {
|
|
806
|
+
const next = !markers;
|
|
807
|
+
setMarkers(next);
|
|
808
|
+
persistFlag('markers', next ? '1' : '0');
|
|
809
|
+
runtimeRef.current?.setMarkers(next);
|
|
810
|
+
};
|
|
811
|
+
const toggleTelemetry = () => {
|
|
812
|
+
const next = !telemetryEnabled;
|
|
813
|
+
setTelemetryEnabled(next);
|
|
814
|
+
persistFlag('telemetry', next ? '1' : '0');
|
|
815
|
+
};
|
|
816
|
+
const toggleRim = () => {
|
|
817
|
+
const next = !rimEnabled;
|
|
818
|
+
setRimEnabled(next);
|
|
819
|
+
persistFlag('rim', next ? '1' : '0');
|
|
820
|
+
};
|
|
821
|
+
const toggleVelocityFade = () => {
|
|
822
|
+
const next = !velocityFadeEnabled;
|
|
823
|
+
setVelocityFadeEnabled(next);
|
|
824
|
+
persistFlag('velocity-fade', next ? '1' : '0');
|
|
825
|
+
runtimeRef.current?.setVelocityFadeEnabled(next);
|
|
826
|
+
};
|
|
827
|
+
flagsRef.current = `flags b${bridgeEnabled ? 1 : 0} g${glassEnabled ? 1 : 0} ${lensMode} ${contentPage}@${backgroundOffset} anchor-combined vf${velocityFadeEnabled ? 1 : 0} m${markers ? 1 : 0} t${telemetryEnabled ? 1 : 0} tab${tabBarVisible ? selectedTab : 'off'}`;
|
|
828
|
+
const tabNames = consumer?.tabs?.items.map(item => item.label) ?? [
|
|
829
|
+
'Settings',
|
|
830
|
+
'Search',
|
|
831
|
+
'Saved',
|
|
832
|
+
'Account',
|
|
833
|
+
];
|
|
834
|
+
const liquidEnvelope = liquidMotion === 'none'
|
|
835
|
+
? undefined
|
|
836
|
+
: {
|
|
837
|
+
...LIQUID_ENVELOPES[liquidMotion],
|
|
838
|
+
frameY: LIQUID_ENVELOPES[liquidMotion].frameY - physicalTopInset,
|
|
839
|
+
};
|
|
840
|
+
useLayoutEffect(() => {
|
|
841
|
+
if (!consumer || !runtimeReady || !boundRuntime)
|
|
842
|
+
return;
|
|
843
|
+
boundRuntime.retargetContent(consumer.scroller, consumer.content);
|
|
844
|
+
}, [consumer?.scroller, consumer?.content, runtimeReady, boundRuntime]);
|
|
845
|
+
return (_jsxs("main", { "data-satin-liquid": probe ? 'probe' : 'consumer', style: consumer && !runtimeReady && !runtimeError ? { visibility: 'hidden' } : undefined, className: "satin-lens-compositor-shell", "data-appearance": appearance, "data-lens": lensMode, "data-motion": liquidMotion, "data-page": contentPage, "data-rim": rimEnabled ? '1' : '0', children: [probe ? (_jsxs("div", { ref: scrollerRef, className: "satin-lens-native-scroll-surface", "data-measured-reference-native-scroller": true, children: [contentPage === 'settings' ? (_jsx(SettingsDomScene, { contentRef: contentHostRef, onOpenGeneral: openGeneral, onQuery: setQuery, query: query, screen: screen })) : (_jsx(ReferenceBackgroundScene, { contentRef: contentHostRef, height: height, mode: contentPage === 'drag' ? 'shapes' : contentPage, sourceOffsetY: physicalTopInset + backgroundOffset, width: width })), _jsx("div", { ref: syncMarkersRef, className: "satin-lens-sync-marker-layer", "aria-hidden": "true", hidden: !markers })] })) : (_jsx("div", { ref: syncMarkersRef, hidden: true })), liquidMotion === 'pill' ? (_jsx("div", { className: "satin-lens-liquid-pill-backdrop", style: {
|
|
846
|
+
height: LIQUID_PILL_BAR.height,
|
|
847
|
+
left: LIQUID_PILL_BAR.x,
|
|
848
|
+
top: LIQUID_PILL_BAR.y - physicalTopInset,
|
|
849
|
+
width: LIQUID_PILL_BAR.width,
|
|
850
|
+
}, "aria-hidden": "true" })) : null, _jsxs("div", { ref: bandFrameRef, className: "satin-lens-glass-band-frame", hidden: !glassEnabled, children: [_jsx("div", { ref: rimClipRef, className: "satin-lens-glass-layer-clip glass-layer-clip--rim", children: _jsx("canvas", { ref: rimCanvasRef, className: "satin-lens-glass-direct-canvas", "aria-hidden": "true" }) }), _jsx("div", { ref: bandClipRef, className: "satin-lens-glass-layer-clip satin-lens-glass-layer-clip--interior", children: _jsx("div", { ref: bandBaseRef, className: "satin-lens-glass-base", children: _jsx("div", { ref: bandTrackRef, className: "satin-lens-glass-track", children: _jsx("canvas", { ref: directCanvasRef, className: "satin-lens-glass-direct-canvas", "aria-hidden": "true" }) }) }) })] }), _jsxs("div", { ref: leftFrameRef, className: "satin-lens-glass-chrome satin-lens-glass-chrome--circle glass-chrome--left", style: { left: leftX, top: circleY, width: circleSize, height: circleSize }, hidden: !probe ||
|
|
851
|
+
tabBarVisible ||
|
|
852
|
+
liquidMotion !== 'none' ||
|
|
853
|
+
effectiveScreen !== 'general' ||
|
|
854
|
+
!glassEnabled, children: [contentPage === 'settings' ? _jsx(RimProofMarkers, {}) : null, contentPage === 'settings' ? (_jsx("button", { className: "satin-lens-circle-control satin-lens-circle-control--back", type: "button", onClick: () => navigate('root'), "aria-label": "Back to Settings" })) : null] }), _jsxs("div", { ref: rightFrameRef, className: "satin-lens-glass-chrome glass-chrome--right satin-lens-glass-chrome--circle", style: {
|
|
855
|
+
left: rightX,
|
|
856
|
+
top: circleY,
|
|
857
|
+
width: GLASS_CIRCLE_SIZE_PX,
|
|
858
|
+
height: GLASS_CIRCLE_SIZE_PX,
|
|
859
|
+
}, hidden: !probe || tabBarVisible || liquidMotion !== 'none' || isDragPage || !glassEnabled, children: [contentPage === 'settings' ? _jsx(RimProofMarkers, {}) : null, _jsx("button", { className: "satin-lens-circle-control satin-lens-circle-control--tune", type: "button", onClick: () => setControlsOpen(open => !open), "aria-label": "Open Satin Glass controls", hidden: contentPage !== 'settings' })] }), _jsxs("div", { ref: dockFrameRef, className: `satin-lens-glass-chrome satin-lens-glass-chrome--dock${liquidMotion === 'none' ? '' : ' satin-lens-glass-chrome--liquid'}`, style: liquidEnvelope
|
|
860
|
+
? {
|
|
861
|
+
left: liquidEnvelope.frameX,
|
|
862
|
+
top: liquidEnvelope.frameY,
|
|
863
|
+
width: liquidEnvelope.frameWidth,
|
|
864
|
+
height: liquidEnvelope.frameHeight,
|
|
865
|
+
}
|
|
866
|
+
: {
|
|
867
|
+
borderRadius: dockRadius,
|
|
868
|
+
left: dockX,
|
|
869
|
+
top: dockY,
|
|
870
|
+
width: dockWidth,
|
|
871
|
+
height: dockHeight,
|
|
872
|
+
}, "data-satin-tab-layout": topFrames ? 'top' : compactTabs ? 'compact' : undefined, role: liquidMotion !== 'none' ? 'presentation' : tabBarVisible ? 'tablist' : undefined, "aria-label": liquidMotion !== 'none'
|
|
873
|
+
? `Liquid ${liquidMotion} surface`
|
|
874
|
+
: tabBarVisible
|
|
875
|
+
? probe
|
|
876
|
+
? 'Settings tabs'
|
|
877
|
+
: 'App tabs'
|
|
878
|
+
: undefined, hidden: !glassEnabled || (!probe && !tabBarVisible), children: [probe && liquidMotion === 'none' && contentPage === 'settings' ? (_jsx(RimProofMarkers, {})) : null, tabBarVisible ? _jsx("div", { className: "satin-lens-tab-selection" }) : null, tabBarVisible ? (_jsx("div", { className: "satin-lens-tab-ink-clip", children: _jsx("div", { className: "satin-lens-tab-ink-plane", children: _jsx("div", { className: "satin-lens-tab-items", "data-satin-custom-icons": consumer?.tabs ? true : undefined, style: topFrames
|
|
879
|
+
? {
|
|
880
|
+
...sidebarCssTokens,
|
|
881
|
+
left: topFrames[0].x,
|
|
882
|
+
width: topFrames.reduce((sum, frame) => sum + frame.width, 0),
|
|
883
|
+
gridTemplateColumns: topFrames.map(frame => `${frame.width}px`).join(' '),
|
|
884
|
+
}
|
|
885
|
+
: calibratedMax || consumer?.tabs
|
|
886
|
+
? {
|
|
887
|
+
left: intrinsicTabs ? 8 : compactTabs ? 4 : undefined,
|
|
888
|
+
width: dockWidth - (intrinsicTabs ? 16 : compactTabs ? 8 : 20),
|
|
889
|
+
gap: compactTabs ? 4 : undefined,
|
|
890
|
+
gridTemplateColumns: `repeat(${tabCount}, minmax(0, 1fr))`,
|
|
891
|
+
}
|
|
892
|
+
: undefined, onPointerDown: event => {
|
|
893
|
+
if (!event.isPrimary || event.button !== 0 || tabPointer.current !== undefined)
|
|
894
|
+
return;
|
|
895
|
+
if (runtimeRef.current?.restoreMinimizingTabBar()) {
|
|
896
|
+
tabContactPointer.current = event.pointerId;
|
|
897
|
+
ownPhysicalContact(document, tabContactOwner.current, Infinity, {
|
|
898
|
+
pointerId: event.pointerId,
|
|
899
|
+
});
|
|
900
|
+
return;
|
|
901
|
+
}
|
|
902
|
+
const button = event.target.closest('[role="tab"]');
|
|
903
|
+
if (!button || button.disabled)
|
|
904
|
+
return;
|
|
905
|
+
const index = Number(button.dataset.tabIndex);
|
|
906
|
+
const x = event.clientX - dockFrameRef.current.getBoundingClientRect().left;
|
|
907
|
+
if (!runtimeRef.current?.tabPointerDown(x, index))
|
|
908
|
+
return;
|
|
909
|
+
tabPointer.current = event.pointerId;
|
|
910
|
+
tabContactPointer.current = event.pointerId;
|
|
911
|
+
ownPhysicalContact(document, tabContactOwner.current, Infinity, {
|
|
912
|
+
pointerId: event.pointerId,
|
|
913
|
+
});
|
|
914
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
915
|
+
}, onPointerMove: event => {
|
|
916
|
+
if (tabPointer.current !== event.pointerId)
|
|
917
|
+
return;
|
|
918
|
+
runtimeRef.current?.tabPointerMove(event.clientX - dockFrameRef.current.getBoundingClientRect().left);
|
|
919
|
+
}, onPointerUp: event => {
|
|
920
|
+
if (tabContactPointer.current === event.pointerId) {
|
|
921
|
+
ownPhysicalContact(document, tabContactOwner.current, 750, {
|
|
922
|
+
pointerId: event.pointerId,
|
|
923
|
+
});
|
|
924
|
+
tabContactPointer.current = undefined;
|
|
925
|
+
}
|
|
926
|
+
if (tabPointer.current !== event.pointerId)
|
|
927
|
+
return;
|
|
928
|
+
runtimeRef.current?.tabPointerMove(event.clientX - dockFrameRef.current.getBoundingClientRect().left);
|
|
929
|
+
runtimeRef.current?.tabPointerUp();
|
|
930
|
+
tabPointer.current = undefined;
|
|
931
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
932
|
+
}, onPointerCancel: event => {
|
|
933
|
+
if (tabContactPointer.current === event.pointerId) {
|
|
934
|
+
retirePhysicalContact(document, tabContactOwner.current);
|
|
935
|
+
tabContactPointer.current = undefined;
|
|
936
|
+
}
|
|
937
|
+
if (tabPointer.current !== event.pointerId)
|
|
938
|
+
return;
|
|
939
|
+
runtimeRef.current?.tabPointerUp(true);
|
|
940
|
+
tabPointer.current = undefined;
|
|
941
|
+
}, onLostPointerCapture: event => {
|
|
942
|
+
if (tabPointer.current !== event.pointerId)
|
|
943
|
+
return;
|
|
944
|
+
if (tabContactPointer.current === event.pointerId) {
|
|
945
|
+
retirePhysicalContact(document, tabContactOwner.current);
|
|
946
|
+
tabContactPointer.current = undefined;
|
|
947
|
+
}
|
|
948
|
+
runtimeRef.current?.tabPointerUp(true);
|
|
949
|
+
tabPointer.current = undefined;
|
|
950
|
+
}, onKeyDown: event => {
|
|
951
|
+
const button = event.target.closest('[role="tab"]');
|
|
952
|
+
if (!button || button.disabled)
|
|
953
|
+
return;
|
|
954
|
+
const current = Number(button.dataset.tabIndex);
|
|
955
|
+
const next = event.key === 'ArrowRight'
|
|
956
|
+
? (current + 1) % tabNames.length
|
|
957
|
+
: event.key === 'ArrowLeft'
|
|
958
|
+
? (current + tabNames.length - 1) % tabNames.length
|
|
959
|
+
: event.key === 'Home'
|
|
960
|
+
? 0
|
|
961
|
+
: event.key === 'End'
|
|
962
|
+
? tabNames.length - 1
|
|
963
|
+
: undefined;
|
|
964
|
+
if (next === undefined)
|
|
965
|
+
return;
|
|
966
|
+
event.preventDefault();
|
|
967
|
+
event.currentTarget
|
|
968
|
+
.querySelector(`[data-tab-index="${next}"]`)
|
|
969
|
+
?.focus();
|
|
970
|
+
runtimeRef.current?.selectTabAnimated(next);
|
|
971
|
+
}, children: tabNames.map((label, index) => (_jsxs("button", { className: index === selectedTab
|
|
972
|
+
? 'satin-lens-tab-item satin-lens-is-selected'
|
|
973
|
+
: 'satin-lens-tab-item', style: tabGlyphStyle(appearance, contentPage, index), type: "button", role: "tab", "data-tab-index": index, "data-satin-tab-role": consumer?.tabs?.items[index]?.role, id: consumer?.tabs?.items[index]?.tabId, "aria-controls": consumer?.tabs?.items[index]?.panelId, disabled: consumer?.tabs?.items[index]?.disabled, "aria-label": consumer?.tabs?.items[index]?.accessibilityLabel ??
|
|
974
|
+
(tabBarPlacement === 'top' && consumer?.tabs?.items[index]?.role === 'search'
|
|
975
|
+
? typeof label === 'string'
|
|
976
|
+
? label
|
|
977
|
+
: 'Search'
|
|
978
|
+
: undefined), "aria-selected": index === selectedTab, tabIndex: index === selectedTab ? 0 : -1, onClick: event => {
|
|
979
|
+
focusFromFramework(event.currentTarget, { preventScroll: true });
|
|
980
|
+
if (runtimeRef.current) {
|
|
981
|
+
runtimeRef.current.selectTabAnimated(index);
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
// No glass renderer (it failed loudly): the tab is still a working control.
|
|
985
|
+
const item = consumerRef.current?.tabs?.items[index];
|
|
986
|
+
if (runtimeError && item && !item.disabled)
|
|
987
|
+
consumerRef.current.tabs.onSelect(item.id);
|
|
988
|
+
}, children: [probe ? (_jsx(TabIcon, { index: index })) : (_jsx("i", { className: "satin-lens-tab-icon", "aria-hidden": "true", children: _jsx(SymbolSelectionContext, { value: index === selectedTab, children: consumer?.tabs?.items[index]?.symbol ? (_jsx(SymbolImage, { name: consumer.tabs.items[index].symbol, style: { fontSize: compactTabs ? 20 : 23.4 } })) : (consumer?.tabs?.items[index]?.icon) }) })), _jsx("small", { children: tabBarPlacement === 'top' && consumer?.tabs?.items[index] ? (_jsx(TopTabLabel, { item: consumer.tabs.items[index] })) : (label) }), consumer?.tabs?.items[index]?.badge !== undefined && (_jsx("span", { "data-satin-tab-badge": consumer.tabs.items[index].badge === 'dot' ? 'dot' : 'number', children: consumer.tabs.items[index].badge === 'dot'
|
|
989
|
+
? null
|
|
990
|
+
: consumer.tabs.items[index].badge }))] }, index))) }) }) })) : null, liquidMotion !== 'none' ? (_jsx("button", { className: "satin-lens-liquid-press-control", type: "button", onClick: () => runtimeRef.current?.startLiquidMotion(1, LIQUID_PLAYBACK_SPEED), "aria-label": `Replay glass ${liquidMotion}` })) : null] }), liquidMotion === 'pill' ? (_jsx("div", { className: "satin-lens-liquid-pill-items", style: {
|
|
991
|
+
height: LIQUID_PILL_BAR.height,
|
|
992
|
+
left: LIQUID_PILL_BAR.x,
|
|
993
|
+
top: LIQUID_PILL_BAR.y - physicalTopInset,
|
|
994
|
+
width: LIQUID_PILL_BAR.width,
|
|
995
|
+
}, "aria-hidden": "true", children: tabNames.map((_label, index) => (_jsx("i", { className: `satin-lens-tab-icon satin-lens-tab-icon--${index}` }, index))) })) : null, !glassEnabled && !captureClean ? (_jsx("button", { className: "satin-lens-fallback-controls-button", type: "button", onClick: () => setControlsOpen(true), children: "Glass" })) : null, probe
|
|
996
|
+
? renderProbeOverlay({
|
|
997
|
+
captureClean,
|
|
998
|
+
bridgeOutputRef,
|
|
999
|
+
pacingOutputRef,
|
|
1000
|
+
gpuOutputRef,
|
|
1001
|
+
passesOutputRef,
|
|
1002
|
+
domOutputRef,
|
|
1003
|
+
syncOutputRef,
|
|
1004
|
+
clockOutputRef,
|
|
1005
|
+
debugOutputRef,
|
|
1006
|
+
buildStatusRef,
|
|
1007
|
+
runtimeRef,
|
|
1008
|
+
buildHealthRef,
|
|
1009
|
+
loadedBuild,
|
|
1010
|
+
tabBarVisible,
|
|
1011
|
+
controlsOpen,
|
|
1012
|
+
setControlsOpen,
|
|
1013
|
+
bridgeEnabled,
|
|
1014
|
+
glassEnabled,
|
|
1015
|
+
lensMode,
|
|
1016
|
+
rimEnabled,
|
|
1017
|
+
velocityFadeEnabled,
|
|
1018
|
+
markers,
|
|
1019
|
+
telemetryEnabled,
|
|
1020
|
+
toggleBridge,
|
|
1021
|
+
toggleGlass,
|
|
1022
|
+
toggleLens,
|
|
1023
|
+
toggleRim,
|
|
1024
|
+
toggleVelocityFade,
|
|
1025
|
+
toggleMarkers,
|
|
1026
|
+
toggleTelemetry,
|
|
1027
|
+
contentPage,
|
|
1028
|
+
tabPolicy,
|
|
1029
|
+
tabBarProbe,
|
|
1030
|
+
screen,
|
|
1031
|
+
navigate,
|
|
1032
|
+
selectPage,
|
|
1033
|
+
backgroundOffset,
|
|
1034
|
+
runtimeReady,
|
|
1035
|
+
runtimeError,
|
|
1036
|
+
})
|
|
1037
|
+
: null] }));
|
|
1038
|
+
}
|