react-native-smooth-clip-view 0.2.9 → 0.4.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 (193) hide show
  1. package/README.md +132 -349
  2. package/android/build.gradle +8 -4
  3. package/android/proguard-rules.pro +3 -3
  4. package/android/src/main/cpp/SmoothClipAndroid.h +13 -6
  5. package/android/src/main/cpp/SmoothClipBindings.cpp +605 -123
  6. package/android/src/main/cpp/SmoothClipRegistry.cpp +975 -209
  7. package/android/src/main/java/com/smoothclipview/ClipGeometryNormalizer.kt +192 -118
  8. package/android/src/main/java/com/smoothclipview/SmoothClipBindings.kt +22 -4
  9. package/android/src/main/java/com/smoothclipview/SmoothClipModule.kt +81 -56
  10. package/android/src/main/java/com/smoothclipview/SmoothClipView.kt +449 -240
  11. package/android/src/main/java/com/smoothclipview/SmoothClipViewManager.kt +150 -38
  12. package/cpp/SmoothClipAnimationCurve.h +317 -397
  13. package/cpp/SmoothClipRegistry.h +84 -20
  14. package/cpp/SmoothClipSharedGeometry.h +131 -22
  15. package/cpp/SmoothClipVelocityTracker.h +16 -12
  16. package/ios/SmoothClipGeometry.h +188 -21
  17. package/ios/SmoothClipRegistry.mm +869 -368
  18. package/ios/SmoothClipRegistrySnapshot.h +13 -0
  19. package/ios/SmoothClipTurboModule.cpp +513 -156
  20. package/ios/SmoothClipTurboModule.h +123 -56
  21. package/ios/SmoothClipView.mm +1074 -449
  22. package/ios/SmoothClipViewRegistry.h +3 -7
  23. package/ios/reactnativesmoothclipview.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  24. package/ios/reactnativesmoothclipview.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  25. package/lib/module/NativeSmoothClipModule.js.map +1 -1
  26. package/lib/module/SmoothClipView.ios.js +94 -11
  27. package/lib/module/SmoothClipView.ios.js.map +1 -1
  28. package/lib/module/SmoothClipView.js +1 -46
  29. package/lib/module/SmoothClipView.js.map +1 -1
  30. package/lib/module/SmoothClipViewNativeComponent.ts +32 -12
  31. package/lib/module/capabilities.js +4 -0
  32. package/lib/module/capabilities.js.map +1 -0
  33. package/lib/module/capabilities.native.js +18 -0
  34. package/lib/module/capabilities.native.js.map +1 -0
  35. package/lib/module/capabilityTypes.js +2 -0
  36. package/lib/module/capabilityTypes.js.map +1 -0
  37. package/lib/module/controllerInternals.js +28 -0
  38. package/lib/module/controllerInternals.js.map +1 -0
  39. package/lib/module/controllerLifecycle.js +9 -0
  40. package/lib/module/controllerLifecycle.js.map +1 -0
  41. package/lib/module/controllerTypes.js +4 -0
  42. package/lib/module/controllerTypes.js.map +1 -0
  43. package/lib/module/controllers.android.js +4 -0
  44. package/lib/module/controllers.android.js.map +1 -0
  45. package/lib/module/controllers.ios.js +4 -0
  46. package/lib/module/controllers.ios.js.map +1 -0
  47. package/lib/module/controllers.js +4 -0
  48. package/lib/module/controllers.js.map +1 -0
  49. package/lib/module/controllers.native.js +89 -0
  50. package/lib/module/controllers.native.js.map +1 -0
  51. package/lib/module/geometry.js +180 -30
  52. package/lib/module/geometry.js.map +1 -1
  53. package/lib/module/groupTypes.js +4 -0
  54. package/lib/module/groupTypes.js.map +1 -0
  55. package/lib/module/groups.android.js +4 -0
  56. package/lib/module/groups.android.js.map +1 -0
  57. package/lib/module/groups.ios.js +4 -0
  58. package/lib/module/groups.ios.js.map +1 -0
  59. package/lib/module/groups.js +4 -0
  60. package/lib/module/groups.js.map +1 -0
  61. package/lib/module/groups.native.js +399 -0
  62. package/lib/module/groups.native.js.map +1 -0
  63. package/lib/module/ids.js +8 -0
  64. package/lib/module/ids.js.map +1 -0
  65. package/lib/module/index.js +4 -3
  66. package/lib/module/index.js.map +1 -1
  67. package/lib/module/nativeCompletion.js +37 -16
  68. package/lib/module/nativeCompletion.js.map +1 -1
  69. package/lib/module/presentationCodec.js +81 -0
  70. package/lib/module/presentationCodec.js.map +1 -0
  71. package/lib/typescript/src/NativeSmoothClipModule.d.ts +20 -4
  72. package/lib/typescript/src/NativeSmoothClipModule.d.ts.map +1 -1
  73. package/lib/typescript/src/SmoothClipView.d.ts +2 -10
  74. package/lib/typescript/src/SmoothClipView.d.ts.map +1 -1
  75. package/lib/typescript/src/SmoothClipView.ios.d.ts +139 -4
  76. package/lib/typescript/src/SmoothClipView.ios.d.ts.map +1 -1
  77. package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts +16 -3
  78. package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts.map +1 -1
  79. package/lib/typescript/src/capabilities.d.ts +3 -0
  80. package/lib/typescript/src/capabilities.d.ts.map +1 -0
  81. package/lib/typescript/src/capabilities.native.d.ts +3 -0
  82. package/lib/typescript/src/capabilities.native.d.ts.map +1 -0
  83. package/lib/typescript/src/capabilityTypes.d.ts +4 -0
  84. package/lib/typescript/src/capabilityTypes.d.ts.map +1 -0
  85. package/lib/typescript/src/controllerInternals.d.ts +14 -0
  86. package/lib/typescript/src/controllerInternals.d.ts.map +1 -0
  87. package/lib/typescript/src/controllerLifecycle.d.ts +3 -0
  88. package/lib/typescript/src/controllerLifecycle.d.ts.map +1 -0
  89. package/lib/typescript/src/controllerTypes.d.ts +62 -0
  90. package/lib/typescript/src/controllerTypes.d.ts.map +1 -0
  91. package/lib/typescript/src/controllers.android.d.ts +2 -0
  92. package/lib/typescript/src/controllers.android.d.ts.map +1 -0
  93. package/lib/typescript/src/controllers.d.ts +2 -0
  94. package/lib/typescript/src/controllers.d.ts.map +1 -0
  95. package/lib/typescript/src/controllers.ios.d.ts +2 -0
  96. package/lib/typescript/src/controllers.ios.d.ts.map +1 -0
  97. package/lib/typescript/src/controllers.native.d.ts +3 -0
  98. package/lib/typescript/src/controllers.native.d.ts.map +1 -0
  99. package/lib/typescript/src/geometry.d.ts +49 -5
  100. package/lib/typescript/src/geometry.d.ts.map +1 -1
  101. package/lib/typescript/src/groupTypes.d.ts +31 -0
  102. package/lib/typescript/src/groupTypes.d.ts.map +1 -0
  103. package/lib/typescript/src/groups.android.d.ts +2 -0
  104. package/lib/typescript/src/groups.android.d.ts.map +1 -0
  105. package/lib/typescript/src/groups.d.ts +2 -0
  106. package/lib/typescript/src/groups.d.ts.map +1 -0
  107. package/lib/typescript/src/groups.ios.d.ts +2 -0
  108. package/lib/typescript/src/groups.ios.d.ts.map +1 -0
  109. package/lib/typescript/src/groups.native.d.ts +3 -0
  110. package/lib/typescript/src/groups.native.d.ts.map +1 -0
  111. package/lib/typescript/src/ids.d.ts +2 -0
  112. package/lib/typescript/src/ids.d.ts.map +1 -0
  113. package/lib/typescript/src/index.d.ts +8 -5
  114. package/lib/typescript/src/index.d.ts.map +1 -1
  115. package/lib/typescript/src/nativeCompletion.d.ts +16 -6
  116. package/lib/typescript/src/nativeCompletion.d.ts.map +1 -1
  117. package/lib/typescript/src/presentationCodec.d.ts +10 -0
  118. package/lib/typescript/src/presentationCodec.d.ts.map +1 -0
  119. package/package.json +17 -13
  120. package/src/NativeSmoothClipModule.ts +80 -56
  121. package/src/SmoothClipView.ios.tsx +142 -16
  122. package/src/SmoothClipView.tsx +6 -76
  123. package/src/SmoothClipViewNativeComponent.ts +32 -12
  124. package/src/capabilities.native.ts +19 -0
  125. package/src/capabilities.ts +2 -0
  126. package/src/capabilityTypes.ts +3 -0
  127. package/src/controllerInternals.ts +52 -0
  128. package/src/controllerLifecycle.ts +6 -0
  129. package/src/controllerTypes.ts +87 -0
  130. package/src/controllers.android.ts +1 -0
  131. package/src/controllers.ios.ts +1 -0
  132. package/src/controllers.native.ts +104 -0
  133. package/src/controllers.ts +1 -0
  134. package/src/geometry.ts +293 -45
  135. package/src/groupTypes.ts +53 -0
  136. package/src/groups.android.ts +1 -0
  137. package/src/groups.ios.ts +1 -0
  138. package/src/groups.native.ts +604 -0
  139. package/src/groups.ts +1 -0
  140. package/src/ids.ts +6 -0
  141. package/src/index.ts +32 -12
  142. package/src/nativeCompletion.ts +67 -32
  143. package/src/presentationCodec.ts +134 -0
  144. package/lib/module/SmoothClipView.web.js +0 -54
  145. package/lib/module/SmoothClipView.web.js.map +0 -1
  146. package/lib/module/driverState.js +0 -110
  147. package/lib/module/driverState.js.map +0 -1
  148. package/lib/module/driverTypes.js +0 -4
  149. package/lib/module/driverTypes.js.map +0 -1
  150. package/lib/module/drivers.android.js +0 -6
  151. package/lib/module/drivers.android.js.map +0 -1
  152. package/lib/module/drivers.ios.js +0 -6
  153. package/lib/module/drivers.ios.js.map +0 -1
  154. package/lib/module/drivers.js +0 -284
  155. package/lib/module/drivers.js.map +0 -1
  156. package/lib/module/drivers.native.js +0 -556
  157. package/lib/module/drivers.native.js.map +0 -1
  158. package/lib/module/index.web.js +0 -8
  159. package/lib/module/index.web.js.map +0 -1
  160. package/lib/module/reactRequests.js +0 -56
  161. package/lib/module/reactRequests.js.map +0 -1
  162. package/lib/module/webClipPath.js +0 -25
  163. package/lib/module/webClipPath.js.map +0 -1
  164. package/lib/typescript/src/SmoothClipView.web.d.ts +0 -10
  165. package/lib/typescript/src/SmoothClipView.web.d.ts.map +0 -1
  166. package/lib/typescript/src/driverState.d.ts +0 -31
  167. package/lib/typescript/src/driverState.d.ts.map +0 -1
  168. package/lib/typescript/src/driverTypes.d.ts +0 -107
  169. package/lib/typescript/src/driverTypes.d.ts.map +0 -1
  170. package/lib/typescript/src/drivers.android.d.ts +0 -3
  171. package/lib/typescript/src/drivers.android.d.ts.map +0 -1
  172. package/lib/typescript/src/drivers.d.ts +0 -5
  173. package/lib/typescript/src/drivers.d.ts.map +0 -1
  174. package/lib/typescript/src/drivers.ios.d.ts +0 -3
  175. package/lib/typescript/src/drivers.ios.d.ts.map +0 -1
  176. package/lib/typescript/src/drivers.native.d.ts +0 -5
  177. package/lib/typescript/src/drivers.native.d.ts.map +0 -1
  178. package/lib/typescript/src/index.web.d.ts +0 -9
  179. package/lib/typescript/src/index.web.d.ts.map +0 -1
  180. package/lib/typescript/src/reactRequests.d.ts +0 -9
  181. package/lib/typescript/src/reactRequests.d.ts.map +0 -1
  182. package/lib/typescript/src/webClipPath.d.ts +0 -7
  183. package/lib/typescript/src/webClipPath.d.ts.map +0 -1
  184. package/src/SmoothClipView.web.tsx +0 -66
  185. package/src/driverState.ts +0 -158
  186. package/src/driverTypes.ts +0 -140
  187. package/src/drivers.android.ts +0 -8
  188. package/src/drivers.ios.ts +0 -8
  189. package/src/drivers.native.ts +0 -899
  190. package/src/drivers.ts +0 -427
  191. package/src/index.web.ts +0 -23
  192. package/src/reactRequests.ts +0 -76
  193. package/src/webClipPath.ts +0 -30
