react-native-screen-transitions 3.9.0-alpha.1 → 3.9.0-alpha.3
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/boundary/components/boundary-target.js +21 -16
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +88 -114
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +14 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +51 -24
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +7 -10
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +10 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +82 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +10 -13
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/index.js +27 -30
- package/lib/commonjs/shared/components/boundary/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +58 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/host.js +20 -4
- package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +53 -32
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +206 -96
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +14 -2
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +5 -44
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +37 -5
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +15 -2
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js +18 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +10 -3
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +28 -49
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +254 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +38 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +29 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +10 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +25 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +65 -0
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +12 -2
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -21
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js +4 -9
- package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +2 -20
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +2 -14
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -16
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -15
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +4 -16
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +6 -3
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +143 -24
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/screen-composer.js +1 -1
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js +95 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js +32 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +16 -11
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +1 -20
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +96 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -36
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +1 -19
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +8 -3
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/index.js +38 -7
- package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/{styles.provider.js → slot.provider.js} +34 -21
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +53 -0
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +37 -2
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +11 -4
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +134 -51
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +1 -3
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +5 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +10 -69
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js +59 -0
- package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +8 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +59 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/logger.js +11 -0
- package/lib/commonjs/shared/utils/logger.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-target.js +19 -14
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +93 -119
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js +30 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +51 -24
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +7 -10
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +10 -7
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +77 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +10 -13
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/index.js +27 -30
- package/lib/module/shared/components/boundary/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +53 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/host.js +21 -5
- package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +53 -32
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +213 -103
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +15 -3
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +4 -41
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +35 -4
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +16 -2
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js +13 -0
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/naming.js +8 -2
- package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js +29 -49
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +246 -0
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +33 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +24 -0
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +8 -0
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js +20 -0
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +57 -0
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -0
- package/lib/module/shared/components/boundary/utils/destination-signals.js +12 -2
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -21
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/source-signals.js +4 -9
- package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +4 -22
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +2 -2
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +4 -16
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +4 -16
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +5 -16
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +4 -16
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +6 -3
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +144 -25
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/screen-composer.js +2 -2
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js +89 -0
- package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js +26 -0
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +16 -11
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +0 -18
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +0 -9
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +87 -0
- package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +36 -36
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +1 -19
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +9 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/index.js +2 -1
- package/lib/module/shared/providers/screen/styles/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +66 -0
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +47 -0
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +33 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +11 -4
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +135 -53
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +1 -3
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +5 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +10 -69
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js +52 -0
- package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +9 -2
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +58 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/logger.js +11 -0
- package/lib/module/shared/utils/logger.js.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts +11 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +28 -0
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +5 -6
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/index.d.ts +36 -229
- package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +4 -3
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +0 -7
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +16 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +16 -32
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +35 -0
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +4 -0
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +37 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/types.d.ts +9 -36
- package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/utils/source-signals.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/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +3 -215
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -3
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts +16 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +3 -4
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +4 -6
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +8 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +4 -3
- package/lib/typescript/shared/stores/bounds/internals/links.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 +22 -20
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +1 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +7 -1
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/logger.d.ts +6 -0
- package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/boundary/components/boundary-target.tsx +30 -16
- package/src/shared/components/boundary/create-boundary-component.tsx +132 -164
- package/src/shared/components/boundary/hooks/lifecycles/use-boundary-presence.ts +41 -0
- package/src/shared/components/boundary/hooks/{use-initial-destination-measurement.ts → lifecycles/use-initial-destination-measurement.ts} +65 -22
- package/src/shared/components/boundary/hooks/{use-initial-source-measurement.ts → lifecycles/use-initial-source-measurement.ts} +10 -12
- package/src/shared/components/boundary/hooks/{use-refresh-boundary.ts → lifecycles/use-refresh-boundary.ts} +10 -10
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +97 -0
- package/src/shared/components/boundary/hooks/use-measurer.ts +16 -24
- package/src/shared/components/boundary/index.tsx +56 -30
- package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +66 -0
- package/src/shared/components/boundary/portal/components/host.tsx +20 -5
- package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +67 -52
- package/src/shared/components/boundary/portal/components/portal.tsx +281 -120
- package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +23 -2
- package/src/shared/components/boundary/portal/stores/host-registry.store.ts +4 -51
- package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +59 -6
- package/src/shared/components/boundary/portal/teleport.ts +28 -3
- package/src/shared/components/boundary/portal/utils/has-local-slot.ts +16 -0
- package/src/shared/components/boundary/portal/utils/naming.ts +11 -1
- package/src/shared/components/boundary/portal/utils/offset-style.ts +37 -139
- package/src/shared/components/boundary/portal/utils/ownership.ts +371 -0
- package/src/shared/components/boundary/portal/utils/resolve-portal.ts +50 -0
- package/src/shared/components/boundary/portal/utils/shallow-equal.ts +25 -0
- package/src/shared/components/boundary/portal/utils/teleport-control.ts +12 -0
- package/src/shared/components/boundary/portal/utils/visible-host.ts +24 -0
- package/src/shared/components/boundary/providers/{boundary-owner.provider.tsx → boundary-root.provider.tsx} +33 -47
- package/src/shared/components/boundary/types.ts +9 -39
- package/src/shared/components/boundary/utils/destination-signals.ts +22 -2
- package/src/shared/components/boundary/utils/refresh-signals.ts +0 -41
- package/src/shared/components/boundary/utils/source-signals.ts +5 -17
- package/src/shared/components/create-transition-aware-component.tsx +3 -25
- package/src/shared/components/overlay/variations/float-overlay.tsx +3 -3
- package/src/shared/components/screen-container/layers/backdrop.tsx +4 -17
- package/src/shared/components/screen-container/layers/content.tsx +4 -16
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +8 -18
- package/src/shared/components/screen-container/layers/surface-container.tsx +4 -17
- package/src/shared/index.ts +0 -5
- package/src/shared/providers/helpers/measured-bounds-writes.ts +6 -11
- package/src/shared/providers/screen/animation/helpers/derivations.ts +3 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +251 -68
- package/src/shared/providers/screen/screen-composer.tsx +3 -3
- package/src/shared/providers/screen/styles/helpers/compose-slot-style.ts +129 -0
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +45 -8
- package/src/shared/providers/screen/styles/helpers/opening-phase.ts +25 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +22 -12
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +3 -1
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +0 -24
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +0 -12
- package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +111 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +48 -38
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +0 -18
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +17 -4
- package/src/shared/providers/screen/styles/index.tsx +13 -4
- package/src/shared/providers/screen/styles/slot.provider.tsx +93 -0
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +71 -0
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +41 -1
- package/src/shared/stores/bounds/internals/entries.ts +13 -5
- package/src/shared/stores/bounds/internals/links.ts +167 -85
- package/src/shared/stores/bounds/internals/resolver.ts +0 -2
- package/src/shared/stores/bounds/types.ts +24 -22
- package/src/shared/stores/system.store.ts +6 -0
- package/src/shared/types/animation.types.ts +8 -1
- package/src/shared/utils/bounds/helpers/styles/compute.ts +22 -124
- package/src/shared/utils/bounds/helpers/styles/local-transform.ts +86 -0
- package/src/shared/utils/bounds/navigation/zoom/build.ts +9 -1
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +96 -0
- package/src/shared/utils/logger.ts +12 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +0 -40
- package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js +0 -68
- package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +0 -26
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js +0 -23
- package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/attachment.js +0 -35
- package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +0 -1
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +0 -60
- package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +0 -21
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +0 -53
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts +0 -9
- package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +0 -21
- package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts +0 -44
- package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +0 -3
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +0 -14
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +0 -1
- package/src/shared/components/boundary/hooks/use-boundary-presence.ts +0 -28
- package/src/shared/components/boundary/portal/utils/attachment.ts +0 -48
- package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +0 -22
- package/src/shared/providers/screen/styles/styles.provider.tsx +0 -60
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_createBoundsAccessorCore","_helpers","_math","_math2","_config","_helpers2","_math3","IDENTITY_DRAG_SCALE_OUTPUT","resolveZoomGestureOptions","rawDrag","maxSensitivity","gestureSensitivity","gestureReleaseVelocityScale","resolveRevealGestureHandoff","buildZoomStyles","tag","zoomOptions","props","target","focused","layouts","screen","screenLayout","transitionProgress","current","next","activeTransitionProgress","active","zoomAnchor","ZOOM_SHARED_OPTIONS","anchor","bounds","createBoundsAccessorCore","getProps","scopedBounds","link","baseRawOptions","scaleMode","buildEffectiveTag","id","sourceBorderRadius","getSourceBorderRadius","targetBorderRadius","borderRadius","focusedElementOpacity","open","resolveOpacityRangeTuple","value","fallback","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","close","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","unfocusedElementOpacity","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","sourceVisibilityStyle","style","VISIBLE_STYLE","navigationMaskEnabled","options","velocityDepth","ZOOM_DISMISS_SCALE_ORBIT_DEPTH","liveGesture","gesture","gestureHandoff","handoff","normX","normY","initialGesture","direction","isHorizontalDismiss","isVerticalDismiss","Math","abs","raw","horizontalDragTranslation","resolveDragTranslationTuple","verticalDragTranslation","dragX","resolveDirectionalDragTranslation","translation","x","dimension","width","negativeMax","positiveMax","exponent","dragY","y","height","horizontalDragScale","resolveDragScaleTuple","verticalDragScale","backgroundScale","resolveBackgroundScale","dragXScale","resolveDirectionalDragScale","normalized","dismissDirection","shrinkMin","growMax","dragYScale","dragScale","combineScales","handoffDragScale","dismissing","resolveDismissScaleHandoff","progress","releaseScale","targetScale","velocity","zoomGestureOptions","focusedContentTarget","getZoomContentTarget","explicitTarget","contentRaw","math","method","maskRaw","space","focusedFade","closing","interpolateOpacityRange","range","shouldRemoveClipping","animating","focusedMaskBorderRadius","interpolate","top","right","bottom","left","ZOOM_MASK_OUTSET","maskWidth","max","toNumber","maskHeight","contentBaseTranslateX","translateX","contentBaseTranslateY","translateY","contentBaseScale","scale","safeContentBaseScale","EPSILON","contentTranslateX","contentTranslateY","contentScale","maskBaseTranslateX","maskBaseTranslateY","maskCenterX","maskCenterY","contentCenterX","contentCenterY","compensatedMaskTranslateX","compensatedMaskTranslateY","compensatedMaskScale","focusedContentStyle","opacity","debug","transform","overflow","focusedStyles","content","NAVIGATION_MASK_ELEMENT_STYLE_ID","unfocusedFade","unfocusedScale","didSourceComponentVisiblyHide","shouldHideUnfocusedElement","unfocusedElementTarget","elementRaw","boundTargetCenterX","destination","pageX","undefined","boundTargetCenterY","pageY","elementCenterX","elementCenterY","unfocusedContentScale","settled","shouldTrackGestureTranslation","shouldTrackGestureScale","elementGestureScale","elementGestureX","elementGestureY","safeUnfocusedContentScale","shouldElevateUnfocusedElement","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAOA,IAAAK,MAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AASA,IAAAO,SAAA,GAAAP,OAAA;AAOA,IAAAQ,MAAA,GAAAR,OAAA;AAGA,MAAMS,0BAA0B,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;AAElD,SAASC,yBAAyBA,CAAC;EAClCC,OAAO;EACPC;AAID,CAAC,EAAE;EACF,SAAS;;EAET,MAAM;IAAEC,kBAAkB;IAAEC;EAA4B,CAAC,GACxD,IAAAC,kCAA2B,EAAC;IAC3BJ,OAAO;IACPC;EACD,CAAC,CAAC;EAEH,OAAO;IACNC,kBAAkB;IAClBC;EACD,CAAC;AACF;;AAEA;AACA;AACA;;AAEO,SAASE,eAAeA,CAAC;EAC/BC,GAAG;EACHC,WAAW;EACXC;AACsB,CAAC,EAAyB;EAChD,SAAS;;EAET,IAAI,CAACF,GAAG,EAAE;IACT,OAAO,CAAC,CAAC;EACV;;EAEA;;EAEA,MAAMG,MAAM,GAAGF,WAAW,EAAEE,MAAM;EAClC,MAAM;IACLC,OAAO;IACPC,OAAO,EAAE;MAAEC,MAAM,EAAEC;IAAa;EACjC,CAAC,GAAGL,KAAK;EACT,MAAMM,kBAAkB,GACvBN,KAAK,CAACO,OAAO,CAACD,kBAAkB,IAAIN,KAAK,CAACQ,IAAI,EAAEF,kBAAkB,IAAI,CAAC,CAAC;EACzE,MAAMG,wBAAwB,GAAGT,KAAK,CAACU,MAAM,CAACJ,kBAAkB;EAEhE,MAAMK,UAAU,GAAGV,MAAM,KAAK,OA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,GAAG;MACpBkB,KAAK,EAAEqJ;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_createBoundsAccessorCore","_helpers","_math","_math2","_config","_helpers2","_math3","IDENTITY_DRAG_SCALE_OUTPUT","resolveZoomGestureOptions","rawDrag","maxSensitivity","gestureSensitivity","gestureReleaseVelocityScale","resolveRevealGestureHandoff","buildZoomStyles","tag","zoomOptions","props","target","focused","layouts","screen","screenLayout","transitionProgress","current","next","activeTransitionProgress","active","zoomAnchor","ZOOM_SHARED_OPTIONS","anchor","bounds","createBoundsAccessorCore","getProps","scopedBounds","link","baseRawOptions","scaleMode","buildEffectiveTag","id","sourceBorderRadius","getSourceBorderRadius","targetBorderRadius","borderRadius","focusedElementOpacity","open","resolveOpacityRangeTuple","value","fallback","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","close","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","unfocusedElementOpacity","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","sourceVisibilityStyle","style","VISIBLE_STYLE","navigationMaskEnabled","options","velocityDepth","ZOOM_DISMISS_SCALE_ORBIT_DEPTH","liveGesture","gesture","gestureHandoff","handoff","normX","normY","initialGesture","resolveZoomPanGestureDirection","direction","rawNormX","raw","rawNormY","isHorizontalDismiss","isVerticalDismiss","Math","abs","horizontalDragTranslation","resolveDragTranslationTuple","verticalDragTranslation","dragX","resolveDirectionalDragTranslation","translation","x","dimension","width","negativeMax","positiveMax","exponent","dragY","y","height","horizontalDragScale","resolveDragScaleTuple","verticalDragScale","backgroundScale","resolveBackgroundScale","dragXScale","resolveDirectionalDragScale","normalized","dismissDirection","shrinkMin","growMax","dragYScale","dragScale","combineScales","handoffDragScale","dismissing","resolveDismissScaleHandoff","progress","releaseScale","targetScale","velocity","zoomGestureOptions","focusedContentTarget","getZoomContentTarget","explicitTarget","contentRaw","math","method","maskRaw","space","focusedFade","closing","interpolateOpacityRange","range","shouldRemoveClipping","animating","focusedMaskBorderRadius","interpolate","top","right","bottom","left","ZOOM_MASK_OUTSET","maskWidth","max","toNumber","maskHeight","contentBaseTranslateX","translateX","contentBaseTranslateY","translateY","contentBaseScale","scale","safeContentBaseScale","EPSILON","contentTranslateX","contentTranslateY","contentScale","maskBaseTranslateX","maskBaseTranslateY","maskCenterX","maskCenterY","contentCenterX","contentCenterY","compensatedMaskTranslateX","compensatedMaskTranslateY","compensatedMaskScale","focusedContentStyle","opacity","debug","transform","overflow","focusedStyles","content","NAVIGATION_MASK_ELEMENT_STYLE_ID","unfocusedFade","unfocusedScale","didSourceComponentVisiblyHide","shouldHideUnfocusedElement","unfocusedElementTarget","elementRaw","boundTargetCenterX","destination","pageX","undefined","boundTargetCenterY","pageY","elementCenterX","elementCenterY","unfocusedContentScale","settled","shouldTrackGestureTranslation","shouldTrackGestureScale","elementGestureScale","elementGestureX","elementGestureY","safeUnfocusedContentScale","shouldElevateUnfocusedElement","scaleShiftX","computeCenterScaleShift","center","containerCenter","scaleShiftY","compensatedGestureX","composeCompensatedTranslation","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAOA,IAAAK,MAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AASA,IAAAO,SAAA,GAAAP,OAAA;AAQA,IAAAQ,MAAA,GAAAR,OAAA;AAGA,MAAMS,0BAA0B,GAAG,CAAC,CAA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C1B,MAAMiB,aAAa,GACjB,IAAApE,iBAAQ,EAACmC,UAAU,CAACkC,MAAM,EAAE,CAAC,CAAC,GAAGrB,mBAAmB,GACrDG,yBAAyB;EAE1B,MAAMmB,oBAAoB,GAAGrC,0BAA0B,GACpD;IACAR,SAAS,EAAE,CACV;MAAEtB,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEE,UAAU,EAAE;IAAE,CAAC,EACjB;MAAE8D,MAAM,EAAE;IAAE,CAAC,EACb;MAAEE,MAAM,EAAE;IAAE,CAAC,CACb;IACD9C,OAAO,EAAEjJ,WAAW,EAAEkJ,KAAK,GAAG,CAAC,GAAG,CAAC;IACnC+C,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACZ,CAAC,GACA;IACA/C,SAAS,EAAE,CACV;MACCtB,UAAU,EAAE6D;IACb,CAAC,EACD;MACC3D,UAAU,EAAE4D;IACb,CAAC,EACD;MACCE,MAAM,EAAED;IACT,CAAC,EACD;MACCG,MAAM,EAAED;IACT,CAAC,CACD;IACD7C,OAAO,EAAEjJ,WAAW,EAAEkJ,KAAK,GAAG,CAAC,GAAGM,aAAa;IAC/CyC,MAAM,EAAEnB,6BAA6B,GAAG,IAAI,GAAG,CAAC;IAChDoB,SAAS,EAAEpB,6BAA6B,GAAG,IAAI,GAAG;EACnD,CAAC;EAEH,OAAO;IACNnI,OAAO,EAAEuD,kBAAkB;IAC3BoD,OAAO,EAAE;MACR9G,KAAK,EAAE;QACN2G,SAAS,EAAE,CAAC;UAAElB,KAAK,EAAEqC;QAAsB,CAAC;MAC7C;IACD,CAAC;IACD,CAAChJ,iBAAiB,GAAG;MACpBkB,KAAK,EAAEwJ;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -8,7 +8,9 @@ exports.interpolateOpacityRange = interpolateOpacityRange;
|
|
|
8
8
|
exports.resolveBackgroundScale = resolveBackgroundScale;
|
|
9
9
|
exports.resolveDragScaleTuple = resolveDragScaleTuple;
|
|
10
10
|
exports.resolveDragTranslationTuple = resolveDragTranslationTuple;
|
|
11
|
+
exports.resolveZoomPanGestureDirection = resolveZoomPanGestureDirection;
|
|
11
12
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
13
|
+
var _constants = require("../../../../constants");
|
|
12
14
|
var _config = require("./config");
|
|
13
15
|
function getZoomContentTarget({
|
|
14
16
|
explicitTarget,
|
|
@@ -59,6 +61,63 @@ function resolveBackgroundScale(value) {
|
|
|
59
61
|
|
|
60
62
|
return value ?? _config.ZOOM_BACKGROUND_SCALE;
|
|
61
63
|
}
|
|
64
|
+
const isResolvedPanDirection = direction => {
|
|
65
|
+
"worklet";
|
|
66
|
+
|
|
67
|
+
return direction === "horizontal" || direction === "horizontal-inverted" || direction === "vertical" || direction === "vertical-inverted";
|
|
68
|
+
};
|
|
69
|
+
const resolveMotionDirection = ({
|
|
70
|
+
normX,
|
|
71
|
+
normY,
|
|
72
|
+
rawNormX,
|
|
73
|
+
rawNormY
|
|
74
|
+
}) => {
|
|
75
|
+
"worklet";
|
|
76
|
+
|
|
77
|
+
const motionX = Math.max(Math.abs(normX), Math.abs(rawNormX));
|
|
78
|
+
const motionY = Math.max(Math.abs(normY), Math.abs(rawNormY));
|
|
79
|
+
if (motionX <= _constants.EPSILON && motionY <= _constants.EPSILON) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
if (motionY > motionX + _constants.EPSILON) {
|
|
83
|
+
return normY < 0 || rawNormY < 0 ? "vertical-inverted" : "vertical";
|
|
84
|
+
}
|
|
85
|
+
if (motionX > motionY + _constants.EPSILON) {
|
|
86
|
+
return normX < 0 || rawNormX < 0 ? "horizontal-inverted" : "horizontal";
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
};
|
|
90
|
+
function resolveZoomPanGestureDirection({
|
|
91
|
+
active,
|
|
92
|
+
direction,
|
|
93
|
+
normX,
|
|
94
|
+
normY,
|
|
95
|
+
rawNormX,
|
|
96
|
+
rawNormY
|
|
97
|
+
}) {
|
|
98
|
+
"worklet";
|
|
99
|
+
|
|
100
|
+
const storedDirection = active ?? direction;
|
|
101
|
+
const motionDirection = resolveMotionDirection({
|
|
102
|
+
normX,
|
|
103
|
+
normY,
|
|
104
|
+
rawNormX,
|
|
105
|
+
rawNormY
|
|
106
|
+
});
|
|
107
|
+
if (!isResolvedPanDirection(storedDirection)) {
|
|
108
|
+
return motionDirection;
|
|
109
|
+
}
|
|
110
|
+
if (!motionDirection) {
|
|
111
|
+
return storedDirection;
|
|
112
|
+
}
|
|
113
|
+
const storedIsHorizontal = storedDirection === "horizontal" || storedDirection === "horizontal-inverted";
|
|
114
|
+
const storedMotion = storedIsHorizontal ? Math.max(Math.abs(normX), Math.abs(rawNormX)) : Math.max(Math.abs(normY), Math.abs(rawNormY));
|
|
115
|
+
const oppositeMotion = storedIsHorizontal ? Math.max(Math.abs(normY), Math.abs(rawNormY)) : Math.max(Math.abs(normX), Math.abs(rawNormX));
|
|
116
|
+
if (oppositeMotion > storedMotion + _constants.EPSILON) {
|
|
117
|
+
return motionDirection;
|
|
118
|
+
}
|
|
119
|
+
return storedDirection;
|
|
120
|
+
}
|
|
62
121
|
function interpolateOpacityRange(params) {
|
|
63
122
|
"worklet";
|
|
64
123
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_config","getZoomContentTarget","explicitTarget","screenLayout","anchor","link","sourceBounds","source","bounds","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","resolveDragTranslationTuple","negativeMax","ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX","positiveMax","ZOOM_DRAG_TRANSLATION_POSITIVE_MAX","ZOOM_DRAG_TRANSLATION_EXPONENT","resolveBackgroundScale","ZOOM_BACKGROUND_SCALE","interpolateOpacityRange","params","progress","range","interpolate","inputStart","inputEnd","outputStart","outputEnd"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_config","getZoomContentTarget","explicitTarget","screenLayout","anchor","link","sourceBounds","source","bounds","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","resolveDragTranslationTuple","negativeMax","ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX","positiveMax","ZOOM_DRAG_TRANSLATION_POSITIVE_MAX","ZOOM_DRAG_TRANSLATION_EXPONENT","resolveBackgroundScale","ZOOM_BACKGROUND_SCALE","isResolvedPanDirection","direction","resolveMotionDirection","normX","normY","rawNormX","rawNormY","motionX","Math","max","abs","motionY","EPSILON","resolveZoomPanGestureDirection","active","storedDirection","motionDirection","storedIsHorizontal","storedMotion","oppositeMotion","interpolateOpacityRange","params","progress","range","interpolate","inputStart","inputEnd","outputStart","outputEnd"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/helpers.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAQA,IAAAE,OAAA,GAAAF,OAAA;AAUO,SAASG,oBAAoBA,CAAC;EACpCC,cAAc;EACdC,YAAY;EACZC,MAAM;EACNC;AAMD,CAAC,EAAE;EACF,SAAS;;EAET,IAAIH,cAAc,EAAE,OAAOA,cAAc;EAEzC,MAAMI,YAAY,GAAGD,IAAI,CAACE,MAAM,EAAEC,MAAM;EACxC,MAAMC,WAAW,GAAGN,YAAY,CAACO,KAAK;EAEtC,IAAI,CAACJ,YAAY,IAAIA,YAAY,CAACI,K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F","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.logger = void 0;
|
|
7
7
|
const LIBRARY_NAME = "react-native-screen-transitions";
|
|
8
|
+
const warnedKeys = new Set();
|
|
8
9
|
const logger = exports.logger = {
|
|
9
10
|
error(message) {
|
|
10
11
|
"worklet";
|
|
@@ -14,6 +15,16 @@ const logger = exports.logger = {
|
|
|
14
15
|
warn(message) {
|
|
15
16
|
"worklet";
|
|
16
17
|
|
|
18
|
+
console.warn(`[${LIBRARY_NAME}] ${message}`);
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* Warns at most once per `key` for the lifetime of the JS context. Use for
|
|
22
|
+
* install/config-level conditions that would otherwise spam every render or
|
|
23
|
+
* every mounted instance. JS-thread only (not a worklet).
|
|
24
|
+
*/
|
|
25
|
+
warnOnce(key, message) {
|
|
26
|
+
if (warnedKeys.has(key)) return;
|
|
27
|
+
warnedKeys.add(key);
|
|
17
28
|
console.warn(`[${LIBRARY_NAME}] ${message}`);
|
|
18
29
|
}
|
|
19
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LIBRARY_NAME","logger","exports","error","message","console","warn"],"sourceRoot":"../../../../src","sources":["shared/utils/logger.ts"],"mappings":";;;;;;AAAA,MAAMA,YAAY,GAAG,iCAAiC;
|
|
1
|
+
{"version":3,"names":["LIBRARY_NAME","warnedKeys","Set","logger","exports","error","message","console","warn","warnOnce","key","has","add"],"sourceRoot":"../../../../src","sources":["shared/utils/logger.ts"],"mappings":";;;;;;AAAA,MAAMA,YAAY,GAAG,iCAAiC;AAEtD,MAAMC,UAAU,GAAG,IAAIC,GAAG,CAAS,CAAC;AAE7B,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACrBE,KAAKA,CAACC,OAAe,EAAE;IACtB,SAAS;;IACTC,OAAO,CAACF,KAAK,CAAC,IAAIL,YAAY,KAAKM,OAAO,EAAE,CAAC;EAC9C,CAAC;EACDE,IAAIA,CAACF,OAAe,EAAE;IACrB,SAAS;;IACTC,OAAO,CAACC,IAAI,CAAC,IAAIR,YAAY,KAAKM,OAAO,EAAE,CAAC;EAC7C,CAAC;EACD;AACD;AACA;AACA;AACA;EACCG,QAAQA,CAACC,GAAW,EAAEJ,OAAe,EAAE;IACtC,IAAIL,UAAU,CAACU,GAAG,CAACD,GAAG,CAAC,EAAE;IACzBT,UAAU,CAACW,GAAG,CAACF,GAAG,CAAC;IACnBH,OAAO,CAACC,IAAI,CAAC,IAAIR,YAAY,KAAKM,OAAO,EAAE,CAAC;EAC7C;AACD,CAAC","ignoreList":[]}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { memo, useLayoutEffect, useMemo } from "react";
|
|
4
4
|
import Animated, { useAnimatedRef } from "react-native-reanimated";
|
|
5
|
+
import { useComposedSlotStyles, useSlotLayoutStyles } from "../../../providers/screen/styles";
|
|
5
6
|
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
6
7
|
import { logger } from "../../../utils/logger";
|
|
7
8
|
import { Portal } from "../portal/components/portal";
|
|
8
|
-
import {
|
|
9
|
+
import { TARGET_OUTSIDE_ROOT_WARNING, useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
11
12
|
const {
|
|
@@ -14,20 +15,23 @@ export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
|
14
15
|
} = props;
|
|
15
16
|
const targetAnimatedRef = useAnimatedRef();
|
|
16
17
|
const placeholderAnimatedRef = useAnimatedRef();
|
|
17
|
-
const
|
|
18
|
-
const registerTargetRef =
|
|
19
|
-
const unregisterTargetRef =
|
|
20
|
-
const isActiveTarget =
|
|
18
|
+
const rootContext = useBoundaryRootContext();
|
|
19
|
+
const registerTargetRef = rootContext?.registerTargetRef;
|
|
20
|
+
const unregisterTargetRef = rootContext?.unregisterTargetRef;
|
|
21
|
+
const isActiveTarget = rootContext?.activeTargetRef === targetAnimatedRef;
|
|
22
|
+
const portalRuntime = rootContext?.portalRuntime;
|
|
23
|
+
const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.enabled !== true;
|
|
24
|
+
const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.enabled === true;
|
|
25
|
+
const associatedTargetStyles = useComposedSlotStyles(rootContext?.boundTag.tag, style);
|
|
26
|
+
const portalLayoutStyle = useSlotLayoutStyles(rootContext?.boundTag.tag);
|
|
21
27
|
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
// the truthful measurement surface whenever a portal is configured.
|
|
26
|
-
const measurementRef = ownerContext?.portal ? placeholderAnimatedRef : targetAnimatedRef;
|
|
28
|
+
// Teleported content can render outside its layout slot. The placeholder is
|
|
29
|
+
// the truthful measurement surface whenever runtime portal behavior is active.
|
|
30
|
+
const measurementRef = portalRuntime?.enabled ? placeholderAnimatedRef : targetAnimatedRef;
|
|
27
31
|
useLayoutEffect(() => {
|
|
28
32
|
if (!registerTargetRef || !unregisterTargetRef) {
|
|
29
33
|
if (__DEV__) {
|
|
30
|
-
logger.warn(
|
|
34
|
+
logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
|
|
31
35
|
}
|
|
32
36
|
return;
|
|
33
37
|
}
|
|
@@ -37,13 +41,14 @@ export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
|
37
41
|
};
|
|
38
42
|
}, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
|
|
39
43
|
return /*#__PURE__*/_jsx(Portal, {
|
|
40
|
-
id:
|
|
41
|
-
|
|
44
|
+
id: rootContext?.boundTag.tag,
|
|
45
|
+
handoff: portalRuntime?.handoff,
|
|
46
|
+
escapeClipping: portalRuntime?.escapeClipping,
|
|
42
47
|
placeholderRef: placeholderAnimatedRef,
|
|
43
48
|
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
44
49
|
...rest,
|
|
45
50
|
ref: targetAnimatedRef,
|
|
46
|
-
style: [style,
|
|
51
|
+
style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
|
|
47
52
|
collapsable: false
|
|
48
53
|
})
|
|
49
54
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useLayoutEffect","useMemo","Animated","useAnimatedRef","prepareStyleForBounds","logger","Portal","
|
|
1
|
+
{"version":3,"names":["memo","useLayoutEffect","useMemo","Animated","useAnimatedRef","useComposedSlotStyles","useSlotLayoutStyles","prepareStyleForBounds","logger","Portal","TARGET_OUTSIDE_ROOT_WARNING","useBoundaryRootContext","jsx","_jsx","BoundaryTarget","props","style","rest","targetAnimatedRef","placeholderAnimatedRef","rootContext","registerTargetRef","unregisterTargetRef","isActiveTarget","activeTargetRef","portalRuntime","shouldApplyAssociatedStyleInline","enabled","shouldApplyPortalLayoutStyle","associatedTargetStyles","boundTag","tag","portalLayoutStyle","preparedStyles","measurementRef","__DEV__","warn","id","handoff","escapeClipping","placeholderRef","children","View","ref","undefined","collapsable"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-target.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,eAAe,EAAEC,OAAO,QAAQ,OAAO;AAEtD,OAAOC,QAAQ,IAAIC,cAAc,QAAQ,yBAAyB;AAClE,SACCC,qBAAqB,EACrBC,mBAAmB,QACb,kCAAkC;AACzC,SAASC,qBAAqB,QAAQ,6CAA6C;AACnF,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,qCAAqC;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AiB,CAACH,iBAAiB,EAAEe,cAAc,EAAEC,cAAc,CAAC;IACpE,OAAO,MAAM;MACZZ,mBAAmB,CAACJ,iBAAiB,CAAC;IACvC,CAAC;EACF,CAAC,EAAE,CACFG,iBAAiB,EACjBC,mBAAmB,EACnBJ,iBAAiB,EACjBe,cAAc,EACdC,cAAc,CACd,CAAC;EAEF,oBACCrB,IAAA,CAACJ,MAAM;IACN4B,EAAE,EAAEjB,WAAW,EAAEU,QAAQ,CAACC,GAAI;IAC9BO,OAAO,EAAEb,aAAa,EAAEa,OAAQ;IAChCC,cAAc,EAAEd,aAAa,EAAEc,cAAe;IAC9CC,cAAc,EAAErB,sBAAuB;IAAAsB,QAAA,eAEvC5B,IAAA,CAACV,QAAQ,CAACuC,IAAI;MAAA,GACTzB,IAAI;MACR0B,GAAG,EAAEzB,iBAAkB;MACvBF,KAAK,EAAE,CACNA,KAAK,EACLU,gCAAgC,GAAGG,sBAAsB,GAAGe,SAAS,EACrEhB,4BAA4B,GAAGI,iBAAiB,GAAGY,SAAS,CAC3D;MACFC,WAAW,EAAE;IAAM,CACnB;EAAC,CACK,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef, memo,
|
|
4
|
-
import Animated, {
|
|
5
|
-
import { NO_STYLES } from "../../constants";
|
|
3
|
+
import { forwardRef, memo, useImperativeHandle, useMemo } from "react";
|
|
4
|
+
import Animated, { useAnimatedRef } from "react-native-reanimated";
|
|
6
5
|
import { useDescriptorsStore } from "../../providers/screen/descriptors";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
import { useComposedSlotStyles, useSlotStackingStyles } from "../../providers/screen/styles";
|
|
7
|
+
import { createBoundTag } from "../../stores/bounds/helpers/link-pairs.helpers";
|
|
8
|
+
import { useBoundaryMeasurement } from "./hooks/use-boundary-measurement";
|
|
9
|
+
import { BoundaryLocalPortalHost } from "./portal/components/boundary-local-portal-host";
|
|
10
|
+
import { Portal } from "./portal/components/portal";
|
|
11
|
+
import { resolveBoundaryPortal } from "./portal/utils/resolve-portal";
|
|
12
|
+
import { BoundaryRootProvider, useBoundaryRootState } from "./providers/boundary-root.provider";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const hasRenderableChildren = children => {
|
|
15
|
+
if (children === null || children === undefined || typeof children === "boolean") {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (Array.isArray(children)) {
|
|
19
|
+
return children.some(hasRenderableChildren);
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
};
|
|
19
23
|
export function createBoundaryComponent(Wrapped, options = {}) {
|
|
20
24
|
const {
|
|
21
|
-
alreadyAnimated = false
|
|
22
|
-
shouldAutoMeasure = false
|
|
25
|
+
alreadyAnimated = false
|
|
23
26
|
} = options;
|
|
24
27
|
const AnimatedComponent = alreadyAnimated ? Wrapped : Animated.createAnimatedComponent(Wrapped);
|
|
25
28
|
const Inner = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
26
|
-
const ownerRef = useAnimatedRef();
|
|
27
29
|
const {
|
|
28
30
|
enabled = true,
|
|
29
31
|
group,
|
|
@@ -34,125 +36,97 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
34
36
|
method,
|
|
35
37
|
style,
|
|
36
38
|
onPress,
|
|
37
|
-
|
|
39
|
+
handoff,
|
|
40
|
+
escapeClipping,
|
|
41
|
+
children,
|
|
38
42
|
...rest
|
|
39
43
|
} = props;
|
|
40
|
-
const
|
|
41
|
-
const
|
|
44
|
+
const boundTag = useMemo(() => createBoundTag(String(id), group), [id, group]);
|
|
45
|
+
const portalRuntime = resolveBoundaryPortal({
|
|
46
|
+
handoff,
|
|
47
|
+
escapeClipping
|
|
48
|
+
});
|
|
42
49
|
const currentScreenKey = useDescriptorsStore(s => s.derivations.currentScreenKey);
|
|
43
50
|
const hasConfiguredInterpolator = useDescriptorsStore(s => s.derivations.hasConfiguredInterpolator);
|
|
44
51
|
const runtimeEnabled = enabled && hasConfiguredInterpolator;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, [anchor, scaleMode, target, method]);
|
|
53
|
-
const ownerPreparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
54
|
-
const {
|
|
55
|
-
stylesMap
|
|
56
|
-
} = useScreenStyles();
|
|
57
|
-
const associatedStyles = useAnimatedStyle(() => {
|
|
58
|
-
"worklet";
|
|
59
|
-
|
|
60
|
-
return stylesMap.get()[entryTag]?.style ?? NO_STYLES;
|
|
61
|
-
});
|
|
62
|
-
const associatedStackingStyles = useAnimatedStyle(() => {
|
|
63
|
-
"worklet";
|
|
64
|
-
|
|
65
|
-
const baseStyle = stylesMap.get()[entryTag]?.style;
|
|
66
|
-
const zIndex = baseStyle?.zIndex ?? 0;
|
|
67
|
-
const elevation = baseStyle?.elevation ?? 0;
|
|
68
|
-
if (zIndex === 0 && elevation === 0) {
|
|
69
|
-
return NO_STYLES;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
zIndex,
|
|
73
|
-
elevation
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
const hasWarned = useRef(false);
|
|
77
|
-
const adjustedPortal = isTeleportAvailable ? portal : undefined;
|
|
78
|
-
if (!hasWarned.current && !isTeleportAvailable && portal) {
|
|
79
|
-
logger.warn("react-native-teleport is not installed and will fallback to default behavior.");
|
|
80
|
-
hasWarned.current = true;
|
|
81
|
-
}
|
|
52
|
+
// Associated slot styles attach whenever the boundary is enabled,
|
|
53
|
+
// independent of whether an interpolator is configured for this transition.
|
|
54
|
+
const shouldAttachAssociatedStyles = enabled;
|
|
55
|
+
const canPortalRoot = portalRuntime.enabled && hasRenderableChildren(children);
|
|
56
|
+
const associatedStyles = useComposedSlotStyles(boundTag.tag, style);
|
|
57
|
+
const associatedStackingStyles = useSlotStackingStyles(boundTag.tag);
|
|
58
|
+
const rootPlaceholderRef = useAnimatedRef();
|
|
82
59
|
const {
|
|
60
|
+
ref,
|
|
83
61
|
contextValue,
|
|
84
62
|
measuredRef,
|
|
85
63
|
hasActiveTarget,
|
|
86
64
|
targetPreparedStyles
|
|
87
|
-
} =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
portal: adjustedPortal
|
|
65
|
+
} = useBoundaryRootState({
|
|
66
|
+
boundTag,
|
|
67
|
+
portalRuntime,
|
|
68
|
+
rootMeasurementRef: canPortalRoot ? rootPlaceholderRef : undefined
|
|
92
69
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const measureBoundary = useMeasurer({
|
|
70
|
+
useBoundaryMeasurement({
|
|
71
|
+
boundTag,
|
|
96
72
|
enabled,
|
|
97
|
-
|
|
98
|
-
linkId,
|
|
99
|
-
group,
|
|
73
|
+
runtimeEnabled,
|
|
100
74
|
currentScreenKey,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
boundaryConfig
|
|
113
|
-
});
|
|
114
|
-
const shouldPassivelyMeasureSource = shouldAutoMeasure && typeof onPress !== "function";
|
|
115
|
-
useInitialSourceMeasurement({
|
|
116
|
-
enabled: runtimeEnabled,
|
|
117
|
-
measureBoundary,
|
|
118
|
-
linkId,
|
|
119
|
-
group,
|
|
120
|
-
shouldAutoMeasure: shouldPassivelyMeasureSource
|
|
75
|
+
measuredRef,
|
|
76
|
+
style,
|
|
77
|
+
targetPreparedStyles,
|
|
78
|
+
handoff: portalRuntime.handoff,
|
|
79
|
+
escapeClipping: portalRuntime.escapeClipping,
|
|
80
|
+
config: {
|
|
81
|
+
anchor,
|
|
82
|
+
scaleMode,
|
|
83
|
+
target,
|
|
84
|
+
method
|
|
85
|
+
}
|
|
121
86
|
});
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
87
|
+
useImperativeHandle(forwardedRef, () => ref.current, [ref]);
|
|
88
|
+
const shouldPortalRoot = canPortalRoot && !hasActiveTarget;
|
|
89
|
+
// A nested active target takes the full associated style, so the root keeps
|
|
90
|
+
// only its stacking context. Without a nested target, a portal'd root is the
|
|
91
|
+
// target, so its associated style is applied through the portal host instead
|
|
92
|
+
// of inline on the teleported element.
|
|
93
|
+
// Host-only handoff receivers still need the associated style: their local
|
|
94
|
+
// portal host is absolute-filled inside this root, so the root is the visual
|
|
95
|
+
// frame that animates the received payload.
|
|
96
|
+
const attachedStyle = shouldAttachAssociatedStyles ? hasActiveTarget ? associatedStackingStyles : shouldPortalRoot ? undefined : associatedStyles : undefined;
|
|
97
|
+
const pressProps = typeof onPress === "function" ? {
|
|
98
|
+
onPress
|
|
99
|
+
} : undefined;
|
|
100
|
+
const localPortalHost = /*#__PURE__*/_jsx(BoundaryLocalPortalHost, {
|
|
101
|
+
boundaryId: boundTag.tag,
|
|
102
|
+
enabled: enabled && portalRuntime.handoff,
|
|
103
|
+
screenKey: currentScreenKey
|
|
126
104
|
});
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
105
|
+
const canInjectLocalPortalHost = typeof children !== "function";
|
|
106
|
+
const renderBoundaryRoot = extraChildren => /*#__PURE__*/_jsxs(AnimatedComponent, {
|
|
107
|
+
...rest,
|
|
108
|
+
...pressProps,
|
|
109
|
+
ref: ref,
|
|
110
|
+
style: [style, attachedStyle],
|
|
111
|
+
collapsable: false,
|
|
112
|
+
children: [children, canInjectLocalPortalHost ? extraChildren : null]
|
|
132
113
|
});
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
runOnUI(measureBoundary)({
|
|
136
|
-
type: "source",
|
|
137
|
-
pairKey: createPendingPairKey(currentScreenKey)
|
|
138
|
-
});
|
|
139
|
-
if (typeof onPress === "function") {
|
|
140
|
-
onPress(...args);
|
|
141
|
-
}
|
|
142
|
-
}, [measureBoundary, onPress, currentScreenKey]);
|
|
143
|
-
const resolvedOnPress = typeof onPress === "function" ? handlePress : undefined;
|
|
144
|
-
useImperativeHandle(forwardedRef, () => ownerRef.current, [ownerRef]);
|
|
145
|
-
return /*#__PURE__*/_jsx(BoundaryOwnerProvider, {
|
|
114
|
+
const boundaryRoot = renderBoundaryRoot(shouldPortalRoot ? undefined : localPortalHost);
|
|
115
|
+
return /*#__PURE__*/_jsx(BoundaryRootProvider, {
|
|
146
116
|
value: contextValue,
|
|
147
|
-
children: /*#__PURE__*/_jsx(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
117
|
+
children: shouldPortalRoot ? /*#__PURE__*/_jsx(Portal, {
|
|
118
|
+
id: boundTag.tag,
|
|
119
|
+
handoff: portalRuntime.handoff,
|
|
120
|
+
escapeClipping: portalRuntime.escapeClipping,
|
|
121
|
+
placeholderRef: rootPlaceholderRef,
|
|
122
|
+
placeholderChildren: portalRuntime.handoff ? localPortalHost : undefined,
|
|
123
|
+
children: boundaryRoot
|
|
124
|
+
}) : boundaryRoot
|
|
154
125
|
});
|
|
155
126
|
});
|
|
156
|
-
|
|
127
|
+
|
|
128
|
+
// The HOC's runtime identity (animated + memoized forwardRef) is not
|
|
129
|
+
// expressible against the public boundary props, so assert it here.
|
|
130
|
+
return /*#__PURE__*/memo(Inner);
|
|
157
131
|
}
|
|
158
132
|
//# sourceMappingURL=create-boundary-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","memo","
|
|
1
|
+
{"version":3,"names":["forwardRef","memo","useImperativeHandle","useMemo","Animated","useAnimatedRef","useDescriptorsStore","useComposedSlotStyles","useSlotStackingStyles","createBoundTag","useBoundaryMeasurement","BoundaryLocalPortalHost","Portal","resolveBoundaryPortal","BoundaryRootProvider","useBoundaryRootState","jsx","_jsx","jsxs","_jsxs","hasRenderableChildren","children","undefined","Array","isArray","some","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","handoff","escapeClipping","rest","boundTag","String","portalRuntime","currentScreenKey","s","derivations","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","canPortalRoot","associatedStyles","tag","associatedStackingStyles","rootPlaceholderRef","ref","contextValue","measuredRef","hasActiveTarget","targetPreparedStyles","rootMeasurementRef","config","current","shouldPortalRoot","attachedStyle","pressProps","localPortalHost","boundaryId","screenKey","canInjectLocalPortalHost","renderBoundaryRoot","extraChildren","collapsable","boundaryRoot","value","placeholderRef","placeholderChildren"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;AAAA,SAECA,UAAU,EACVC,IAAI,EAEJC,mBAAmB,EACnBC,OAAO,QACD,OAAO;AAEd,OAAOC,QAAQ,IAAIC,cAAc,QAAQ,yBAAyB;AAClE,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,SACCC,qBAAqB,EACrBC,qBAAqB,QACf,+BAA+B;AACtC,SAASC,cAAc,QAAQ,gDAAgD;AAC/E,SAASC,sBAAsB,QAAQ,kCAAkC;AACzE,SAASC,uBAAuB,QAAQ,gDAAgD;AACxF,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,qBAAqB,QAAQ,+BAA+B;AACrE,SACCC,oBAAoB,EACpBC,oBAAoB,QACd,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO5C,MAAMC,qBAAqB,GAAIC,QAAmB,IAAc;EA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Effect } from "react";
|
|
4
|
+
import { runOnUI } from "react-native-reanimated";
|
|
5
|
+
import { removeEntry, setEntry } from "../../../../stores/bounds/internals/entries";
|
|
6
|
+
export const useBoundaryPresence = params => {
|
|
7
|
+
const {
|
|
8
|
+
enabled,
|
|
9
|
+
boundTag,
|
|
10
|
+
currentScreenKey,
|
|
11
|
+
boundaryConfig,
|
|
12
|
+
handoff,
|
|
13
|
+
escapeClipping
|
|
14
|
+
} = params;
|
|
15
|
+
const {
|
|
16
|
+
tag
|
|
17
|
+
} = boundTag;
|
|
18
|
+
useLayoutEffect(() => {
|
|
19
|
+
if (!enabled) return;
|
|
20
|
+
runOnUI(setEntry)(tag, currentScreenKey, {
|
|
21
|
+
boundaryConfig,
|
|
22
|
+
handoff: handoff ? true : null,
|
|
23
|
+
escapeClipping: escapeClipping ? true : null
|
|
24
|
+
});
|
|
25
|
+
return () => {
|
|
26
|
+
runOnUI(removeEntry)(tag, currentScreenKey);
|
|
27
|
+
};
|
|
28
|
+
}, [enabled, tag, currentScreenKey, boundaryConfig, handoff, escapeClipping]);
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=use-boundary-presence.js.map
|