@luckylca/react-native-liquid-glass 0.2.0 → 0.3.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.
Files changed (228) hide show
  1. package/README.md +20 -33
  2. package/README.zh-CN.md +20 -33
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/android/build.gradle +4 -4
  5. package/android/src/main/java/expo/modules/{newhuliquidglass → liquidglass}/EffectiveScrollInputBridge.kt +2 -2
  6. package/android/src/main/java/expo/modules/{newhuliquidglass/ExpoGlassProviderCoreView.kt → liquidglass/GlassCaptureView.kt} +39 -39
  7. package/android/src/main/java/expo/modules/{newhuliquidglass/CoreLiquidGlassRegistry.kt → liquidglass/GlassRegistry.kt} +7 -7
  8. package/android/src/main/java/expo/modules/{newhuliquidglass/ExpoGlassSurfaceCoreView.kt → liquidglass/GlassSurfaceView.kt} +17 -17
  9. package/android/src/main/java/expo/modules/liquidglass/LiquidGlassModule.kt +205 -0
  10. package/android/src/main/java/expo/modules/{localglass/ExpoLocalGlassEngineModule.kt → liquidglass/LocalMaterialView.kt} +24 -27
  11. package/android/src/main/java/expo/modules/{newhuliquidglass → liquidglass}/PassSurfaceSuppression.kt +1 -1
  12. package/android/src/main/java/expo/modules/{newhuliquidglass → liquidglass}/SharedGlassPassProbeLog.kt +1 -1
  13. package/android/src/main/java/expo/modules/{newhuliquidglass → liquidglass}/SharedGlassPassWiring.kt +3 -3
  14. package/android-core/build.gradle +1 -1
  15. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/BackdropRecorder.kt +4 -4
  16. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/FrozenBackdrop.kt +1 -1
  17. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/GlassBackdropCoordinator.kt +5 -5
  18. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/GlassBackdropSourceHandle.kt +1 -1
  19. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/GlassScrollSource.kt +1 -1
  20. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/GlassViewController.kt +119 -722
  21. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/LiquidGlassProviderLayout.kt +2 -2
  22. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/LiquidGlassView.kt +2 -2
  23. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/ReferenceSourceWindowPolicy.kt +1 -1
  24. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/StableSceneTexturePolicy.kt +1 -1
  25. package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/SurfaceFrameBuilder.kt +278 -0
  26. package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/SurfaceInteraction.kt +359 -0
  27. package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/GlassFrame.kt +110 -0
  28. package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/GlassViewRenderer.kt +728 -0
  29. package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/ReferenceParityPasses.kt +705 -0
  30. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/internal/ReferenceTabSampling.kt +1 -1
  31. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/backdrop/internal/SharedSceneCapture.kt +1 -1
  32. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassCapabilities.kt +1 -1
  33. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassEngine.kt +7 -7
  34. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassMaterial.kt +1 -1
  35. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassMath.kt +1 -1
  36. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassOpticalInsets.kt +1 -1
  37. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassRenderTier.kt +1 -1
  38. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassShapePacker.kt +1 -1
  39. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassSurfaceState.kt +1 -1
  40. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/GlassUniforms.kt +1 -1
  41. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/LiquidGlassShaders.kt +1 -1
  42. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/SharedGlassPass.kt +6 -6
  43. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/geometry/G2RoundedRectangle.kt +2 -2
  44. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/geometry/ReferenceG2MaskTexture.kt +1 -1
  45. package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/HeightFieldGlassShader.kt +7 -0
  46. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/ReferenceBackdropBlurShader.kt +1 -1
  47. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/ReferenceGaussianDiscBackdropBlur.kt +1 -1
  48. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/ReferenceGlassUniforms.kt +4 -4
  49. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/ReferenceParityGlassShader.kt +1 -1
  50. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/ReferenceParityMultiShapeShader.kt +1 -1
  51. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/core/shader/SdfScaleLensShader.kt +1 -1
  52. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassHardwareLayerExperiment.kt +1 -1
  53. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassMaterial.kt +1 -1
  54. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassRenderer.kt +2 -2
  55. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassRuntimeShader.kt +2 -2
  56. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassShader.kt +1 -1
  57. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/local/LocalGlassView.kt +2 -2
  58. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/motion/GlassMotionDriver.kt +1 -1
  59. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/motion/GlassMotionState.kt +1 -1
  60. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/motion/PointerVelocityTracker.kt +1 -1
  61. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/motion/SpringSpec.kt +1 -1
  62. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/G2Corner.kt +1 -1
  63. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/GlassMaterial.kt +3 -3
  64. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/GlassOpticsShader.kt +3 -3
  65. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/GlassParityProbe.kt +1 -1
  66. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/GlassShapeGeometry.kt +1 -1
  67. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/GlassUniformBinder.kt +2 -2
  68. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/PixelDiff.kt +1 -1
  69. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/optics/ReferenceOptics.kt +1 -1
  70. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/rendering/GlassSurfaceHost.kt +17 -17
  71. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/rendering/GlassSurfaceRenderer.kt +9 -9
  72. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/rendering/RetainedBackdropLayer.kt +1 -1
  73. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/scheduler/GlassFrameScheduler.kt +2 -2
  74. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/telemetry/EffectiveScrollFpsProbe.kt +13 -13
  75. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/telemetry/GlassTelemetry.kt +1 -1
  76. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/telemetry/LiquidGlassPerfTelemetry.kt +13 -13
  77. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/telemetry/LiquidGlassTrace.kt +3 -3
  78. package/android-core/src/main/java/{com/newhu → io/github/luckylca}/liquidglass/telemetry/LocalGlassTelemetry.kt +1 -1
  79. package/docs/architecture.md +61 -0
  80. package/docs/migration-0.3.md +19 -0
  81. package/docs/publishing.md +29 -7
  82. package/expo-module.config.json +4 -4
  83. package/lib/commonjs/GlassSurface.js +157 -585
  84. package/lib/commonjs/GlassSurface.js.map +1 -1
  85. package/lib/commonjs/GlassTabBar.js +18 -957
  86. package/lib/commonjs/GlassTabBar.js.map +1 -1
  87. package/lib/commonjs/LocalGlassMaterial.js +3 -9
  88. package/lib/commonjs/LocalGlassMaterial.js.map +1 -1
  89. package/lib/commonjs/glassController.js +3 -7
  90. package/lib/commonjs/glassController.js.map +1 -1
  91. package/lib/commonjs/glassRuntime.js +7 -19
  92. package/lib/commonjs/glassRuntime.js.map +1 -1
  93. package/lib/commonjs/localGlassTelemetry.js +4 -13
  94. package/lib/commonjs/localGlassTelemetry.js.map +1 -1
  95. package/lib/commonjs/nativeGlassViews.js +8 -11
  96. package/lib/commonjs/nativeGlassViews.js.map +1 -1
  97. package/lib/commonjs/performanceTelemetry.js +2 -6
  98. package/lib/commonjs/performanceTelemetry.js.map +1 -1
  99. package/lib/commonjs/surface/InlineSurface.js +134 -0
  100. package/lib/commonjs/surface/InlineSurface.js.map +1 -0
  101. package/lib/commonjs/surface/MaterialProvider.js +78 -0
  102. package/lib/commonjs/surface/MaterialProvider.js.map +1 -0
  103. package/lib/commonjs/surface/NativeSurface.js +55 -0
  104. package/lib/commonjs/surface/NativeSurface.js.map +1 -0
  105. package/lib/commonjs/surface/PortalLayers.js +331 -0
  106. package/lib/commonjs/surface/PortalLayers.js.map +1 -0
  107. package/lib/commonjs/surface/contexts.js +108 -0
  108. package/lib/commonjs/surface/contexts.js.map +1 -0
  109. package/lib/commonjs/surface/registry.js +113 -0
  110. package/lib/commonjs/surface/registry.js.map +1 -0
  111. package/lib/commonjs/surface/styles.js +34 -0
  112. package/lib/commonjs/surface/styles.js.map +1 -0
  113. package/lib/commonjs/surface/types.js +3 -0
  114. package/lib/commonjs/surface/types.js.map +1 -0
  115. package/lib/commonjs/tabs/GlassTabItem.js +66 -0
  116. package/lib/commonjs/tabs/GlassTabItem.js.map +1 -0
  117. package/lib/commonjs/tabs/InlineTabBar.js +867 -0
  118. package/lib/commonjs/tabs/InlineTabBar.js.map +1 -0
  119. package/lib/commonjs/tabs/tabConstants.js +22 -0
  120. package/lib/commonjs/tabs/tabConstants.js.map +1 -0
  121. package/lib/commonjs/tabs/tabDebug.js +50 -0
  122. package/lib/commonjs/tabs/tabDebug.js.map +1 -0
  123. package/lib/commonjs/tabs/tabStyles.js +107 -0
  124. package/lib/commonjs/tabs/tabStyles.js.map +1 -0
  125. package/lib/commonjs/tabs/useInlineTabGesture.js +227 -0
  126. package/lib/commonjs/tabs/useInlineTabGesture.js.map +1 -0
  127. package/lib/commonjs/theme/buildTheme.js +1 -1
  128. package/lib/commonjs/theme/buildTheme.js.map +1 -1
  129. package/lib/module/GlassSurface.js +135 -563
  130. package/lib/module/GlassSurface.js.map +1 -1
  131. package/lib/module/GlassTabBar.js +18 -925
  132. package/lib/module/GlassTabBar.js.map +1 -1
  133. package/lib/module/LocalGlassMaterial.js +5 -11
  134. package/lib/module/LocalGlassMaterial.js.map +1 -1
  135. package/lib/module/glassController.js +3 -7
  136. package/lib/module/glassController.js.map +1 -1
  137. package/lib/module/glassRuntime.js +7 -19
  138. package/lib/module/glassRuntime.js.map +1 -1
  139. package/lib/module/localGlassTelemetry.js +4 -13
  140. package/lib/module/localGlassTelemetry.js.map +1 -1
  141. package/lib/module/nativeGlassViews.js +7 -10
  142. package/lib/module/nativeGlassViews.js.map +1 -1
  143. package/lib/module/performanceTelemetry.js +2 -6
  144. package/lib/module/performanceTelemetry.js.map +1 -1
  145. package/lib/module/surface/InlineSurface.js +97 -0
  146. package/lib/module/surface/InlineSurface.js.map +1 -0
  147. package/lib/module/surface/MaterialProvider.js +74 -0
  148. package/lib/module/surface/MaterialProvider.js.map +1 -0
  149. package/lib/module/surface/NativeSurface.js +47 -0
  150. package/lib/module/surface/NativeSurface.js.map +1 -0
  151. package/lib/module/surface/PortalLayers.js +292 -0
  152. package/lib/module/surface/PortalLayers.js.map +1 -0
  153. package/lib/module/surface/contexts.js +96 -0
  154. package/lib/module/surface/contexts.js.map +1 -0
  155. package/lib/module/surface/registry.js +103 -0
  156. package/lib/module/surface/registry.js.map +1 -0
  157. package/lib/module/surface/styles.js +31 -0
  158. package/lib/module/surface/styles.js.map +1 -0
  159. package/lib/module/surface/types.js +2 -0
  160. package/lib/module/surface/types.js.map +1 -0
  161. package/lib/module/tabs/GlassTabItem.js +30 -0
  162. package/lib/module/tabs/GlassTabItem.js.map +1 -0
  163. package/lib/module/tabs/InlineTabBar.js +829 -0
  164. package/lib/module/tabs/InlineTabBar.js.map +1 -0
  165. package/lib/module/tabs/tabConstants.js +19 -0
  166. package/lib/module/tabs/tabConstants.js.map +1 -0
  167. package/lib/module/tabs/tabDebug.js +13 -0
  168. package/lib/module/tabs/tabDebug.js.map +1 -0
  169. package/lib/module/tabs/tabStyles.js +104 -0
  170. package/lib/module/tabs/tabStyles.js.map +1 -0
  171. package/lib/module/tabs/useInlineTabGesture.js +221 -0
  172. package/lib/module/tabs/useInlineTabGesture.js.map +1 -0
  173. package/lib/module/theme/buildTheme.js +1 -1
  174. package/lib/module/theme/buildTheme.js.map +1 -1
  175. package/lib/types/GlassSurface.d.ts +17 -86
  176. package/lib/types/GlassTabBar.d.ts +1 -0
  177. package/lib/types/glassNativeEngine.d.ts +1 -1
  178. package/lib/types/glassRuntime.d.ts +5 -2
  179. package/lib/types/localGlassTelemetry.d.ts +2 -2
  180. package/lib/types/nativeGlassViews.d.ts +2 -4
  181. package/lib/types/surface/InlineSurface.d.ts +42 -0
  182. package/lib/types/surface/MaterialProvider.d.ts +46 -0
  183. package/lib/types/surface/NativeSurface.d.ts +11 -0
  184. package/lib/types/surface/PortalLayers.d.ts +33 -0
  185. package/lib/types/surface/contexts.d.ts +66 -0
  186. package/lib/types/surface/registry.d.ts +6 -0
  187. package/lib/types/surface/styles.d.ts +74 -0
  188. package/lib/types/surface/types.d.ts +118 -0
  189. package/lib/types/tabs/GlassTabItem.d.ts +20 -0
  190. package/lib/types/tabs/InlineTabBar.d.ts +5 -0
  191. package/lib/types/tabs/tabConstants.d.ts +34 -0
  192. package/lib/types/tabs/tabDebug.d.ts +15 -0
  193. package/lib/types/tabs/tabStyles.d.ts +119 -0
  194. package/lib/types/tabs/useInlineTabGesture.d.ts +34 -0
  195. package/package.json +6 -14
  196. package/src/GlassSurface.tsx +227 -1337
  197. package/src/GlassTabBar.tsx +43 -1241
  198. package/src/LocalGlassMaterial.tsx +5 -11
  199. package/src/glassController.ts +3 -7
  200. package/src/glassRuntime.ts +9 -26
  201. package/src/localGlassTelemetry.ts +6 -15
  202. package/src/nativeGlassViews.ts +7 -10
  203. package/src/performanceTelemetry.ts +2 -6
  204. package/src/surface/InlineSurface.tsx +299 -0
  205. package/src/surface/MaterialProvider.tsx +235 -0
  206. package/src/surface/NativeSurface.tsx +115 -0
  207. package/src/surface/PortalLayers.tsx +574 -0
  208. package/src/surface/contexts.tsx +188 -0
  209. package/src/surface/registry.ts +109 -0
  210. package/src/surface/styles.ts +31 -0
  211. package/src/surface/types.ts +139 -0
  212. package/src/tabs/GlassTabItem.tsx +100 -0
  213. package/src/tabs/InlineTabBar.tsx +1193 -0
  214. package/src/tabs/tabConstants.ts +35 -0
  215. package/src/tabs/tabDebug.ts +29 -0
  216. package/src/tabs/tabStyles.ts +104 -0
  217. package/src/tabs/useInlineTabGesture.ts +306 -0
  218. package/src/theme/buildTheme.ts +1 -1
  219. package/android/src/main/java/expo/modules/localglass/ExpoLocalGlassModule.kt +0 -341
  220. package/android/src/main/java/expo/modules/localglass/LocalGlassShader.kt +0 -59
  221. package/android/src/main/java/expo/modules/newhuliquidglass/ExpoGlassCoreModule.kt +0 -226
  222. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/internal/GlassViewRenderer.kt +0 -1459
  223. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/HeightFieldGlassShader.kt +0 -7
  224. package/android-core/src/main/java/com/newhu/liquidglass/rendering/GlassEngineSelection.kt +0 -30
  225. package/patches/liquid-glass-kit+1.0.0.patch +0 -2015
  226. package/patches/liquid-glass-kit-invalidation-coalescing.diff +0 -249
  227. package/patches/liquid-glass-kit-native-infra.diff +0 -624
  228. package/scripts/apply-legacy-patches.mjs +0 -116
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialProvider.js","sourceRoot":"","sources":["../../../src/surface/MaterialProvider.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,GAC1B,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,WAA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nC,WAAW,EAAC,QAAQ,EACpB,cAAc,EAAE,qBAAqB,EACrC,aAAa,EAAC,MAAM,EACpB,KAAK,EAAE,UAAU,CAAC,YAAY,YAE7B,aAAa,GACO,CAC5B,CAAC,CAAC,CAAC,IAAI,EAaP,mBAAmB,CAAC,CAAC,CAAC,CACnB,8BAOI,KAAC,sBAAsB,IACnB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EACd,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,EAErE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAC1C,KAAK,EAAE,UAAU,CAAC,YAAY,YAE7B,QAAQ,GACY,EACzB,KAAC,IAAI,IAAC,aAAa,EAAC,UAAU,EAAC,KAAK,EAAE,UAAU,CAAC,YAAY,YACxD,QAAQ,GACN,IACR,CACN,CAAC,CAAC,CAAC,CACA,KAAC,sBAAsB,IACnB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EACd,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,EAErE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAC1C,KAAK,EAAE,UAAU,CAAC,YAAY,YAE7B,QAAQ,GACY,CAC5B,EACD,KAAC,uBAAuB,IAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAI,EACtE,KAAC,sBAAsB,IAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,GAAI,IAC1C,GAChC,GACwB,GACX,GACD,CAClC,CAAC;AACN,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useRef } from 'react';
3
+ import { findNodeHandle, View } from 'react-native';
4
+ import Animated from 'react-native-reanimated';
5
+ import { forwardPointerToSurface, forwardValueToSurface } from '../glassController';
6
+ import { NativeGlassCaptureSource, NativeGlassSurfaceView } from '../nativeGlassViews';
7
+ export const AnimatedNativeGlassSurfaceView = NativeGlassSurfaceView
8
+ ? Animated.createAnimatedComponent(NativeGlassSurfaceView)
9
+ : null;
10
+ export function NativeBackdropSurface({ opticsModel, sdfDisplacementMapDebug, sdfContrast, sdfBrightness, sdfSaturation, sdfOuterShadowAlpha, sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY, sdfInnerShadowAlpha, sdfInnerShadowExtent, shapeMaskText, shapeMaskFontSize, shapeMaskFontWeight, sharedPassOrder, sharedPassZIndex, pointerEventSink, valueEventSink, syncContentTransform, renderingEnabled = true, ...props }) {
11
+ const nativeViewRef = useRef(null);
12
+ useEffect(() => {
13
+ const viewTag = nativeViewRef.current ? findNodeHandle(nativeViewRef.current) : null;
14
+ if (pointerEventSink) {
15
+ pointerEventSink.current =
16
+ viewTag == null ? null : (payload) => forwardPointerToSurface(viewTag, payload);
17
+ }
18
+ if (valueEventSink) {
19
+ valueEventSink.current =
20
+ viewTag == null ? null : (payload) => forwardValueToSurface(viewTag, payload);
21
+ }
22
+ return () => {
23
+ if (pointerEventSink)
24
+ pointerEventSink.current = null;
25
+ if (valueEventSink)
26
+ valueEventSink.current = null;
27
+ };
28
+ }, [pointerEventSink, valueEventSink]);
29
+ // Android owns live backdrop optics. Other platforms keep the material fallback.
30
+ {
31
+ if (props.animatedProps == null && NativeGlassSurfaceView) {
32
+ const { animatedProps: _unused, ...staticProps } = props;
33
+ return (_jsx(NativeGlassSurfaceView, { ref: nativeViewRef, renderingEnabled: renderingEnabled, ...staticProps, sharedPassOrder: sharedPassOrder, sharedPassZIndex: sharedPassZIndex, opticsModel: opticsModel, sdfDisplacementMapDebug: sdfDisplacementMapDebug, sdfContrast: sdfContrast, sdfBrightness: sdfBrightness, sdfSaturation: sdfSaturation, sdfOuterShadowAlpha: sdfOuterShadowAlpha, sdfOuterShadowBlurRadius: sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY: sdfOuterShadowOffsetY, sdfInnerShadowAlpha: sdfInnerShadowAlpha, sdfInnerShadowExtent: sdfInnerShadowExtent, shapeMaskText: shapeMaskText, shapeMaskFontSize: shapeMaskFontSize, shapeMaskFontWeight: shapeMaskFontWeight, syncContentTransform: syncContentTransform }));
34
+ }
35
+ if (AnimatedNativeGlassSurfaceView) {
36
+ return (_jsx(AnimatedNativeGlassSurfaceView, { ref: nativeViewRef, renderingEnabled: renderingEnabled, ...props, sharedPassOrder: sharedPassOrder, sharedPassZIndex: sharedPassZIndex, opticsModel: opticsModel, sdfDisplacementMapDebug: sdfDisplacementMapDebug, sdfContrast: sdfContrast, sdfBrightness: sdfBrightness, sdfSaturation: sdfSaturation, sdfOuterShadowAlpha: sdfOuterShadowAlpha, sdfOuterShadowBlurRadius: sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY: sdfOuterShadowOffsetY, sdfInnerShadowAlpha: sdfInnerShadowAlpha, sdfInnerShadowExtent: sdfInnerShadowExtent, shapeMaskText: shapeMaskText, shapeMaskFontSize: shapeMaskFontSize, shapeMaskFontWeight: shapeMaskFontWeight, syncContentTransform: syncContentTransform }));
37
+ }
38
+ }
39
+ return _jsx(View, { ...props, style: [props.style, !renderingEnabled ? { opacity: 0 } : undefined] });
40
+ }
41
+ export function GlassCaptureSourceView({ children, ...props }) {
42
+ if (NativeGlassCaptureSource) {
43
+ return _jsx(NativeGlassCaptureSource, { ...props, children: children });
44
+ }
45
+ return _jsx(View, { ...props, children: children });
46
+ }
47
+ //# sourceMappingURL=NativeSurface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSurface.js","sourceRoot":"","sources":["../../../src/surface/NativeSurface.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OA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5B,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,wBAAwB,EAAE,wBAAwB,EAClD,qBAAqB,EAAE,qBAAqB,EAC5C,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;QACN,CAAC;IACL,CAAC;IACD,OAAO,KAAC,IAAI,OAAK,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAI,CAAC;AACrG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAA2B;IAClF,IAAI,wBAAwB,EAAE,CAAC;QAC3B,OAAO,KAAC,wBAAwB,OAAK,KAAK,YAAG,QAAQ,GAA4B,CAAC;IACtF,CAAC;IACD,OAAO,KAAC,IAAI,OAAK,KAAK,YAAG,QAAQ,GAAQ,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,292 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { useContext, useMemo } from 'react';
3
+ import { StyleSheet, View } from 'react-native';
4
+ import Animated, { useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
5
+ import { GlassRuntimeContext } from './contexts';
6
+ import { useRegistrySnapshot, selectBalancedShaderSurfaces } from './registry';
7
+ import { NativeBackdropSurface } from './NativeSurface';
8
+ import { styles } from './styles';
9
+ export function GlassSurfacePortalLayer({ registry, tokens, }) {
10
+ const entries = useRegistrySnapshot(registry);
11
+ const balancedShaderSurfaces = useMemo(() => selectBalancedShaderSurfaces(entries), [entries]);
12
+ const groups = useMemo(() => {
13
+ const list = [];
14
+ const byKey = new Map();
15
+ for (let i = 0; i < entries.length; i += 1) {
16
+ const pair = entries[i];
17
+ const entry = pair[1];
18
+ const routeId = getSharedValueId(entry.routeTransitionX);
19
+ const key = `${entry.zIndex}::${entry.scrollGroupKey}::${routeId}`;
20
+ let group = byKey.get(key);
21
+ if (!group) {
22
+ group = {
23
+ key,
24
+ zIndex: entry.zIndex,
25
+ offsets: entry.scrollOffsets,
26
+ routeTransitionX: entry.routeTransitionX,
27
+ items: [],
28
+ };
29
+ byKey.set(key, group);
30
+ list.push(group);
31
+ }
32
+ group.items.push(pair);
33
+ }
34
+ return list;
35
+ }, [entries]);
36
+ if (!tokens.enabled)
37
+ return null;
38
+ return (_jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: groups.map((group) => {
39
+ const content = group.items.map(([id, entry]) => (_jsx(PortalGlassSurface, { providerId: entry.samplingProviderId, entry: entry, drawOrder: 0, shaderEnabled: tokens.quality === 'high' ||
40
+ (tokens.quality === 'balanced' && balancedShaderSurfaces.has(id)) }, id)));
41
+ if (group.offsets.length === 0 && !group.routeTransitionX) {
42
+ return (_jsx(View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, { zIndex: group.zIndex }], children: content }, group.key));
43
+ }
44
+ return (_jsx(PortalScrollGroupContainer, { offsets: group.offsets, routeTransitionX: group.routeTransitionX, zIndex: group.zIndex, children: content }, group.key));
45
+ }) }));
46
+ }
47
+ export const sharedValueGroupIds = new WeakMap();
48
+ export let nextSharedValueGroupId = 1;
49
+ export function getSharedValueId(value) {
50
+ if (!value)
51
+ return 0;
52
+ let id = sharedValueGroupIds.get(value);
53
+ if (id == null) {
54
+ id = nextSharedValueGroupId++;
55
+ sharedValueGroupIds.set(value, id);
56
+ }
57
+ return id;
58
+ }
59
+ export const PortalScrollGroupContainer = React.memo(function PortalScrollGroupContainer({ offsets, routeTransitionX, zIndex, children, }) {
60
+ const groupTransformStyle = useAnimatedStyle(() => {
61
+ let scrollY = 0;
62
+ for (let index = 0; index < offsets.length; index += 1) {
63
+ scrollY += offsets[index].value;
64
+ }
65
+ return {
66
+ transform: [{ translateX: routeTransitionX?.value ?? 0 }, { translateY: -scrollY }],
67
+ };
68
+ }, [offsets, routeTransitionX]);
69
+ return (_jsx(Animated.View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, groupTransformStyle, { zIndex }], children: children }));
70
+ });
71
+ export function GlassRouteOverlayLayer({ registry, enabled, }) {
72
+ const entries = useRegistrySnapshot(registry);
73
+ if (!enabled)
74
+ return null;
75
+ return (_jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: entries.map(([id, entry]) => (_jsx(RouteOverlayView, { entry: entry }, id))) }));
76
+ }
77
+ export const RouteOverlayView = React.memo(function RouteOverlayView({ entry }) {
78
+ const offsets = entry.scrollOffsets;
79
+ const routeTransitionX = entry.routeTransitionX;
80
+ const scrollTransformStyle = useAnimatedStyle(() => {
81
+ let scrollY = 0;
82
+ if (offsets) {
83
+ for (let index = 0; index < offsets.length; index += 1) {
84
+ scrollY += offsets[index].value;
85
+ }
86
+ }
87
+ return {
88
+ transform: [{ translateX: routeTransitionX?.value ?? 0 }, { translateY: -scrollY }],
89
+ };
90
+ }, [offsets, routeTransitionX]);
91
+ const hasScrollOrRoute = (offsets != null && offsets.length > 0) || routeTransitionX != null;
92
+ return (_jsx(Animated.View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, entry.style, { zIndex: entry.zIndex }], children: entry.frame ? (_jsx(Animated.View, { pointerEvents: "box-none", style: [
93
+ {
94
+ position: 'absolute',
95
+ left: entry.frame.x,
96
+ top: entry.frame.y,
97
+ width: entry.frame.width,
98
+ height: entry.frame.height,
99
+ },
100
+ hasScrollOrRoute ? scrollTransformStyle : undefined,
101
+ entry.portalOffsetStyle,
102
+ ], children: entry.children })) : (entry.children) }));
103
+ });
104
+ export const PortalGlassSurface = React.memo(function PortalGlassSurface({ providerId, entry, drawOrder, shaderEnabled, }) {
105
+ const runtime = useContext(GlassRuntimeContext);
106
+ const opticalProgress = entry.opticalProgress;
107
+ const pointerEvent = entry.pointerEvent;
108
+ const pointerEventValue = entry.pointerEventValue;
109
+ const pointerEventSink = entry.pointerEventSink;
110
+ const valueEvent = entry.valueEvent;
111
+ const valueEventSink = entry.valueEventSink;
112
+ const opticalToggleFraction = entry.opticalToggleFraction;
113
+ const opticalProgressValue = entry.opticalProgressValue;
114
+ const opticalPointX = entry.opticalPointX;
115
+ const opticalPointY = entry.opticalPointY;
116
+ const opticalVelocityX = entry.opticalVelocityX;
117
+ const opticalVelocityY = entry.opticalVelocityY;
118
+ const opticalMotionX = entry.opticalMotionX;
119
+ const opticalMotionY = entry.opticalMotionY;
120
+ const hasAnimatedOptics = Boolean(opticalPointX ||
121
+ opticalPointY ||
122
+ opticalVelocityX ||
123
+ opticalVelocityY ||
124
+ opticalProgressValue != null ||
125
+ opticalProgress ||
126
+ opticalToggleFraction ||
127
+ opticalMotionX ||
128
+ opticalMotionY);
129
+ const animatedOptics = useAnimatedProps(() => ({
130
+ interactionVelocityX: opticalVelocityX?.value,
131
+ interactionVelocityY: opticalVelocityY?.value,
132
+ interactionPointX: opticalPointX?.value,
133
+ interactionPointY: opticalPointY?.value,
134
+ interactionProgress: opticalProgressValue ?? opticalProgress?.value ?? 0,
135
+ toggleFraction: opticalToggleFraction?.value ?? 0,
136
+ motionX: opticalMotionX ? Math.max(-1, Math.min(1, opticalMotionX.value / 1800)) : undefined,
137
+ motionY: opticalMotionY ? Math.max(-1, Math.min(1, opticalMotionY.value / 1800)) : undefined,
138
+ }), [
139
+ opticalPointX,
140
+ opticalPointY,
141
+ opticalVelocityX,
142
+ opticalVelocityY,
143
+ opticalProgress,
144
+ pointerEventValue,
145
+ valueEvent,
146
+ opticalToggleFraction,
147
+ opticalProgressValue,
148
+ opticalMotionX,
149
+ opticalMotionY,
150
+ ]);
151
+ if (!runtime)
152
+ return null;
153
+ const { tokens, dark, reducedMotion } = runtime;
154
+ // Backdrop glass is drawn in a sibling overlay, above the actual control.
155
+ // Some native render backends still participate in Android hit testing even
156
+ // with pointerEvents="none" on the native view itself, so make the whole
157
+ // portal subtree untargetable for passive lenses. Keep box-none where its
158
+ // React content or an explicitly interactive surface needs to receive input.
159
+ const portalPointerEvents = entry.interactive || entry.portalContent || entry.contentAboveGlass ? 'box-none' : 'none';
160
+ const material = entry.materialOverrides
161
+ ? { ...tokens.materials[entry.variant], ...entry.materialOverrides }
162
+ : tokens.materials[entry.variant];
163
+ const qualityScale = material.opticsModel === 'referenceParity'
164
+ ? 1
165
+ : tokens.quality === 'high'
166
+ ? 1.2
167
+ : tokens.quality === 'fallback'
168
+ ? 0.45
169
+ : 1;
170
+ if (!shaderEnabled)
171
+ return _jsx(PortalFallbackSurface, { entry: entry });
172
+ const nativeSurface = (_jsx(NativeBackdropSurface, { providerId: providerId, sharedPassZIndex: entry.zIndex, sharedPassOrder: drawOrder, opticsModel: material.opticsModel, shapeMaskText: entry.shapeMaskText, shapeMaskFontSize: entry.shapeMaskFontSize, shapeMaskFontWeight: entry.shapeMaskFontWeight, progressiveBlurIntensity: entry.progressiveBlurIntensity, depthEffect: material.referenceDepthEffect ?? false, highlightStyle: material.referenceHighlightStyle, interactionProfile: material.referenceInteractionProfile, contentScaleX: material.referenceContentScaleX, contentScaleY: material.referenceContentScaleY, sampleOffsetX: material.referenceSampleOffsetX, sampleOffsetY: material.referenceSampleOffsetY, toggleTrackColorOff: material.referenceToggleTrackColorOff, toggleTrackColorOn: material.referenceToggleTrackColorOn, toggleTrackWidth: material.referenceToggleTrackWidth, toggleTrackHeight: material.referenceToggleTrackHeight, toggleSolidBackdropColor: material.referenceToggleSolidBackdropColor, brightness: material.brightness ?? 0, contrast: material.contrast ?? 1, highlightFalloff: material.highlightFalloff ?? 1, sdfContrast: material.sdfScaleLens?.contrast, sdfBrightness: material.sdfScaleLens?.brightness, sdfSaturation: material.sdfScaleLens?.saturation, sdfOuterShadowAlpha: material.sdfScaleLens?.outerShadowAlpha, sdfOuterShadowBlurRadius: material.sdfScaleLens?.outerShadowBlurRadius, sdfOuterShadowOffsetY: material.sdfScaleLens?.outerShadowOffsetY, sdfInnerShadowAlpha: material.sdfScaleLens?.innerShadowAlpha, sdfInnerShadowExtent: material.sdfScaleLens?.innerShadowExtent, cornerRadius: material.radius, blurRadius: material.blurRadius * qualityScale, refractionHeight: material.refractionHeight * qualityScale, refractionAmount: material.refractionAmount * qualityScale, bodyRefractionAmount: (material.refractionBodyAmount ?? 2.5) * qualityScale, interactionProgress: opticalProgressValue ?? 0,
173
+ // The pointer stream must be a real prop, not only an animated one:
174
+ // Reanimated's animatedProps path does not reach an Expo Modules view's
175
+ // prop setter, so a gesture sent only there is silently dropped and the
176
+ // native driver never sees a single event.
177
+ pointerEvent: entry.pointerEventValue, pointerEventSink: pointerEventSink, valueEvent: entry.valueEvent, valueEventSink: valueEventSink, saturation: material.saturation, chromaticAberration: material.opticsModel === 'referenceParity' ||
178
+ tokens.quality === 'high' ||
179
+ entry.variant === 'tabSelectionLens'
180
+ ? material.chromaticAberration
181
+ : 0, highlightAlpha: material.highlightAlpha, highlightWidth: material.highlightWidth, lightAngle: material.highlightAngle ?? 45, highlightColor: material.highlightColor
182
+ ? dark
183
+ ? material.highlightColor.dark
184
+ : material.highlightColor.light
185
+ : undefined, tintAlpha: material.tintAlpha ?? 1, specularStrength: material.specularStrength ?? 1, fresnelStrength: material.fresnelStrength ?? 0.85, innerShadowStrength: material.innerShadowStrength ?? (material.opticsModel === 'referenceParity' ? 0 : 0.18), shadowOpacity: material.shadowOpacity ?? (material.opticsModel === 'referenceParity' ? 0 : 0.1), shadowRadius: material.shadowRadius ?? (material.opticsModel === 'referenceParity' ? 0 : 24), shadowOffsetY: material.shadowOffsetY ?? (material.opticsModel === 'referenceParity' ? 0 : 4), tint: entry.tintColor ?? (dark ? tokens.tint.dark : tokens.tint.light), surfaceColor: material.surfaceColor
186
+ ? dark
187
+ ? material.surfaceColor.dark
188
+ : material.surfaceColor.light
189
+ : undefined, interactive: entry.interactive && tokens.interaction.enabled && !reducedMotion, pointerEvents: entry.interactive && tokens.interaction.enabled && !reducedMotion ? 'auto' : 'none', continuous: entry.continuous, sharedSource: entry.sharedSource, captureProbe: entry.captureProbe, motionX: undefined, motionY: undefined, displacementOnlyDebug: entry.displacementOnlyDebug, syncContentTransform: entry.syncContentTransform, animatedProps: hasAnimatedOptics ? animatedOptics : undefined, style: [
190
+ styles.nativeSurface,
191
+ entry.placement === 'layout'
192
+ ? StyleSheet.absoluteFill
193
+ : { width: entry.frame.width > 0 ? entry.frame.width : undefined },
194
+ { borderRadius: material.radius },
195
+ ] }));
196
+ if (entry.placement === 'bottom' || entry.placement === 'center') {
197
+ const hasMotion = entry.animatedStyle != null || entry.portalOffsetStyle != null;
198
+ if (!hasMotion) {
199
+ return (_jsx(View, { pointerEvents: portalPointerEvents, style: [
200
+ StyleSheet.absoluteFill,
201
+ entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
202
+ entry.placement === 'bottom' && entry.bottomInset != null
203
+ ? { paddingBottom: entry.bottomInset }
204
+ : undefined,
205
+ ], children: nativeSurface }));
206
+ }
207
+ return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
208
+ StyleSheet.absoluteFill,
209
+ entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
210
+ entry.placement === 'bottom' && entry.bottomInset != null
211
+ ? { paddingBottom: entry.bottomInset }
212
+ : undefined,
213
+ entry.animatedStyle,
214
+ entry.portalOffsetStyle,
215
+ ], children: nativeSurface }));
216
+ }
217
+ const portalContent = entry.portalContent && entry.placement === 'layout' ? (_jsx(View, { pointerEvents: "box-none", accessible: false, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: [
218
+ StyleSheet.absoluteFill,
219
+ styles.portalContentOverlay,
220
+ { borderRadius: material.radius },
221
+ ], children: entry.portalContent })) : null;
222
+ const innerContent = (_jsxs(_Fragment, { children: [nativeSurface, entry.contentAboveGlass && entry.content ? (_jsx(View, { pointerEvents: "box-none", style: [
223
+ StyleSheet.absoluteFill,
224
+ { borderRadius: material.radius },
225
+ styles.contentAboveGlass,
226
+ ], children: _jsx(View, { style: entry.contentStyle, children: entry.content }) })) : null, portalContent] }));
227
+ const hasMotion = (entry.positioning === 'floating' && entry.animatedStyle != null) || entry.portalOffsetStyle != null;
228
+ if (!hasMotion) {
229
+ return (_jsx(View, { pointerEvents: portalPointerEvents, collapsable: !entry.syncContentTransform, style: [
230
+ styles.portalSurface,
231
+ {
232
+ left: entry.frame.x,
233
+ top: entry.frame.y,
234
+ width: entry.frame.width,
235
+ height: entry.frame.height,
236
+ },
237
+ ], children: innerContent }));
238
+ }
239
+ return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, collapsable: !entry.syncContentTransform, style: [
240
+ styles.portalSurface,
241
+ {
242
+ left: entry.frame.x,
243
+ top: entry.frame.y,
244
+ width: entry.frame.width,
245
+ height: entry.frame.height,
246
+ },
247
+ entry.positioning === 'floating' ? entry.animatedStyle : undefined,
248
+ entry.portalOffsetStyle,
249
+ ], children: innerContent }));
250
+ });
251
+ export const PortalFallbackSurface = React.memo(function PortalFallbackSurface({ entry, }) {
252
+ const runtime = useContext(GlassRuntimeContext);
253
+ if (!runtime)
254
+ return null;
255
+ const { tokens, dark } = runtime;
256
+ const portalPointerEvents = entry.interactive || entry.portalContent || entry.contentAboveGlass ? 'box-none' : 'none';
257
+ const material = tokens.materials[entry.variant];
258
+ const fallbackSurface = (_jsx(View, { pointerEvents: "none", style: [
259
+ styles.fallbackSurface,
260
+ entry.placement === 'layout'
261
+ ? StyleSheet.absoluteFill
262
+ : { width: entry.frame.width > 0 ? entry.frame.width : undefined },
263
+ {
264
+ backgroundColor: dark ? tokens.fallbackTint.dark : tokens.fallbackTint.light,
265
+ borderColor: dark ? tokens.fallbackBorder.dark : tokens.fallbackBorder.light,
266
+ borderRadius: material.radius,
267
+ },
268
+ ] }));
269
+ if (entry.placement === 'bottom' || entry.placement === 'center') {
270
+ return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
271
+ StyleSheet.absoluteFill,
272
+ entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
273
+ entry.placement === 'bottom' && entry.bottomInset != null
274
+ ? { paddingBottom: entry.bottomInset }
275
+ : undefined,
276
+ entry.animatedStyle,
277
+ entry.portalOffsetStyle,
278
+ ], children: fallbackSurface }));
279
+ }
280
+ return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
281
+ styles.portalSurface,
282
+ {
283
+ left: entry.frame.x,
284
+ top: entry.frame.y,
285
+ width: entry.frame.width,
286
+ height: entry.frame.height,
287
+ },
288
+ entry.animatedStyle,
289
+ entry.portalOffsetStyle,
290
+ ], children: fallbackSurface }));
291
+ });
292
+ //# sourceMappingURL=PortalLayers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PortalLayers.js","sourceRoot":"","sources":["../../../src/surface/PortalLayers.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,QAAQ,EAAE,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,UAAU,uBAAuB,CAAC,EACpC,QAAQ,EACR,MAAM,GAIT;IACG,MAAM,OAAO,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC9C,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC,O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AC,QAAQ,CAAC,IAAI,IACV,aAAa,EAAE,mBAAmB,EAClC,KAAK,EAAE;gBACH,UAAU,CAAC,YAAY;gBACvB,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe;gBAC9E,KAAK,CAAC,SAAS,KAAK,QAAQ,IAAI,KAAK,CAAC,WAAW,IAAI,IAAI;oBACrD,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,CAAC,WAAW,EAAE;oBACtC,CAAC,CAAC,SAAS;gBACf,KAAK,CAAC,aAAa;gBACnB,KAAK,CAAC,iBAAiB;aAC1B,YAEA,eAAe,GACJ,CACnB,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,QAAQ,CAAC,IAAI,IACV,aAAa,EAAE,mBAAmB,EAClC,KAAK,EAAE;YACH,MAAM,CAAC,aAAa;YACpB;gBACI,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACnB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAClB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK;gBACxB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;aAC7B;YACD,KAAK,CAAC,aAAa;YACnB,KAAK,CAAC,iBAAiB;SAC1B,YAEA,eAAe,GACJ,CACnB,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { createContext, useContext, useId, useMemo } from 'react';
3
+ import { Platform } from 'react-native';
4
+ import { GlassCaptureSourceView } from './NativeSurface';
5
+ import { styles } from './styles';
6
+ export const GlassRuntimeContext = createContext(null);
7
+ export const GlassCaptureSourceContext = createContext(null);
8
+ export const GlassRouteTransitionContext = createContext(null);
9
+ export const GlassPortalScrollContext = createContext({ offsets: [], layoutRevision: 0, groupKey: '' });
10
+ export const GlassMeasureOnlyContext = createContext(false);
11
+ /** Keeps backdrop surfaces aligned with content inside a scroll container. */
12
+ export function GlassPortalScrollScope({ scrollOffset, layoutRevision = 0, children, }) {
13
+ const scopeId = useId();
14
+ const parent = useContext(GlassPortalScrollContext);
15
+ const value = useMemo(() => ({
16
+ offsets: [...parent.offsets, scrollOffset],
17
+ layoutRevision: parent.layoutRevision + layoutRevision,
18
+ groupKey: parent.groupKey ? `${parent.groupKey}|${scopeId}` : scopeId,
19
+ }), [layoutRevision, parent, scopeId, scrollOffset]);
20
+ return _jsx(GlassPortalScrollContext.Provider, { value: value, children: children });
21
+ }
22
+ /**
23
+ * Shares a route's horizontal transition with portaled glass surfaces.
24
+ * Backdrop surfaces live in a host-level overlay, so an ancestor transform is
25
+ * not inherited automatically. This scope keeps their window frames and the
26
+ * visible React Native content on the same animation value.
27
+ */
28
+ export function GlassRouteTransitionScope({ translateX, children, }) {
29
+ return (_jsx(GlassRouteTransitionContext.Provider, { value: translateX, children: children }));
30
+ }
31
+ export function useGlassReducedMotion() {
32
+ return useContext(GlassRuntimeContext)?.reducedMotion ?? false;
33
+ }
34
+ export function useGlassInsideScroll() {
35
+ return useContext(GlassPortalScrollContext).offsets.length > 0;
36
+ }
37
+ export function useGlassInsideCaptureScope() {
38
+ return useContext(GlassCaptureSourceContext) !== null;
39
+ }
40
+ export function useGlassAppearance() {
41
+ return useContext(GlassRuntimeContext);
42
+ }
43
+ /** Resolve the provider that represents the visible scene for a glass consumer. */
44
+ export function useGlassSamplingProviderId(source = 'routeScene') {
45
+ const host = useContext(GlassHostContext);
46
+ const captureSourceProviderId = useContext(GlassCaptureSourceContext);
47
+ if (!host)
48
+ return null;
49
+ return source === 'themeBackdrop'
50
+ ? host.themeBackdropProviderId
51
+ : (captureSourceProviderId ?? host.routeSceneProviderId ?? host.themeBackdropProviderId);
52
+ }
53
+ export const GlassHostContext = createContext(null);
54
+ export function RouteGlassCaptureScope({ children, active = true, scopeId = 'page-content', }) {
55
+ const host = useContext(GlassHostContext);
56
+ const parentActive = useContext(GlassScopeActiveContext);
57
+ const parentProviderId = useContext(GlassCaptureSourceContext);
58
+ const baseId = parentProviderId ?? host?.providerId ?? null;
59
+ const providerId = baseId ? `${baseId}:${scopeId}` : null;
60
+ return (_jsx(GlassScopeActiveContext.Provider, { value: active && parentActive, children: _jsx(GlassCaptureSourceContext.Provider, { value: providerId, children: children }) }));
61
+ }
62
+ export function RouteGlassCaptureSource({ children, captureMode, captureOnly = false, sourceRevision, underlayProviderId, style, }) {
63
+ const host = useContext(GlassHostContext);
64
+ const runtime = useContext(GlassRuntimeContext);
65
+ const scopedProviderId = useContext(GlassCaptureSourceContext);
66
+ const scopeActive = useContext(GlassScopeActiveContext);
67
+ const inactiveId = useId();
68
+ // Pager siblings share a route-scene alias. A hidden page must retain its
69
+ // native tree without replacing the visible page in the provider registry.
70
+ const providerId = !scopeActive && scopedProviderId ? `${scopedProviderId}:inactive:${inactiveId}` : scopedProviderId;
71
+ if (!host || !providerId || !runtime?.tokens.enabled)
72
+ return _jsx(_Fragment, { children: children });
73
+ const resolvedCaptureMode = !scopeActive
74
+ ? 'frozen'
75
+ : (captureMode ?? (Platform.OS === 'android' ? 'oneShotPassThrough' : 'live'));
76
+ const resolvedUnderlay = underlayProviderId === null
77
+ ? undefined
78
+ : (underlayProviderId ?? host.routeSceneProviderId ?? host.themeBackdropProviderId);
79
+ return (_jsx(GlassCaptureSourceView, { providerId: providerId, underlayProviderId: resolvedUnderlay, captureMode: resolvedCaptureMode, captureOnly: captureOnly, sourceRevision: sourceRevision, pointerEvents: "box-none", style: [styles.captureSource, style], children: children }));
80
+ }
81
+ export const GlassOverlayHostContext = createContext(null);
82
+ /**
83
+ * Page-level scope for glass surfaces.
84
+ *
85
+ * Every page under a PagerView shares one provider id (`host.providerId +
86
+ * ':page-content'`) and one registry, and GlassSurfacePortalLayer draws every
87
+ * registered entry in a provider-level layer above page content. So a kept-alive
88
+ * page's surfaces paint on top of whichever page is actually visible: on Home
89
+ * that showed up as an empty 344x55dp panel under the search bar, which turned
90
+ * out to be the User page's segmented control.
91
+ *
92
+ * A surface whose scope is inactive stops publishing. Layout is untouched; only
93
+ * the registry entry goes away, so nothing is drawn for it.
94
+ */
95
+ export const GlassScopeActiveContext = createContext(true);
96
+ //# sourceMappingURL=contexts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../../src/surface/contexts.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAsB,IAAI,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAgB,IAAI,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAA6B,IAAI,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAIlD,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;AAErD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAU,KAAK,CAAC,CAAC;AAErE,8EAA8E;AAC9E,MAAM,UAAU,sBAAsB,CAAC,EACnC,YAAY,EACZ,cAAc,GAAG,CAAC,EAClB,QAAQ,GAMX;IACG,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;IACxB,MAAM,MAAM,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,OAAO,CACjB,GAAG,EAAE,CAAC,CAAC;QACH,OAAO,EAAE,CAAC,GAAG,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();
5
+ let snapshot = [];
6
+ const publish = () => {
7
+ snapshot = Array.from(entries.entries());
8
+ for (const listener of listeners)
9
+ listener();
10
+ };
11
+ return {
12
+ getSnapshot: () => snapshot,
13
+ subscribe: (listener) => {
14
+ listeners.add(listener);
15
+ return () => listeners.delete(listener);
16
+ },
17
+ update: (id, entry, equals) => {
18
+ const previous = entries.get(id);
19
+ if (previous !== undefined && equals(previous, entry))
20
+ return;
21
+ entries.set(id, entry);
22
+ publish();
23
+ },
24
+ remove: (id) => {
25
+ if (!entries.delete(id))
26
+ return;
27
+ publish();
28
+ },
29
+ };
30
+ }
31
+ export function useRegistrySnapshot(registry) {
32
+ return React.useSyncExternalStore(registry.subscribe, registry.getSnapshot, registry.getSnapshot);
33
+ }
34
+ export function sameSurface(previous, next) {
35
+ return (previous.frame.x === next.frame.x &&
36
+ previous.frame.y === next.frame.y &&
37
+ previous.frame.width === next.frame.width &&
38
+ previous.frame.height === next.frame.height &&
39
+ previous.positioning === next.positioning &&
40
+ previous.samplingSource === next.samplingSource &&
41
+ previous.samplingProviderId === next.samplingProviderId &&
42
+ previous.tintColor === next.tintColor &&
43
+ previous.portalContent === next.portalContent &&
44
+ previous.contentAboveGlass === next.contentAboveGlass &&
45
+ previous.content === next.content &&
46
+ previous.contentStyle === next.contentStyle &&
47
+ previous.variant === next.variant &&
48
+ previous.interactive === next.interactive &&
49
+ previous.continuous === next.continuous &&
50
+ previous.sharedSource === next.sharedSource &&
51
+ previous.captureProbe === next.captureProbe &&
52
+ previous.opticalProgress === next.opticalProgress &&
53
+ previous.scrollGroupKey === next.scrollGroupKey &&
54
+ previous.scrollOffsets === next.scrollOffsets &&
55
+ previous.routeTransitionX === next.routeTransitionX &&
56
+ previous.portalOffsetStyle === next.portalOffsetStyle &&
57
+ previous.portalTranslateX === next.portalTranslateX &&
58
+ previous.portalTranslateY === next.portalTranslateY &&
59
+ previous.portalScaleX === next.portalScaleX &&
60
+ previous.portalScaleY === next.portalScaleY &&
61
+ previous.pointerEvent === next.pointerEvent &&
62
+ previous.pointerEventValue === next.pointerEventValue &&
63
+ previous.pointerEventSink === next.pointerEventSink &&
64
+ previous.valueEvent === next.valueEvent &&
65
+ previous.valueEventSink === next.valueEventSink &&
66
+ previous.opticalToggleFraction === next.opticalToggleFraction &&
67
+ previous.opticalProgressValue === next.opticalProgressValue &&
68
+ previous.opticalPointX === next.opticalPointX &&
69
+ previous.opticalPointY === next.opticalPointY &&
70
+ previous.opticalMotionX === next.opticalMotionX &&
71
+ previous.opticalMotionY === next.opticalMotionY &&
72
+ previous.opticalVelocityX === next.opticalVelocityX &&
73
+ previous.opticalVelocityY === next.opticalVelocityY &&
74
+ previous.materialOverrides === next.materialOverrides &&
75
+ previous.displacementOnlyDebug === next.displacementOnlyDebug &&
76
+ previous.syncContentTransform === next.syncContentTransform &&
77
+ previous.shapeMaskText === next.shapeMaskText &&
78
+ previous.shapeMaskFontSize === next.shapeMaskFontSize &&
79
+ previous.shapeMaskFontWeight === next.shapeMaskFontWeight &&
80
+ previous.progressiveBlurIntensity === next.progressiveBlurIntensity &&
81
+ previous.animatedStyle === next.animatedStyle &&
82
+ previous.placement === next.placement &&
83
+ previous.bottomInset === next.bottomInset &&
84
+ previous.zIndex === next.zIndex);
85
+ }
86
+ export function sameOverlay(previous, next) {
87
+ return (previous.children === next.children &&
88
+ previous.style === next.style &&
89
+ previous.frame?.x === next.frame?.x &&
90
+ previous.frame?.y === next.frame?.y &&
91
+ previous.frame?.width === next.frame?.width &&
92
+ previous.frame?.height === next.frame?.height &&
93
+ previous.scrollOffsets === next.scrollOffsets &&
94
+ previous.routeTransitionX === next.routeTransitionX &&
95
+ previous.portalOffsetStyle === next.portalOffsetStyle &&
96
+ previous.zIndex === next.zIndex);
97
+ }
98
+ export function selectBalancedShaderSurfaces(entries) {
99
+ // Every mounted backdrop surface keeps the same renderer regardless of
100
+ // quality preset; display cadence is selected by the native provider.
101
+ return new Set(entries.map(([id]) => id));
102
+ }
103
+ //# sourceMappingURL=registry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