@@ -3,13 +3,29 @@ export interface Spec extends TurboModule {
3
3
  readonly onClipAnimationComplete: CodegenTypes.EventEmitter<Readonly<{
4
4
  driverId: CodegenTypes.Double;
5
5
  animationId: CodegenTypes.Int32;
6
+ completionTag: CodegenTypes.Int32;
6
7
  finished: boolean;
7
8
  }>>;
8
- setClipPresentation(driverId: CodegenTypes.Double, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, takeOwnership: boolean, overridePendingAnimation: boolean): void;
9
+ readonly onClipGroupAnimationComplete: CodegenTypes.EventEmitter<Readonly<{
10
+ controllerId: CodegenTypes.Double;
11
+ groupId: CodegenTypes.Int32;
12
+ completionTag: CodegenTypes.Int32;
13
+ finished: boolean;
14
+ snapshots: ReadonlyArray<CodegenTypes.Double>;
15
+ }>>;
16
+ supportsAutonomousComplexPathAnimation(): boolean;
17
+ beginGroupInteraction(driverIds: ReadonlyArray<CodegenTypes.Double>): ReadonlyArray<CodegenTypes.Double>;
18
+ snapshotGroup(driverIds: ReadonlyArray<CodegenTypes.Double>): ReadonlyArray<CodegenTypes.Double>;
19
+ setClipPresentationBatch(entries: ReadonlyArray<CodegenTypes.Double>): boolean;
20
+ animateTimingGroup(controllerId: CodegenTypes.Double, entries: ReadonlyArray<CodegenTypes.Double>, durationMs: CodegenTypes.Double, controlPoint1X: CodegenTypes.Double, controlPoint1Y: CodegenTypes.Double, controlPoint2X: CodegenTypes.Double, controlPoint2Y: CodegenTypes.Double, reduceMotion: CodegenTypes.Int32, completionTag: CodegenTypes.Int32, startTimestamp: CodegenTypes.Double): CodegenTypes.Int32;
21
+ animateSpringGroup(controllerId: CodegenTypes.Double, entries: ReadonlyArray<CodegenTypes.Double>, mass: CodegenTypes.Double, stiffness: CodegenTypes.Double, damping: CodegenTypes.Double, velocity: CodegenTypes.Double, energyThreshold: CodegenTypes.Double, reduceMotion: CodegenTypes.Int32, completionTag: CodegenTypes.Int32, startTimestamp: CodegenTypes.Double): CodegenTypes.Int32;
22
+ cancelAnimationGroup(groupId: CodegenTypes.Int32, behavior: CodegenTypes.Int32): ReadonlyArray<CodegenTypes.Double>;
23
+ setClipPresentation(driverId: CodegenTypes.Double, presentation: ReadonlyArray<CodegenTypes.Double>, takeOwnership: boolean, overridePendingAnimation: boolean): void;
24
+ setClipFrameScalars(driverId: CodegenTypes.Double, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, topLeftRadius: CodegenTypes.Double, topRightRadius: CodegenTypes.Double, bottomRightRadius: CodegenTypes.Double, bottomLeftRadius: CodegenTypes.Double, curveCode: CodegenTypes.Int32, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, contentScale: CodegenTypes.Double, shadowEnabled: boolean, shadowRed: CodegenTypes.Double, shadowGreen: CodegenTypes.Double, shadowBlue: CodegenTypes.Double, shadowAlpha: CodegenTypes.Double, shadowOffsetX: CodegenTypes.Double, shadowOffsetY: CodegenTypes.Double, shadowBlurRadius: CodegenTypes.Double, shadowSpreadDistance: CodegenTypes.Double): void;
9
25
  beginInteraction(driverId: CodegenTypes.Double): ReadonlyArray<CodegenTypes.Double>;
10
- animateTiming(driverId: CodegenTypes.Double, hasInteractiveStart: boolean, startX: CodegenTypes.Double, startY: CodegenTypes.Double, startWidth: CodegenTypes.Double, startHeight: CodegenTypes.Double, startRadius: CodegenTypes.Double, startContentTranslateX: CodegenTypes.Double, startContentTranslateY: CodegenTypes.Double, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, durationMs: CodegenTypes.Double, controlPoint1X: CodegenTypes.Double, controlPoint1Y: CodegenTypes.Double, controlPoint2X: CodegenTypes.Double, controlPoint2Y: CodegenTypes.Double, reduceMotion: CodegenTypes.Int32): CodegenTypes.Int32;
11
- animateSpring(driverId: CodegenTypes.Double, hasInteractiveStart: boolean, startX: CodegenTypes.Double, startY: CodegenTypes.Double, startWidth: CodegenTypes.Double, startHeight: CodegenTypes.Double, startRadius: CodegenTypes.Double, startContentTranslateX: CodegenTypes.Double, startContentTranslateY: CodegenTypes.Double, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, mass: CodegenTypes.Double, stiffness: CodegenTypes.Double, damping: CodegenTypes.Double, initialVelocity: CodegenTypes.Double, inheritVelocity: boolean, reduceMotion: CodegenTypes.Int32): CodegenTypes.Int32;
12
- animateKeyframes(driverId: CodegenTypes.Double, hasInteractiveStart: boolean, startX: CodegenTypes.Double, startY: CodegenTypes.Double, startWidth: CodegenTypes.Double, startHeight: CodegenTypes.Double, startRadius: CodegenTypes.Double, startContentTranslateX: CodegenTypes.Double, startContentTranslateY: CodegenTypes.Double, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, durationMs: CodegenTypes.Double, frames: ReadonlyArray<CodegenTypes.Double>, reduceMotion: CodegenTypes.Int32): CodegenTypes.Int32;
26
+ snapshotCurrent(driverId: CodegenTypes.Double): ReadonlyArray<CodegenTypes.Double>;
27
+ animateTiming(driverId: CodegenTypes.Double, start: ReadonlyArray<CodegenTypes.Double>, target: ReadonlyArray<CodegenTypes.Double>, durationMs: CodegenTypes.Double, controlPoint1X: CodegenTypes.Double, controlPoint1Y: CodegenTypes.Double, controlPoint2X: CodegenTypes.Double, controlPoint2Y: CodegenTypes.Double, reduceMotion: CodegenTypes.Int32, completionTag: CodegenTypes.Int32): CodegenTypes.Int32;
28
+ animateSpring(driverId: CodegenTypes.Double, start: ReadonlyArray<CodegenTypes.Double>, target: ReadonlyArray<CodegenTypes.Double>, mass: CodegenTypes.Double, stiffness: CodegenTypes.Double, damping: CodegenTypes.Double, initialVelocity: CodegenTypes.Double, inheritVelocity: boolean, reduceMotion: CodegenTypes.Int32, completionTag: CodegenTypes.Int32): CodegenTypes.Int32;
13
29
  rejectAnimation(driverId: CodegenTypes.Double): CodegenTypes.Int32;
14
30
  cancelAnimation(driverId: CodegenTypes.Double, animationId: CodegenTypes.Int32, behavior: CodegenTypes.Int32): ReadonlyArray<CodegenTypes.Double>;
15
31
  destroyDriver(driverId: CodegenTypes.Double): void;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeSmoothClipModule.d.ts","sourceRoot":"","sources":["../../../src/NativeSmoothClipModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,uBAAuB,EAAE,YAAY,CAAC,YAAY,CACzD,QAAQ,CAAC;QACP,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC;QAC9B,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC;QAChC,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC,CACH,CAAC;IACF,mBAAmB,CACjB,QAAQ,EAAE,YAAY,CAAC,MAAM,EAC7B,CAAC,EAAE,YAAY,CAAC,MAAM,EACtB,CAAC,EAAE,YAAY,CAAC,MAAM,EACtB,KAAK,EAA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,KAAK,CAAC;IACnE,eAAe,CACb,QAAQ,EAAE,YAAY,CAAC,MAAM,EAC7B,WAAW,EAAE,YAAY,CAAC,KAAK,EAC/B,QAAQ,EAAE,YAAY,CAAC,KAAK,GAC3B,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACtC,aAAa,CAAC,QAAQ,EAAE,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC;CACpD;;AAED,wBAAgF"}
@@ -1,11 +1,3 @@
1
- import type React from 'react';
2
- import { type ReactNode } from 'react';
3
- import { type ViewProps } from 'react-native';
4
- import type { SmoothClipDriver } from './driverTypes.js';
5
- export type SmoothClipViewProps = ViewProps & {
6
- driver: SmoothClipDriver;
7
- children?: ReactNode;
8
- };
9
- /** Android fallback. iOS resolves SmoothClipView.ios.tsx instead. */
10
- export declare function SmoothClipView({ driver, children, ...viewProps }: SmoothClipViewProps): React.JSX.Element;
1
+ export { renderSmoothClipView, sanitizeSmoothClipStyle, SmoothClipView, } from './SmoothClipView.ios.js';
2
+ export type { SmoothClipViewProps } from './SmoothClipView.ios.js';
11
3
  //# sourceMappingURL=SmoothClipView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SmoothClipView.d.ts","sourceRoot":"","sources":["../../../src/SmoothClipView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAe,CAAC;AAUtD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,mBAAmB,qBA+CrB"}
1
+ {"version":3,"file":"SmoothClipView.d.ts","sourceRoot":"","sources":["../../../src/SmoothClipView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,GACf,MAAM,yBAAsB,CAAC;AAC9B,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAsB,CAAC"}
@@ -1,9 +1,144 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ComponentRef, type ForwardedRef, type ReactElement, type ReactNode } from 'react';
2
2
  import { type ViewProps } from 'react-native';
3
- import type { SmoothClipDriver } from './driverTypes.js';
3
+ import type { SmoothClipController } from './controllerTypes.js';
4
+ import NativeSmoothClipView from './SmoothClipViewNativeComponent';
4
5
  export type SmoothClipViewProps = ViewProps & {
5
- driver: SmoothClipDriver;
6
+ controller: SmoothClipController;
6
7
  children?: ReactNode;
7
8
  };
8
- export declare function SmoothClipView({ driver, children, ...viewProps }: SmoothClipViewProps): import("react").JSX.Element;
9
+ /** Prevents React Native from installing a second, aperture-independent shadow. */
10
+ export declare function sanitizeSmoothClipStyle(style: ViewProps['style']): ViewProps['style'];
11
+ export declare function renderSmoothClipView({ controller, children, style, ...viewProps }: SmoothClipViewProps, forwardedRef: ForwardedRef<ComponentRef<typeof NativeSmoothClipView>>): ReactElement;
12
+ export declare const SmoothClipView: import("react").ForwardRefExoticComponent<Readonly<Omit<Readonly<{
13
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
14
+ onAccessibilityTap?: (() => unknown) | undefined;
15
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
16
+ onMagicTap?: (() => unknown) | undefined;
17
+ onAccessibilityEscape?: (() => unknown) | undefined;
18
+ }>, "id" | "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderEnd" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyUp" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
19
+ onMoveShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
20
+ onMoveShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
21
+ onResponderGrant?: ((e: import("react-native").GestureResponderEvent) => void | boolean) | undefined;
22
+ onResponderMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
23
+ onResponderReject?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
24
+ onResponderRelease?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
25
+ onResponderStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
26
+ onResponderEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
27
+ onResponderTerminate?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
28
+ onResponderTerminationRequest?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
29
+ onStartShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
30
+ onStartShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
31
+ }>, "id" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyUp" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
32
+ onMouseEnter?: ((event: import("react-native").MouseEvent) => void) | undefined;
33
+ onMouseLeave?: ((event: import("react-native").MouseEvent) => void) | undefined;
34
+ }>, "id" | "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyUp" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
35
+ onClick?: ((event: import("react-native").PointerEvent) => void) | undefined;
36
+ onClickCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
37
+ onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
38
+ onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
39
+ onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
40
+ onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
41
+ onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
42
+ onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
43
+ onPointerCancel?: ((e: import("react-native").PointerEvent) => void) | undefined;
44
+ onPointerCancelCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
45
+ onPointerDown?: ((e: import("react-native").PointerEvent) => void) | undefined;
46
+ onPointerDownCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
47
+ onPointerUp?: ((e: import("react-native").PointerEvent) => void) | undefined;
48
+ onPointerUpCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
49
+ onPointerOver?: ((e: import("react-native").PointerEvent) => void) | undefined;
50
+ onPointerOverCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
51
+ onPointerOut?: ((e: import("react-native").PointerEvent) => void) | undefined;
52
+ onPointerOutCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
53
+ onGotPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
54
+ onGotPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
55
+ onLostPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
56
+ onLostPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
57
+ }>, "id" | "onClick" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyUp" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
58
+ onBlur?: ((event: import("react-native").BlurEvent) => void) | undefined;
59
+ onBlurCapture?: ((event: import("react-native").BlurEvent) => void) | undefined;
60
+ onFocus?: ((event: import("react-native").FocusEvent) => void) | undefined;
61
+ onFocusCapture?: ((event: import("react-native").FocusEvent) => void) | undefined;
62
+ }>, "id" | "onClick" | "onKeyDown" | "onKeyDownCapture" | "onKeyUp" | "onKeyUpCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
63
+ onKeyDown?: ((event: import("react-native").KeyDownEvent) => void) | undefined;
64
+ onKeyDownCapture?: ((event: import("react-native").KeyDownEvent) => void) | undefined;
65
+ onKeyUp?: ((event: import("react-native").KeyUpEvent) => void) | undefined;
66
+ onKeyUpCapture?: ((event: import("react-native").KeyUpEvent) => void) | undefined;
67
+ }>, "id" | "onClick" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
68
+ onTouchCancel?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
69
+ onTouchCancelCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
70
+ onTouchEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
71
+ onTouchEndCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
72
+ onTouchMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
73
+ onTouchMoveCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
74
+ onTouchStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
75
+ onTouchStartCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
76
+ }>, "id" | "onClick" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
77
+ nativeBackgroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
78
+ nativeForegroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
79
+ renderToHardwareTextureAndroid?: boolean | undefined;
80
+ hasTVPreferredFocus?: boolean | undefined;
81
+ nextFocusDown?: number | undefined;
82
+ nextFocusForward?: number | undefined;
83
+ nextFocusLeft?: number | undefined;
84
+ nextFocusRight?: number | undefined;
85
+ nextFocusUp?: number | undefined;
86
+ focusable?: boolean | undefined;
87
+ tabIndex?: 0 | -1;
88
+ onClick?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
89
+ }>, "id" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
90
+ shouldRasterizeIOS?: boolean | undefined;
91
+ }>, "id" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<Omit<Readonly<{
92
+ accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
93
+ "aria-labelledby"?: string | undefined;
94
+ accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
95
+ "aria-live"?: ("polite" | "assertive" | "off") | undefined;
96
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
97
+ screenReaderFocusable?: boolean;
98
+ }>, "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & Omit<Readonly<{
99
+ accessibilityIgnoresInvertColors?: boolean | undefined;
100
+ accessibilityViewIsModal?: boolean | undefined;
101
+ accessibilityShowsLargeContentViewer?: boolean | undefined;
102
+ accessibilityLargeContentTitle?: string | undefined;
103
+ "aria-modal"?: boolean | undefined;
104
+ accessibilityElementsHidden?: boolean | undefined;
105
+ accessibilityLanguage?: string | undefined;
106
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
107
+ }>, "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & {
108
+ accessible?: boolean | undefined;
109
+ accessibilityLabel?: string | undefined;
110
+ accessibilityHint?: string | undefined;
111
+ "aria-label"?: string | undefined;
112
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
113
+ role?: import("react-native").Role | undefined;
114
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
115
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
116
+ "aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
117
+ "aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
118
+ "aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
119
+ "aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
120
+ accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
121
+ "aria-busy"?: boolean | undefined;
122
+ "aria-checked"?: (boolean | undefined) | "mixed";
123
+ "aria-disabled"?: boolean | undefined;
124
+ "aria-expanded"?: boolean | undefined;
125
+ "aria-selected"?: boolean | undefined;
126
+ "aria-hidden"?: boolean | undefined;
127
+ }>, "id" | "children" | "style" | "collapsable" | "collapsableChildren" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
128
+ children?: React.ReactNode;
129
+ style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | undefined;
130
+ collapsable?: boolean | undefined;
131
+ collapsableChildren?: boolean | undefined;
132
+ id?: string;
133
+ testID?: string | undefined;
134
+ nativeID?: string | undefined;
135
+ needsOffscreenAlphaCompositing?: boolean | undefined;
136
+ hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/EdgeInsetsPropType").EdgeInsetsOrSizeProp | undefined;
137
+ pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
138
+ removeClippedSubviews?: boolean | undefined;
139
+ experimental_accessibilityOrder?: Array<string> | undefined;
140
+ }>, never>> & {
141
+ controller: SmoothClipController;
142
+ children?: ReactNode;
143
+ } & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
9
144
  //# sourceMappingURL=SmoothClipView.ios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SmoothClipView.ios.d.ts","sourceRoot":"","sources":["../../../src/SmoothClipView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAe,CAAC;AAMtD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,mBAAmB,+BAkBrB"}
