react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +20 -59
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +53 -41
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +84 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js +67 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +16 -1
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/commonjs/shared/index.js +6 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +9 -3
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -2
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -48
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +5 -11
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +108 -28
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +3 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -60
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +51 -39
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +86 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js +62 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +10 -5
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +10 -34
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +15 -0
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +9 -3
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +18 -2
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +7 -48
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +5 -11
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +110 -30
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +2 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +16 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +6 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +33 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +2 -2
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +11 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +34 -1
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +26 -59
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +68 -54
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +165 -6
- package/src/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.ts +107 -0
- package/src/shared/components/create-boundary-component/index.tsx +10 -5
- package/src/shared/components/create-boundary-component/types.ts +1 -2
- package/src/shared/components/create-transition-aware-component.tsx +10 -47
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
- package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
- package/src/shared/components/screen-lifecycle/index.tsx +1 -4
- package/src/shared/constants.ts +11 -0
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
- package/src/shared/index.ts +1 -0
- package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
- package/src/shared/stores/animation.store.ts +11 -2
- package/src/shared/stores/bounds/internals/registry.ts +24 -3
- package/src/shared/stores/bounds/internals/resolver.ts +6 -75
- package/src/shared/stores/bounds/types.ts +0 -2
- package/src/shared/types/animation.types.ts +13 -0
- package/src/shared/types/bounds.types.ts +34 -1
- package/src/shared/utils/animation/animate-to-progress.ts +11 -1
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +1 -11
- package/src/shared/utils/bounds/zoom/build.ts +158 -45
- package/src/shared/utils/bounds/zoom/config.ts +2 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey","debugResolverLog"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACG,WAAW,EAAED,SAAS,CACpE,CAAC;AACF;AAEA,SAASG,yBAAyBA,CACjCX,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IAAK,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACM,MAAM,EAAEJ,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jBA,WAAW,GAAGZ,8BAA8B,CAC3CP,QAAQ,EACRgB,OAAO,CAACQ,aACT,CAAC;MACF;MAEA,IAAI,CAACL,WAAW,EAAE;QACjBA,WAAW,GAAGN,uBAAuB,CACpCb,QAAQ,EACRgB,OAAO,CAACM,gBACT,CAAC;QACDF,WAAW,GAAG,CAAC,CAACD,WAAW;MAC5B;IACD;EACD;EAEA,MAAMM,YAAY,GAAGN,WAAW,EAAEP,MAAM,EAAEc,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGR,WAAW,EAAEV,WAAW,EAAEiB,MAAM,IAAI,IAAI;EAClE,MAAME,YAAY,GAAGT,WAAW,EAAEP,MAAM,EAAEiB,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGX,WAAW,EAAEV,WAAW,EAAEoB,MAAM,IAAI,IAAI;EAClE,MAAME,eAAe,GAAGZ,WAAW,EAAEP,MAAM,EAAEJ,SAAS,IAAI,IAAI;EAC9D,MAAMwB,oBAAoB,GAAGb,WAAW,EAAEV,WAAW,EAAED,SAAS,IAAI,IAAI;EAExE,IAAI,CAACiB,YAAY,IAAI,CAACE,iBAAiB,EAAE;IACxC,IAAAM,uBAAgB,EACf,kBAAkBlB,GAAG,aAAaC,OAAO,CAACK,QAAQ,GAAG,CAAC,GAAG,CAAC,WACzDI,YAAY,GAAG,CAAC,GAAG,CAAC,gBACLE,iBAAiB,GAAG,CAAC,GAAG,CAAC,YAAYP,WAAW,GAAG,CAAC,GAAG,CAAC,EACzE,CAAC;EACF;EAEA,OAAO;IACNK,YAAY;IACZE,iBAAiB;IACjBC,YAAY;IACZE,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBZ;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ const animateToProgress = ({
|
|
|
13
13
|
onAnimationFinish,
|
|
14
14
|
animations,
|
|
15
15
|
targetProgress,
|
|
16
|
+
emitWillAnimate = true,
|
|
16
17
|
initialVelocity
|
|
17
18
|
}) => {
|
|
18
19
|
"worklet";
|
|
@@ -30,10 +31,19 @@ const animateToProgress = ({
|
|
|
30
31
|
} : config;
|
|
31
32
|
const {
|
|
32
33
|
progress,
|
|
34
|
+
willAnimate,
|
|
33
35
|
animating,
|
|
34
36
|
closing,
|
|
35
37
|
entering
|
|
36
38
|
} = animations;
|
|
39
|
+
if (emitWillAnimate) {
|
|
40
|
+
willAnimate.set(_constants.TRUE);
|
|
41
|
+
requestAnimationFrame(() => {
|
|
42
|
+
"worklet";
|
|
43
|
+
|
|
44
|
+
willAnimate.set(_constants.FALSE);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
37
47
|
targetProgress.set(value);
|
|
38
48
|
if (isClosing) {
|
|
39
49
|
closing.set(_constants.TRUE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","set","TRUE","FALSE","runOnJS","animate","finished","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","set","TRUE","requestAnimationFrame","FALSE","runOnJS","animate","finished","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAmBO,MAAMG,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,eAAe,GAAG,IAAI;EACtBC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SA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,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAe,SAAS,CAACG,GAAG,CAACC,eAAI,CAAC,CAAC,CAAC;EACrBN,QAAQ,CAACK,GAAG,CACX,IAAAK,gBAAO,EAACjB,KAAK,EAAEK,eAAe,EAAGa,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAACnB,SAAS,EAAE;MACfY,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAACwB,QAAQ,CAAC;IACrC;;IAEA;IACAJ,qBAAqB,CAAC,MAAM;MAC3BL,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACI,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -35,8 +35,7 @@ const resolveBounds = params => {
|
|
|
35
35
|
currentScreenKey,
|
|
36
36
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
37
37
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
38
|
-
hasTargetOverride
|
|
39
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
38
|
+
hasTargetOverride
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -49,8 +48,7 @@ const resolveBounds = params => {
|
|
|
49
48
|
currentScreenKey,
|
|
50
49
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
51
50
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
52
|
-
hasTargetOverride
|
|
53
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
51
|
+
hasTargetOverride
|
|
54
52
|
};
|
|
55
53
|
}
|
|
56
54
|
const start = sourceBounds;
|
|
@@ -69,8 +67,7 @@ const resolveBounds = params => {
|
|
|
69
67
|
currentScreenKey,
|
|
70
68
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
71
69
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
72
|
-
hasTargetOverride
|
|
73
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
70
|
+
hasTargetOverride
|
|
74
71
|
};
|
|
75
72
|
};
|
|
76
73
|
const computeBoundStyles = ({
|
|
@@ -97,9 +94,7 @@ const computeBoundStyles = ({
|
|
|
97
94
|
entering,
|
|
98
95
|
currentScreenKey,
|
|
99
96
|
sourceScreenKey,
|
|
100
|
-
destinationScreenKey
|
|
101
|
-
hasTargetOverride,
|
|
102
|
-
usedSnapshotDestination
|
|
97
|
+
destinationScreenKey
|
|
103
98
|
} = resolveBounds({
|
|
104
99
|
id,
|
|
105
100
|
previous,
|
|
@@ -117,8 +112,7 @@ const computeBoundStyles = ({
|
|
|
117
112
|
}
|
|
118
113
|
const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
119
114
|
if (computeOptions.method === "content") {
|
|
120
|
-
const
|
|
121
|
-
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
|
|
115
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
|
|
122
116
|
const contentStart = currentOwnsSource ? end : start;
|
|
123
117
|
const contentEnd = currentOwnsSource ? start : end;
|
|
124
118
|
const geometry = (0, _geometry.computeContentTransformGeometry)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","
|
|
1
|
+
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","NO_STYLES","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGX,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AGC,GAAG;IAClD,MAAMiB,QAAQ,GAAG,IAAAC,yCAA+B,EAAC;MAChDnB,KAAK,EAAEgB,YAAY;MACnBf,GAAG,EAAEgB,UAAU;MACfzC,QAAQ;MACRI,UAAU;MACVwC,MAAM,EAAEtC,cAAc,CAACsC,MAAM;MAC7BC,SAAS,EAAEvC,cAAc,CAACuC;IAC3B,CAAC,CAAC;IAEF,OAAO,IAAAC,mCAAmB,EAAC;MAC1BtB,KAAK,EAAEgB,YAAY;MACnBV,QAAQ;MACRK,MAAM;MACNV,GAAG,EAAEgB,UAAU;MACfC,QAAQ;MACRpC;IACD,CAAC,CAAC;EACH;EAEA,MAAMoC,QAAQ,GAAG,IAAAK,iCAAuB,EAAC;IACxCvB,KAAK;IACLC,GAAG;IACHzB,QAAQ;IACR4C,MAAM,EAAEtC,cAAc,CAACsC,MAAM;IAC7BC,SAAS,EAAEvC,cAAc,CAACuC;EAC3B,CAAC,CAAC;EAEF,MAAMG,MAA4B,GAAG;IACpCxB,KAAK;IACLC,GAAG;IACHK,QAAQ;IACRK,MAAM;IACNO,QAAQ;IACRpC;EACD,CAAC;EAED,MAAM2C,MAAM,GAAG3C,cAAc,CAACgC,MAAM,KAAK,MAAM;EAC/C,MAAMY,UAAU,GAAG5C,cAAc,CAAC6C,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,mCAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,mCAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,wCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,wCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAA3B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -11,6 +11,8 @@ var _computeBoundsStyles = require("../helpers/compute-bounds-styles");
|
|
|
11
11
|
var _config = require("./config");
|
|
12
12
|
var _math = require("./math");
|
|
13
13
|
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
14
|
+
const UNFOCUSED_ENTER_FADE_END = 1.6;
|
|
15
|
+
const presentedZoomTagByRoute = (0, _reactNativeReanimated.makeMutable)({});
|
|
14
16
|
|
|
15
17
|
/* -------------------------------------------------------------------------- */
|
|
16
18
|
/* LOCAL HELPERS */
|
|
@@ -47,6 +49,65 @@ function getZoomContentTarget({
|
|
|
47
49
|
height
|
|
48
50
|
};
|
|
49
51
|
}
|
|
52
|
+
function resolveDragScaleTuple(value) {
|
|
53
|
+
"worklet";
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
shrinkMin: value?.[0] ?? _config.ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
57
|
+
growMax: value?.[1] ?? _config.ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
58
|
+
exponent: value?.[2] ?? _config.ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function resolveBackgroundScale(value) {
|
|
62
|
+
"worklet";
|
|
63
|
+
|
|
64
|
+
return value ?? _config.ZOOM_BACKGROUND_SCALE;
|
|
65
|
+
}
|
|
66
|
+
function resolveEffectiveZoomTag(params) {
|
|
67
|
+
"worklet";
|
|
68
|
+
|
|
69
|
+
const {
|
|
70
|
+
resolvedTag,
|
|
71
|
+
activeRouteKey,
|
|
72
|
+
entering,
|
|
73
|
+
animating,
|
|
74
|
+
activeProgress,
|
|
75
|
+
livePairReady
|
|
76
|
+
} = params;
|
|
77
|
+
|
|
78
|
+
// Only grouped ids need retarget stabilization. Plain ids should keep their
|
|
79
|
+
// normal behavior with no route-level caching.
|
|
80
|
+
if (!activeRouteKey || !resolvedTag.includes(":")) {
|
|
81
|
+
return resolvedTag;
|
|
82
|
+
}
|
|
83
|
+
const cachedTag = presentedZoomTagByRoute.value[activeRouteKey];
|
|
84
|
+
const isFreshOpenFrame = entering && activeProgress <= 0.05;
|
|
85
|
+
const shouldFreezeDuringEnter = entering && animating && !isFreshOpenFrame;
|
|
86
|
+
if (!cachedTag || isFreshOpenFrame) {
|
|
87
|
+
presentedZoomTagByRoute.modify(state => ({
|
|
88
|
+
...state,
|
|
89
|
+
[activeRouteKey]: resolvedTag
|
|
90
|
+
}));
|
|
91
|
+
return resolvedTag;
|
|
92
|
+
}
|
|
93
|
+
if (shouldFreezeDuringEnter) {
|
|
94
|
+
return cachedTag;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// After the enter animation, grouped retargeting can still briefly point at a
|
|
98
|
+
// new active id before that tag has usable bounds. Keep presenting the last
|
|
99
|
+
// good tag until the next one is transition-ready.
|
|
100
|
+
if (cachedTag !== resolvedTag && !livePairReady) {
|
|
101
|
+
return cachedTag;
|
|
102
|
+
}
|
|
103
|
+
if (cachedTag !== resolvedTag) {
|
|
104
|
+
presentedZoomTagByRoute.modify(state => ({
|
|
105
|
+
...state,
|
|
106
|
+
[activeRouteKey]: resolvedTag
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
return resolvedTag;
|
|
110
|
+
}
|
|
50
111
|
|
|
51
112
|
/* -------------------------------------------------------------------------- */
|
|
52
113
|
/* BUILD ZOOM STYLES */
|
|
@@ -64,17 +125,31 @@ function buildZoomStyles({
|
|
|
64
125
|
/* ------------------------------ Shared Setup ------------------------------ */
|
|
65
126
|
|
|
66
127
|
const explicitTarget = zoomOptions?.target;
|
|
67
|
-
const debug = zoomOptions?.DEBUG === true;
|
|
68
128
|
const focused = props.focused;
|
|
69
129
|
const progress = props.progress;
|
|
70
130
|
const screenLayout = props.layouts.screen;
|
|
71
131
|
const isEnteringTransition = !props.next;
|
|
132
|
+
const activeRouteKey = props.active.route.key;
|
|
72
133
|
const currentRouteKey = props.current?.route.key;
|
|
73
134
|
const previousRouteKey = props.previous?.route.key;
|
|
74
135
|
const nextRouteKey = props.next?.route.key;
|
|
75
136
|
const resolvedZoomAnchor = (0, _config.getZoomAnchor)(explicitTarget);
|
|
137
|
+
const liveResolvedPair = _bounds.BoundStore.resolveTransitionPair(resolvedTag, {
|
|
138
|
+
currentScreenKey: currentRouteKey,
|
|
139
|
+
previousScreenKey: previousRouteKey,
|
|
140
|
+
nextScreenKey: nextRouteKey,
|
|
141
|
+
entering: isEnteringTransition
|
|
142
|
+
});
|
|
143
|
+
const effectiveTag = resolveEffectiveZoomTag({
|
|
144
|
+
resolvedTag,
|
|
145
|
+
activeRouteKey,
|
|
146
|
+
entering: !!props.active.entering,
|
|
147
|
+
animating: !!props.active.animating,
|
|
148
|
+
activeProgress: props.active.progress,
|
|
149
|
+
livePairReady: !!liveResolvedPair.sourceBounds
|
|
150
|
+
});
|
|
76
151
|
const zoomComputeParams = {
|
|
77
|
-
id:
|
|
152
|
+
id: effectiveTag,
|
|
78
153
|
previous: props.previous,
|
|
79
154
|
current: props.current,
|
|
80
155
|
next: props.next,
|
|
@@ -82,11 +157,11 @@ function buildZoomStyles({
|
|
|
82
157
|
dimensions: screenLayout
|
|
83
158
|
};
|
|
84
159
|
const baseRawOptions = {
|
|
85
|
-
id:
|
|
160
|
+
id: effectiveTag,
|
|
86
161
|
raw: true,
|
|
87
162
|
scaleMode: _config.ZOOM_SHARED_OPTIONS.scaleMode
|
|
88
163
|
};
|
|
89
|
-
const resolvedPair = _bounds.BoundStore.resolveTransitionPair(
|
|
164
|
+
const resolvedPair = effectiveTag === resolvedTag ? liveResolvedPair : _bounds.BoundStore.resolveTransitionPair(effectiveTag, {
|
|
90
165
|
currentScreenKey: currentRouteKey,
|
|
91
166
|
previousScreenKey: previousRouteKey,
|
|
92
167
|
nextScreenKey: nextRouteKey,
|
|
@@ -95,16 +170,17 @@ function buildZoomStyles({
|
|
|
95
170
|
const sourceBorderRadius = getSourceBorderRadius(resolvedPair);
|
|
96
171
|
const targetBorderRadius = zoomOptions?.borderRadius ?? sourceBorderRadius;
|
|
97
172
|
const sourceVisibilityStyle = {
|
|
98
|
-
[
|
|
173
|
+
[effectiveTag]: _constants.VISIBLE_STYLE
|
|
99
174
|
};
|
|
100
175
|
const focusedContentSlot = props.navigationMaskEnabled ? _constants.NAVIGATION_MASK_CONTAINER_STYLE_ID : "content";
|
|
101
176
|
|
|
102
177
|
/* --------------------------- Missing Source Guard -------------------------- */
|
|
103
178
|
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
|
|
179
|
+
// Only the focused entering route should be hidden when source bounds are
|
|
180
|
+
// missing. During grouped retargeting, the unfocused/source route can still be
|
|
181
|
+
// styled by the destination interpolator while the new active member is warming
|
|
182
|
+
// up; hiding there blanks the wrong screen.
|
|
183
|
+
if (focused && !resolvedPair.sourceBounds && props.active.entering) {
|
|
108
184
|
return {
|
|
109
185
|
[focusedContentSlot]: _constants.HIDDEN_STYLE
|
|
110
186
|
};
|
|
@@ -127,19 +203,22 @@ function buildZoomStyles({
|
|
|
127
203
|
dimension: screenLayout.height,
|
|
128
204
|
resistance: _config.ZOOM_DRAG_RESISTANCE
|
|
129
205
|
});
|
|
206
|
+
const horizontalDragScale = resolveDragScaleTuple(zoomOptions?.horizontalDragScale);
|
|
207
|
+
const verticalDragScale = resolveDragScaleTuple(zoomOptions?.verticalDragScale);
|
|
208
|
+
const backgroundScale = resolveBackgroundScale(zoomOptions?.backgroundScale);
|
|
130
209
|
const dragXScale = isHorizontalDismiss ? (0, _math.resolveDirectionalDragScale)({
|
|
131
210
|
normalized: normX,
|
|
132
211
|
dismissDirection: initialDirection === "horizontal-inverted" ? "negative" : "positive",
|
|
133
|
-
shrinkMin:
|
|
134
|
-
growMax:
|
|
135
|
-
exponent:
|
|
212
|
+
shrinkMin: horizontalDragScale.shrinkMin,
|
|
213
|
+
growMax: horizontalDragScale.growMax,
|
|
214
|
+
exponent: horizontalDragScale.exponent
|
|
136
215
|
}) : IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
137
216
|
const dragYScale = isVerticalDismiss ? (0, _math.resolveDirectionalDragScale)({
|
|
138
217
|
normalized: normY,
|
|
139
218
|
dismissDirection: initialDirection === "vertical-inverted" ? "negative" : "positive",
|
|
140
|
-
shrinkMin:
|
|
141
|
-
growMax:
|
|
142
|
-
exponent:
|
|
219
|
+
shrinkMin: verticalDragScale.shrinkMin,
|
|
220
|
+
growMax: verticalDragScale.growMax,
|
|
221
|
+
exponent: verticalDragScale.exponent
|
|
143
222
|
}) : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
144
223
|
const dragScale = (0, _math.combineScales)(dragXScale, dragYScale);
|
|
145
224
|
|
|
@@ -165,7 +244,7 @@ function buildZoomStyles({
|
|
|
165
244
|
space: "absolute",
|
|
166
245
|
target: "fullscreen"
|
|
167
246
|
}, resolvedPair);
|
|
168
|
-
const focusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [0.6, 1], [0,
|
|
247
|
+
const focusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [0.6, 1], [0, 1], "clamp") : (0, _reactNativeReanimated.interpolate)(progress, [0, 0.5], [0, 1], "clamp");
|
|
169
248
|
|
|
170
249
|
/**
|
|
171
250
|
* This is also how swiftui handles their navigation zoom.
|
|
@@ -225,17 +304,18 @@ function buildZoomStyles({
|
|
|
225
304
|
|
|
226
305
|
/* ---------------------------- Unfocused Screen ---------------------------- */
|
|
227
306
|
|
|
228
|
-
const unfocusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [1.
|
|
229
|
-
const unfocusedScale = (0, _reactNativeReanimated.interpolate)(progress, [1, 2], [1,
|
|
307
|
+
const unfocusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [1.9, 2], [1, 0], "clamp") : (0, _reactNativeReanimated.interpolate)(progress, [1, 2], [1, 0], "clamp");
|
|
308
|
+
const unfocusedScale = (0, _reactNativeReanimated.interpolate)(progress, [1, 2], [1, backgroundScale], "clamp");
|
|
230
309
|
const isUnfocusedIdle = props.active.settled === 1;
|
|
231
|
-
const shouldHideUnfocusedIdle = isUnfocusedIdle
|
|
232
|
-
const
|
|
233
|
-
const
|
|
310
|
+
const shouldHideUnfocusedIdle = isUnfocusedIdle;
|
|
311
|
+
const didSourceComponentVisiblyHide = !props.active.closing && unfocusedFade <= _constants.EPSILON;
|
|
312
|
+
const shouldResetUnfocusedElement = !props.active.closing && (props.active.logicallySettled || didSourceComponentVisiblyHide);
|
|
313
|
+
const unfocusedElementTarget = getZoomContentTarget({
|
|
234
314
|
explicitTarget,
|
|
235
315
|
screenLayout,
|
|
236
316
|
anchor: _config.ZOOM_SHARED_OPTIONS.anchor,
|
|
237
317
|
resolvedPair
|
|
238
|
-
})
|
|
318
|
+
});
|
|
239
319
|
const elementRaw = (0, _computeBoundsStyles.computeBoundStyles)(zoomComputeParams, {
|
|
240
320
|
...baseRawOptions,
|
|
241
321
|
anchor: resolvedZoomAnchor,
|
|
@@ -288,15 +368,15 @@ function buildZoomStyles({
|
|
|
288
368
|
elevation: 0
|
|
289
369
|
} : {
|
|
290
370
|
transform: [{
|
|
291
|
-
translateX:
|
|
371
|
+
translateX: shouldResetUnfocusedElement ? 0 : elementTranslateX
|
|
292
372
|
}, {
|
|
293
|
-
translateY:
|
|
373
|
+
translateY: shouldResetUnfocusedElement ? 0 : elementTranslateY
|
|
294
374
|
}, {
|
|
295
|
-
scaleX:
|
|
375
|
+
scaleX: shouldResetUnfocusedElement ? 1 : elementScaleX
|
|
296
376
|
}, {
|
|
297
|
-
scaleY:
|
|
377
|
+
scaleY: shouldResetUnfocusedElement ? 1 : elementScaleY
|
|
298
378
|
}],
|
|
299
|
-
opacity:
|
|
379
|
+
opacity: unfocusedFade,
|
|
300
380
|
zIndex: 9999,
|
|
301
381
|
elevation: 9999
|
|
302
382
|
};
|
|
@@ -308,7 +388,7 @@ function buildZoomStyles({
|
|
|
308
388
|
}]
|
|
309
389
|
}
|
|
310
390
|
},
|
|
311
|
-
[
|
|
391
|
+
[effectiveTag]: {
|
|
312
392
|
style: resolvedElementStyle
|
|
313
393
|
}
|
|
314
394
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_computeBoundsStyles","_config","_math","IDENTITY_DRAG_SCALE_OUTPUT","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","buildZoomStyles","resolvedTag","zoomOptions","props","target","debug","DEBUG","focused","progress","layouts","screen","isEnteringTransition","next","currentRouteKey","current","route","key","previousRouteKey","previous","nextRouteKey","resolvedZoomAnchor","getZoomAnchor","zoomComputeParams","id","dimensions","baseRawOptions","raw","scaleMode","ZOOM_SHARED_OPTIONS","BoundStore","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","entering","sourceBorderRadius","targetBorderRadius","sourceVisibilityStyle","VISIBLE_STYLE","focusedContentSlot","navigationMaskEnabled","NAVIGATION_MASK_CONTAINER_STYLE_ID","active","HIDDEN_STYLE","normX","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","dragX","normalizedToTranslation","normalized","dimension","resistance","ZOOM_DRAG_RESISTANCE","dragY","dragXScale","resolveDirectionalDragScale","dismissDirection","shrinkMin","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","growMax","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","exponent","dragYScale","dragScale","combineScales","focusedContentTarget","contentRaw","computeBoundStyles","method","maskRaw","space","focusedFade","closing","interpolate","shouldRemoveClipping","animating","focusedMaskBorderRadius","top","right","bottom","left","ZOOM_MASK_OUTSET","maskWidth","Math","max","toNumber","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","focusedContentStyle","opacity","transform","overflow","focusedStyles","style","NAVIGATION_MASK_ELEMENT_STYLE_ID","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","shouldHideUnfocusedIdle","shouldFreezeUnfocusedElement","logicallySettled","unfocusedElementTarget","undefined","destinationBounds","elementRaw","boundTargetCenterX","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","EPSILON","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,oBAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AASA,IAAAK,KAAA,GAAAL,OAAA;AASA,MAAMM,0BAA0B,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;;AAElD;AACA;AACA;;AAEA,SAASC,qBAAqBA,CAACC,YAAoC,EAAU;EAC5E,SAAS;;EAET,OAAO,OAAOA,YAAY,CAACC,YAAY,EAAEC,YAAY,KAAK,QAAQ,GAC/DF,YAAY,CAACC,YAAY,CAACC,YAAY,GACtC,CAAC;AACL;AAEA,SAASC,oBAAoBA,CAAC;EAC7BC,cAAc;EACdC,YAAY;EACZC,MAAM;EACNN;AAMD,CAAC,EAAE;EACF,SAAS;;EAET,IAAII,cAAc,EAAE,OAAOA,cAAc;EAEzC,MAAMG,YAAY,GAAGP,YAAY,CAACO,YAAY;EAC9C,MAAMC,WAAW,GAAGH,YAAY,CAACI,KAAK;EAEtC,IAAI,CAACF,YAAY,IAAIA,YAAY,CAACE,KAAK,IAAI,CAAC,IAAID,WAAW,IAAI,CAAC,EAAE;IACjE,OAAO,YAAY;EACpB;EAEA,MAAME,MAAM,GAAIH,YAAY,CAACG,MAAM,GAAGH,YAAY,CAACE,KAAK,GAAID,WAAW;EACvE,MAAMG,cAAc,GACnBL,MAAM,KAAK,eAAe,IAC1BA,MAAM,KAAK,QAAQ,IACnBA,MAAM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D,CAAC,EACD;MACCE,MAAM,EAAEzB,4BAA4B,GAAG,CAAC,GAAGwB;IAC5C,CAAC,EACD;MACCG,MAAM,EAAE3B,4BAA4B,GAAG,CAAC,GAAG0B;IAC5C,CAAC,CACD;IACDrC,OAAO,EAAE/F,KAAK,GAAG,GAAG,GAAGqG,aAAa;IACpCkC,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRtC,KAAK,EAAE;QACNH,SAAS,EAAE,CAAC;UAAEL,KAAK,EAAEW;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAAC1G,WAAW,GAAG;MACduG,KAAK,EAAEmC;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_computeBoundsStyles","_config","_math","IDENTITY_DRAG_SCALE_OUTPUT","UNFOCUSED_ENTER_FADE_END","presentedZoomTagByRoute","makeMutable","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","resolveDragScaleTuple","value","shrinkMin","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","growMax","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","exponent","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","resolveBackgroundScale","ZOOM_BACKGROUND_SCALE","resolveEffectiveZoomTag","params","resolvedTag","activeRouteKey","entering","animating","activeProgress","livePairReady","includes","cachedTag","isFreshOpenFrame","shouldFreezeDuringEnter","modify","state","buildZoomStyles","zoomOptions","props","target","focused","progress","layouts","screen","isEnteringTransition","next","active","route","key","currentRouteKey","current","previousRouteKey","previous","nextRouteKey","resolvedZoomAnchor","getZoomAnchor","liveResolvedPair","BoundStore","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","effectiveTag","zoomComputeParams","id","dimensions","baseRawOptions","raw","scaleMode","ZOOM_SHARED_OPTIONS","sourceBorderRadius","targetBorderRadius","sourceVisibilityStyle","VISIBLE_STYLE","focusedContentSlot","navigationMaskEnabled","NAVIGATION_MASK_CONTAINER_STYLE_ID","HIDDEN_STYLE","normX","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","dragX","normalizedToTranslation","normalized","dimension","resistance","ZOOM_DRAG_RESISTANCE","dragY","horizontalDragScale","verticalDragScale","backgroundScale","dragXScale","resolveDirectionalDragScale","dismissDirection","dragYScale","dragScale","combineScales","focusedContentTarget","contentRaw","computeBoundStyles","method","maskRaw","space","focusedFade","closing","interpolate","shouldRemoveClipping","focusedMaskBorderRadius","top","right","bottom","left","ZOOM_MASK_OUTSET","maskWidth","Math","max","toNumber","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","focusedContentStyle","opacity","transform","overflow","focusedStyles","style","NAVIGATION_MASK_ELEMENT_STYLE_ID","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","shouldHideUnfocusedIdle","didSourceComponentVisiblyHide","EPSILON","shouldResetUnfocusedElement","logicallySettled","unfocusedElementTarget","elementRaw","boundTargetCenterX","destinationBounds","undefined","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,oBAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAWA,IAAAK,KAAA,GAAAL,OAAA;AASA,MAAMM,0BAA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AACqB,MAAM,EAAE,CAAC,CAAC,GAAGrE,SAAS;EAChE,MAAMsE,aAAa,GAAG,IAAAjD,gBAAQ,EAAC2B,UAAU,CAACuB,MAAM,EAAE,CAAC,CAAC,GAAGvE,SAAS;EAEhE,MAAMwE,oBAAoB,GAAG9B,uBAAuB,GACjD;IACAT,SAAS,EAAE,CACV;MAAET,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEE,UAAU,EAAE;IAAE,CAAC,EACjB;MAAE2C,MAAM,EAAE;IAAE,CAAC,EACb;MAAEE,MAAM,EAAE;IAAE,CAAC,CACb;IACDvC,OAAO,EAAE,CAAC;IACVyC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACZ,CAAC,GACA;IACAzC,SAAS,EAAE,CACV;MACCT,UAAU,EAAEqB,2BAA2B,GAAG,CAAC,GAAGqB;IAC/C,CAAC,EACD;MACCxC,UAAU,EAAEmB,2BAA2B,GAAG,CAAC,GAAGsB;IAC/C,CAAC,EACD;MACCE,MAAM,EAAExB,2BAA2B,GAAG,CAAC,GAAGuB;IAC3C,CAAC,EACD;MACCG,MAAM,EAAE1B,2BAA2B,GAAG,CAAC,GAAGyB;IAC3C,CAAC,CACD;IACDtC,OAAO,EAAEM,aAAa;IACtBmC,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRvC,KAAK,EAAE;QACNH,SAAS,EAAE,CAAC;UAAEL,KAAK,EAAEW;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAAC5E,YAAY,GAAG;MACfyE,KAAK,EAAEoC;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.toNumber = exports.getZoomAnchor = exports.ZOOM_SHARED_OPTIONS = exports.ZOOM_MASK_OUTSET = exports.ZOOM_DRAG_RESISTANCE = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = void 0;
|
|
6
|
+
exports.toNumber = exports.getZoomAnchor = exports.ZOOM_SHARED_OPTIONS = exports.ZOOM_MASK_OUTSET = exports.ZOOM_DRAG_RESISTANCE = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = exports.ZOOM_BACKGROUND_SCALE = void 0;
|
|
7
7
|
const ZOOM_SHARED_OPTIONS = exports.ZOOM_SHARED_OPTIONS = Object.freeze({
|
|
8
8
|
anchor: "top",
|
|
9
9
|
scaleMode: "uniform"
|
|
@@ -11,6 +11,8 @@ const ZOOM_SHARED_OPTIONS = exports.ZOOM_SHARED_OPTIONS = Object.freeze({
|
|
|
11
11
|
const ZOOM_DRAG_RESISTANCE = exports.ZOOM_DRAG_RESISTANCE = 0.4;
|
|
12
12
|
const ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
|
|
13
13
|
const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
14
|
+
const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = exports.ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
15
|
+
const ZOOM_BACKGROUND_SCALE = exports.ZOOM_BACKGROUND_SCALE = 0.9375;
|
|
14
16
|
const ZOOM_MASK_OUTSET = exports.ZOOM_MASK_OUTSET = Object.freeze({
|
|
15
17
|
top: 0,
|
|
16
18
|
right: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ZOOM_SHARED_OPTIONS","exports","Object","freeze","anchor","scaleMode","ZOOM_DRAG_RESISTANCE","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_MASK_OUTSET","top","right","bottom","left","getZoomAnchor","target","toNumber","value","fallback"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/config.ts"],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEK,MAAMC,oBAAoB,GAAAL,OAAA,CAAAK,oBAAA,GAAG,GAAG;AAChC,MAAMC,+BAA+B,GAAAN,OAAA,CAAAM,+BAAA,GAAG,IAAI;AAC5C,MAAMC,+BAA+B,GAAAP,OAAA,CAAAO,+BAAA,GAAG,IAAI;
|
|
1
|
+
{"version":3,"names":["ZOOM_SHARED_OPTIONS","exports","Object","freeze","anchor","scaleMode","ZOOM_DRAG_RESISTANCE","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","ZOOM_BACKGROUND_SCALE","ZOOM_MASK_OUTSET","top","right","bottom","left","getZoomAnchor","target","toNumber","value","fallback"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/config.ts"],"mappings":";;;;;;AAEO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEK,MAAMC,oBAAoB,GAAAL,OAAA,CAAAK,oBAAA,GAAG,GAAG;AAChC,MAAMC,+BAA+B,GAAAN,OAAA,CAAAM,+BAAA,GAAG,IAAI;AAC5C,MAAMC,+BAA+B,GAAAP,OAAA,CAAAO,+BAAA,GAAG,IAAI;AAC5C,MAAMC,oCAAoC,GAAAR,OAAA,CAAAQ,oCAAA,GAAG,CAAC;AAC9C,MAAMC,qBAAqB,GAAAT,OAAA,CAAAS,qBAAA,GAAG,MAAM;AAEpC,MAAMC,gBAAgB,GAAAV,OAAA,CAAAU,gBAAA,GAAGT,MAAM,CAACC,MAAM,CAAC;EAC7CS,GAAG,EAAE,CAAC;EACNC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,IAAI,EAAE;AACP,CAAC,CAAC;AAEK,MAAMC,aAAa,GACzBC,MAA2C,IACd;EAC7B,SAAS;;EACT,OAAOA,MAAM,KAAK,OAAO,GAAG,QAAQ,GAAGjB,mBAAmB,CAACI,MAAM;AAClE,CAAC;AAACH,OAAA,CAAAe,aAAA,GAAAA,aAAA;AAEK,MAAME,QAAQ,GAAGA,CAACC,KAAc,EAAEC,QAAQ,GAAG,CAAC,KAAa;EACjE,SAAS;;EACT,OAAO,OAAOD,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGC,QAAQ;AACpD,CAAC;AAACnB,OAAA,CAAAiB,QAAA,GAAAA,QAAA","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/components/boundary-target.js
CHANGED
|
@@ -11,19 +11,21 @@ export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
|
11
11
|
} = props;
|
|
12
12
|
const targetAnimatedRef = useAnimatedRef();
|
|
13
13
|
const ownerContext = useBoundaryOwnerContext();
|
|
14
|
+
const registerTargetRef = ownerContext?.registerTargetRef;
|
|
15
|
+
const unregisterTargetRef = ownerContext?.unregisterTargetRef;
|
|
14
16
|
const isActiveTarget = ownerContext?.activeTargetRef === targetAnimatedRef;
|
|
15
17
|
useLayoutEffect(() => {
|
|
16
|
-
if (!
|
|
18
|
+
if (!registerTargetRef || !unregisterTargetRef) {
|
|
17
19
|
if (__DEV__) {
|
|
18
20
|
console.warn(TARGET_OUTSIDE_OWNER_WARNING);
|
|
19
21
|
}
|
|
20
22
|
return;
|
|
21
23
|
}
|
|
22
|
-
|
|
24
|
+
registerTargetRef(targetAnimatedRef);
|
|
23
25
|
return () => {
|
|
24
|
-
|
|
26
|
+
unregisterTargetRef(targetAnimatedRef);
|
|
25
27
|
};
|
|
26
|
-
}, [
|
|
28
|
+
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef]);
|
|
27
29
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
28
30
|
...rest,
|
|
29
31
|
ref: targetAnimatedRef,
|
package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useLayoutEffect","Animated","useAnimatedRef","TARGET_OUTSIDE_OWNER_WARNING","useBoundaryOwnerContext","jsx","_jsx","BoundaryTarget","props","style","rest","targetAnimatedRef","ownerContext","
|
|
1
|
+
{"version":3,"names":["memo","useLayoutEffect","Animated","useAnimatedRef","TARGET_OUTSIDE_OWNER_WARNING","useBoundaryOwnerContext","jsx","_jsx","BoundaryTarget","props","style","rest","targetAnimatedRef","ownerContext","registerTargetRef","unregisterTargetRef","isActiveTarget","activeTargetRef","__DEV__","console","warn","View","ref","associatedTargetStyles","undefined","collapsable"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/components/boundary-target.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,eAAe,QAAQ,OAAO;AAE7C,OAAOC,QAAQ,IAAIC,cAAc,QAAQ,yBAAyB;AAClE,SACCC,4BAA4B,EAC5BC,uBAAuB,QACjB,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI9C,OAAO,MAAMC,cAAc,gBAAGR,IAAI,CAAC,SAASQ,cAAcA,CACzDC,KAA0B,EACzB;EACD,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGF,KAAK;EAChC,MAAMG,iBAAiB,GAAGT,cAAc,CAAO,CAAC;EAChD,MAAMU,YAAY,GAAGR,uBAAuB,CAAC,CAAC;EAC9C,MAAMS,iBAAiB,GAAGD,YAAY,EAAEC,iBAAiB;EACzD,MAAMC,mBAAmB,GAAGF,YAAY,EAAEE,mBAAmB;EAC7D,MAAMC,cAAc,GAAGH,YAAY,EAAEI,eAAe,KAAKL,iBAAiB;EAE1EX,eAAe,CAAC,MAAM;IACrB,IAAI,CAACa,iBAAiB,IAAI,CAACC,mBAAmB,EAAE;MAC/C,IAAIG,OAAO,EAAE;QACZC,OAAO,CAACC,IAAI,CAAChB,4BAA4B,CAAC;MAC3C;MACA;IACD;IAEAU,iBAAiB,CAACF,iBAAiB,CAAC;IACpC,OAAO,MAAM;MACZG,mBAAmB,CAACH,iBAAiB,CAAC;IACvC,CAAC;EACF,CAAC,EAAE,CAACE,iBAAiB,EAAEC,mBAAmB,EAAEH,iBAAiB,CAAC,CAAC;EAE/D,oBACCL,IAAA,CAACL,QAAQ,CAACmB,IAAI;IAAA,GACTV,IAAI;IACRW,GAAG,EAAEV,iBAAkB;IACvBF,KAAK,EAAE,CACNA,KAAK,EACLM,cAAc,GAAGH,YAAY,CAACU,sBAAsB,GAAGC,SAAS,CAC/D;IACFC,WAAW,EAAE;EAAM,CACnB,CAAC;AAEJ,CAAC,CAAC","ignoreList":[]}
|