1
+ {"version":3,"file":"SmoothClipView.ios.d.ts","sourceRoot":"","sources":["../../../src/SmoothClipView.ios.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAmB,CAAC;AAE9D,OAAO,oBAEN,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,UAAU,EAAE,oBAAoB,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAsDF,mFAAmF;AACnF,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GACxB,SAAS,CAAC,OAAO,CAAC,CAkCpB;AAED,wBAAgB,oBAAoB,CAClC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,mBAAmB,EAClE,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC,GACpE,YAAY,CAsCd;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA1Ib,oBAAoB;eACrB,SAAS;mIA+IpB,CAAC"}
@@ -5,13 +5,26 @@ export interface NativeProps extends ViewProps {
5
5
  initialClipY: CodegenTypes.Double;
6
6
  initialClipWidth: CodegenTypes.Double;
7
7
  initialClipHeight: CodegenTypes.Double;
8
- initialClipRadius: CodegenTypes.Double;
8
+ initialClipTopLeftRadius: CodegenTypes.Double;
9
+ initialClipTopRightRadius: CodegenTypes.Double;
10
+ initialClipBottomRightRadius: CodegenTypes.Double;
11
+ initialClipBottomLeftRadius: CodegenTypes.Double;
12
+ initialClipCurve: CodegenTypes.Int32;
9
13
  initialContentTranslateX: CodegenTypes.Double;
10
14
  initialContentTranslateY: CodegenTypes.Double;
15
+ initialContentScale: CodegenTypes.Double;
16
+ initialClipBoxShadowEnabled: boolean;
17
+ initialClipBoxShadowRed: CodegenTypes.Double;
18
+ initialClipBoxShadowGreen: CodegenTypes.Double;
19
+ initialClipBoxShadowBlue: CodegenTypes.Double;
20
+ initialClipBoxShadowAlpha: CodegenTypes.Double;
21
+ initialClipBoxShadowOffsetX: CodegenTypes.Double;
22
+ initialClipBoxShadowOffsetY: CodegenTypes.Double;
23
+ initialClipBoxShadowBlurRadius: CodegenTypes.Double;
24
+ initialClipBoxShadowSpreadDistance: CodegenTypes.Double;
11
25
  }
12
26
  interface NativeCommands {
13
- setClipGeometry: (viewRef: React.ElementRef<HostComponent<NativeProps>>, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double) => void;
14
- setClipPresentation: (viewRef: React.ElementRef<HostComponent<NativeProps>>, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, radius: CodegenTypes.Double, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double) => void;
27
+ setClipPresentation: (viewRef: React.ElementRef<HostComponent<NativeProps>>, x: CodegenTypes.Double, y: CodegenTypes.Double, width: CodegenTypes.Double, height: CodegenTypes.Double, topLeftRadius: CodegenTypes.Double, topRightRadius: CodegenTypes.Double, bottomRightRadius: CodegenTypes.Double, bottomLeftRadius: CodegenTypes.Double, curveCode: CodegenTypes.Int32, contentTranslateX: CodegenTypes.Double, contentTranslateY: CodegenTypes.Double, contentScale: CodegenTypes.Double, shadowEnabled: boolean, shadowRed: CodegenTypes.Double, shadowGreen: CodegenTypes.Double, shadowBlue: CodegenTypes.Double, shadowAlpha: CodegenTypes.Double, shadowOffsetX: CodegenTypes.Double, shadowOffsetY: CodegenTypes.Double, shadowBlurRadius: CodegenTypes.Double, shadowSpreadDistance: CodegenTypes.Double) => void;
15
28
  }
16
29
  export declare const Commands: NativeCommands;
17
30
  declare const _default: HostComponent<NativeProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"SmoothClipViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/SmoothClipViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,E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,cAAc;IACtB,mBAAmB,EAAE,CACnB,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,CAAC,EAAE,YAAY,CAAC,MAAM,EACtB,CAAC,EAAE,YAAY,CAAC,MAAM,EACtB,KAAK,EAAE,YAAY,CAAC,MAAM,EAC1B,MAAM,EAAE,YAAY,CAAC,MAAM,EAC3B,aAAa,EAAE,YAAY,CAAC,MAAM,EAClC,cAAc,EAAE,YAAY,CAAC,MAAM,EACnC,iBAAiB,EAAE,YAAY,CAAC,MAAM,EACtC,gBAAgB,EAAE,YAAY,CAAC,MAAM,EACrC,SAAS,EAAE,YAAY,CAAC,KAAK,EAC7B,iBAAiB,EAAE,YAAY,CAAC,MAAM,EACtC,iBAAiB,EAAE,YAAY,CAAC,MAAM,EACtC,YAAY,EAAE,YAAY,CAAC,MAAM,EACjC,aAAa,EAAE,OAAO,EACtB,SAAS,EAAE,YAAY,CAAC,MAAM,EAC9B,WAAW,EAAE,YAAY,CAAC,MAAM,EAChC,UAAU,EAAE,YAAY,CAAC,MAAM,EAC/B,WAAW,EAAE,YAAY,CAAC,MAAM,EAChC,aAAa,EAAE,YAAY,CAAC,MAAM,EAClC,aAAa,EAAE,YAAY,CAAC,MAAM,EAClC,gBAAgB,EAAE,YAAY,CAAC,MAAM,EACrC,oBAAoB,EAAE,YAAY,CAAC,MAAM,KACtC,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -0,0 +1,3 @@
1
+ export { getSmoothClipCapabilities } from './capabilities.native.js';
2
+ export type { SmoothClipCapabilities } from './capabilityTypes.js';
3
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAAuB,CAAC;AAClE,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SmoothClipCapabilities } from './capabilityTypes.js';
2
+ export declare function getSmoothClipCapabilities(): SmoothClipCapabilities;
3
+ //# sourceMappingURL=capabilities.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.native.d.ts","sourceRoot":"","sources":["../../../src/capabilities.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAmB,CAAC;AAIhE,wBAAgB,yBAAyB,IAAI,sBAAsB,CAalE"}
@@ -0,0 +1,4 @@
1
+ export type SmoothClipCapabilities = Readonly<{
2
+ autonomousComplexPathAnimation: boolean;
3
+ }>;
4
+ //# sourceMappingURL=capabilityTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilityTypes.d.ts","sourceRoot":"","sources":["../../../src/capabilityTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,8BAA8B,EAAE,OAAO,CAAC;CACzC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { SmoothClipController, SmoothClipRef } from './controllerTypes.js';
2
+ import type { CanonicalSmoothClipPresentation } from './geometry.js';
3
+ export type InternalSmoothClipController = Readonly<{
4
+ ref: SmoothClipRef;
5
+ initialFrame: CanonicalSmoothClipPresentation;
6
+ }>;
7
+ export type InternalSmoothClipRef = SmoothClipRef & Readonly<{
8
+ id: number;
9
+ }>;
10
+ export declare function setControllerRef(controller: SmoothClipController, value: InternalSmoothClipController): void;
11
+ export declare function getControllerRef(controller: SmoothClipController): InternalSmoothClipController;
12
+ export declare function unwrapSmoothClipRef(ref: SmoothClipRef | undefined): InternalSmoothClipRef | undefined;
13
+ export declare function createSmoothClipRef(id: number): SmoothClipRef;
14
+ //# sourceMappingURL=controllerInternals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllerInternals.d.ts","sourceRoot":"","sources":["../../../src/controllerInternals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAY,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAAC;IAClD,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,+BAA+B,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,QAAQ,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAO7E,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,oBAAoB,EAChC,KAAK,EAAE,4BAA4B,GAClC,IAAI,CAEN;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,oBAAoB,GAC/B,4BAA4B,CAQ9B;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,aAAa,GAAG,SAAS,GAC7B,qBAAqB,GAAG,SAAS,CAWnC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAE7D"}
@@ -0,0 +1,3 @@
1
+ /** Destroy from the React Native runtime; native forwards to the UI thread. */
2
+ export declare function destroyController(controllerId: number): void;
3
+ //# sourceMappingURL=controllerLifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllerLifecycle.d.ts","sourceRoot":"","sources":["../../../src/controllerLifecycle.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAE5D"}
@@ -0,0 +1,62 @@
1
+ import type { CanonicalSmoothClipPresentation, ClipGeometry, SmoothClipPresentation } from './geometry.js';
2
+ export type ClipReduceMotion = 'system' | 'always' | 'never';
3
+ type SmoothClipAnimationBase = Readonly<{
4
+ /** Resolved per transaction; it is never retained by the controller. */
5
+ reduceMotion?: ClipReduceMotion;
6
+ }>;
7
+ export type TimingClipAnimation = SmoothClipAnimationBase & Readonly<{
8
+ type: 'timing';
9
+ duration: number;
10
+ controlPoints: readonly [number, number, number, number];
11
+ }>;
12
+ export type SpringClipAnimation = SmoothClipAnimationBase & Readonly<{
13
+ type: 'spring';
14
+ mass?: number;
15
+ stiffness?: number;
16
+ damping?: number;
17
+ /** Normalized progress velocity in inverse seconds. */
18
+ velocity?: number;
19
+ /** Relative mechanical energy used to determine settlement. */
20
+ energyThreshold?: number;
21
+ }>;
22
+ export type SmoothClipAnimation = TimingClipAnimation | SpringClipAnimation;
23
+ declare const smoothClipRefBrand: unique symbol;
24
+ /** Opaque, worklet-safe identity for one mounted clip host. */
25
+ export type SmoothClipRef = Readonly<{
26
+ readonly [smoothClipRefBrand]: true;
27
+ }>;
28
+ declare const smoothClipRunBrand: unique symbol;
29
+ /** Opaque identity for a native transaction started on the UI runtime. */
30
+ export type SmoothClipRunHandle = Readonly<{
31
+ readonly [smoothClipRunBrand]: true;
32
+ }>;
33
+ export type SmoothClipCompletion = Readonly<{
34
+ finished: boolean;
35
+ /** Present only when supplied by the UI-runtime caller. */
36
+ completionTag?: number;
37
+ }>;
38
+ export type SmoothClipReactRun = Readonly<{
39
+ finished: Promise<boolean>;
40
+ cancel(): void;
41
+ }>;
42
+ export type SmoothClipControllerOptions = Readonly<{
43
+ /** Stable React-runtime callback for UI- and React-runtime transactions. */
44
+ onAnimationComplete?: (result: SmoothClipCompletion) => void;
45
+ }>;
46
+ export type SmoothClipControllerUI = Readonly<{
47
+ beginInteraction(): CanonicalSmoothClipPresentation;
48
+ setFrame(frame: SmoothClipPresentation): void;
49
+ animateTo(target: SmoothClipPresentation, animation: SmoothClipAnimation, completionTag?: number): SmoothClipRunHandle | null;
50
+ cancel(run: SmoothClipRunHandle): CanonicalSmoothClipPresentation;
51
+ }>;
52
+ export type SmoothClipControllerReact = Readonly<{
53
+ animateTo(target: SmoothClipPresentation, animation: SmoothClipAnimation): SmoothClipReactRun;
54
+ }>;
55
+ export type SmoothClipController = Readonly<{
56
+ ref: SmoothClipRef;
57
+ ui: SmoothClipControllerUI;
58
+ react: SmoothClipControllerReact;
59
+ }>;
60
+ export type SmoothClipInitialFrame = ClipGeometry | SmoothClipPresentation;
61
+ export {};
62
+ //# sourceMappingURL=controllerTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllerTypes.d.ts","sourceRoot":"","sources":["../../../src/controllerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,YAAY,EACZ,sBAAsB,EACvB,MAAM,eAAY,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACtC,wEAAwE;IACxE,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GACvD,QAAQ,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1D,CAAC,CAAC;AAEL,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GACvD,QAAQ,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC,CAAC;AAEL,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AA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S,CACP,MAAM,EAAE,sBAAsB,EAC9B,SAAS,EAAE,mBAAmB,GAC7B,kBAAkB,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IAC1C,GAAG,EAAE,aAAa,CAAC;IACnB,EAAE,EAAE,sBAAsB,CAAC;IAC3B,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSmoothClipController } from './controllers.native.js';
2
+ //# sourceMappingURL=controllers.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.android.d.ts","sourceRoot":"","sources":["../../../src/controllers.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSmoothClipController } from './controllers.native.js';
2
+ //# sourceMappingURL=controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../../src/controllers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSmoothClipController } from './controllers.native.js';
2
+ //# sourceMappingURL=controllers.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.ios.d.ts","sourceRoot":"","sources":["../../../src/controllers.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SmoothClipController, SmoothClipControllerOptions, SmoothClipInitialFrame } from './controllerTypes.js';
2
+ export declare function useSmoothClipController(initialValue: SmoothClipInitialFrame, options?: SmoothClipControllerOptions): SmoothClipController;
3
+ //# sourceMappingURL=controllers.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.native.d.ts","sourceRoot":"","sources":["../../../src/controllers.native.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,sBAAmB,CAAC;AAgB3B,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,sBAAsB,EACpC,OAAO,GAAE,2BAAgC,GACxC,oBAAoB,CA8EtB"}
@@ -1,27 +1,71 @@
1
+ import type { ColorValue } from 'react-native';
2
+ export type ClipCurve = 'circular' | 'continuous';
3
+ /** One numeric outset shadow following React Native's `boxShadow` field names. */
4
+ export type ClipBoxShadow = Readonly<{
5
+ color?: ColorValue;
6
+ offsetX: number;
7
+ offsetY: number;
8
+ /** CSS box-shadow blur radius. iOS converts this to CALayer radius / 2. */
9
+ blurRadius?: number;
10
+ spreadDistance?: number;
11
+ }>;
12
+ export type CanonicalClipBoxShadow = Readonly<{
13
+ /** React Native numeric RRGGBBAA color; canonicalization is idempotent. */
14
+ color: ColorValue;
15
+ offsetX: number;
16
+ offsetY: number;
17
+ blurRadius: number;
18
+ spreadDistance: number;
19
+ }>;
1
20
  export type ClipGeometry = Readonly<{
2
21
  x: number;
3
22
  y: number;
4
23
  width: number;
5
24
  height: number;
25
+ /** Default for every corner without an explicit override. */
6
26
  radius: number;
27
+ topLeftRadius?: number;
28
+ topRightRadius?: number;
29
+ bottomRightRadius?: number;
30
+ bottomLeftRadius?: number;
31
+ curve?: ClipCurve;
7
32
  }>;
8
- export type ClipBounds = Readonly<{
33
+ export type CanonicalClipGeometry = Readonly<{
34
+ x: number;
35
+ y: number;
9
36
  width: number;
10
37
  height: number;
38
+ /** Canonical all-corners value; zero when the corner radii differ. */
39
+ radius: number;
40
+ topLeftRadius: number;
41
+ topRightRadius: number;
42
+ bottomRightRadius: number;
43
+ bottomLeftRadius: number;
44
+ curve: ClipCurve;
11
45
  }>;
12
46
  export type SmoothClipPresentation = Readonly<{
13
47
  clip: ClipGeometry;
14
48
  contentTranslateX: number;
15
49
  contentTranslateY: number;
50
+ /** Defaults to 1 when omitted. */
51
+ contentScale?: number;
52
+ boxShadow?: ClipBoxShadow;
53
+ }>;
54
+ export type CanonicalSmoothClipPresentation = Readonly<{
55
+ clip: CanonicalClipGeometry;
56
+ contentTranslateX: number;
57
+ contentTranslateY: number;
58
+ contentScale: number;
59
+ boxShadow?: CanonicalClipBoxShadow;
16
60
  }>;
17
- export declare function createClipPresentation(clip: ClipGeometry, contentTranslateX?: number, contentTranslateY?: number): SmoothClipPresentation;
18
61
  export declare function isFiniteClipGeometry(geometry: ClipGeometry): boolean;
19
62
  export declare function clipGeometryEquals(first: ClipGeometry | null, second: ClipGeometry): boolean;
20
63
  export declare function isFiniteClipPresentation(presentation: SmoothClipPresentation): boolean;
21
64
  export declare function clipPresentationEquals(first: SmoothClipPresentation | null, second: SmoothClipPresentation): boolean;
22
65
  /**
23
- * Mirrors the native geometry contract for tests and non-native fallbacks.
24
- * Native remains authoritative because its bounds are the actual rendered size.
66
+ * Expands presentation defaults and applies CSS proportional corner scaling.
25
67
  */
26
- export declare function normalizeClipGeometry(geometry: ClipGeometry, bounds: ClipBounds): ClipGeometry | null;
68
+ export declare function canonicalizeClipGeometry(geometry: ClipGeometry): CanonicalClipGeometry | null;
69
+ export declare function canonicalizeClipPresentation(presentation: SmoothClipPresentation): CanonicalSmoothClipPresentation | null;
70
+ export declare function createClipPresentation(clip: ClipGeometry, contentTranslateX?: number, contentTranslateY?: number, contentScale?: number, boxShadow?: ClipBoxShadow): CanonicalSmoothClipPresentation;
27
71
  //# sourceMappingURL=geometry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../src/geometry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAA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