react-native-screen-transitions 3.9.0-beta.1 → 3.9.0-beta.2
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/adapters/with-screen-transitions/index.js +20 -4
- package/lib/commonjs/shared/adapters/with-screen-transitions/index.js.map +1 -1
- package/lib/commonjs/shared/animation/transition-blocking.js +71 -0
- package/lib/commonjs/shared/animation/transition-blocking.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +30 -30
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +30 -95
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +68 -51
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +14 -2
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +32 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/index.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +40 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +14 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +194 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +44 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +17 -16
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +11 -11
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +52 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +14 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +184 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +33 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +7 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/index.js +1 -8
- package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +2 -2
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +1 -15
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +19 -56
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +77 -23
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +41 -12
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js +36 -1
- package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +1 -1
- package/lib/commonjs/shared/configs/presets.js +2 -2
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/index.js +13 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +5 -3
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +10 -2
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +2 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +3 -3
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/adapters/with-screen-transitions/index.js +19 -5
- package/lib/module/shared/adapters/with-screen-transitions/index.js.map +1 -1
- package/lib/module/shared/animation/transition-blocking.js +66 -0
- package/lib/module/shared/animation/transition-blocking.js.map +1 -0
- package/lib/module/shared/components/boundary/components/boundary-target.js +32 -32
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +32 -97
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +72 -55
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +15 -3
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-register-target.js +27 -0
- package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +1 -0
- package/lib/module/shared/components/boundary/index.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +35 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +9 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +189 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +33 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +17 -16
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +11 -11
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +47 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +9 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +179 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +29 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +5 -10
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/index.js +1 -2
- package/lib/module/shared/components/boundary/portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +2 -2
- package/lib/module/shared/components/boundary/portal/utils/naming.js +0 -12
- package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +16 -52
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +74 -20
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/destination-signals.js +39 -10
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/measured-bounds.js +34 -0
- package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/configs/presets.js +2 -2
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/index.js +1 -0
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +5 -3
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +10 -2
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +2 -2
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +3 -3
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts +4 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts.map +1 -1
- package/lib/typescript/shared/animation/transition-blocking.d.ts +33 -0
- package/lib/typescript/shared/animation/transition-blocking.d.ts.map +1 -0
- 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.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/index.d.ts +2 -2
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +2 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +11 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +14 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts +2 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.d.ts +5 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +13 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.d.ts +3 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/index.d.ts +1 -2
- package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +0 -2
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +9 -10
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +21 -21
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +9 -2
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -0
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +3 -3
- package/lib/typescript/shared/types/bounds.types.d.ts +7 -2
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +6 -2
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/adapters/with-screen-transitions/index.tsx +30 -9
- package/src/shared/animation/transition-blocking.ts +79 -0
- package/src/shared/components/boundary/components/boundary-target.tsx +43 -50
- package/src/shared/components/boundary/create-boundary-component.tsx +35 -150
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +103 -81
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +1 -0
- package/src/shared/components/boundary/hooks/use-measurer.ts +12 -4
- package/src/shared/components/boundary/hooks/use-register-target.ts +43 -0
- package/src/shared/components/boundary/index.tsx +2 -2
- package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +48 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +9 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +274 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +59 -0
- package/src/shared/components/boundary/portal/components/{host.tsx → boundary-portal/components/host.tsx} +14 -15
- package/src/shared/components/boundary/portal/components/{portal-boundary-host.tsx → boundary-portal/components/portal-boundary-host.tsx} +12 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +80 -0
- package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.ts +1 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.ts +10 -0
- package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.ts +2 -2
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +250 -0
- package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.ts +38 -8
- package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.ts +4 -15
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +38 -0
- package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.ts +2 -2
- package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.ts +10 -15
- package/src/shared/components/boundary/portal/index.ts +1 -2
- package/src/shared/components/boundary/portal/teleport.ts +2 -2
- package/src/shared/components/boundary/portal/utils/naming.ts +0 -19
- package/src/shared/components/boundary/portal/utils/ownership.ts +32 -88
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +198 -78
- package/src/shared/components/boundary/utils/destination-signals.ts +38 -14
- package/src/shared/components/boundary/utils/measured-bounds.ts +48 -0
- package/src/shared/components/screen-container/layers/content.tsx +1 -1
- package/src/shared/configs/presets.ts +2 -2
- package/src/shared/index.ts +4 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
- package/src/shared/providers/screen/styles/slot.provider.tsx +4 -2
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +2 -1
- package/src/shared/stores/system.store.ts +10 -4
- package/src/shared/types/animation.types.ts +3 -3
- package/src/shared/types/bounds.types.ts +9 -2
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +18 -11
- package/src/shared/utils/bounds/navigation/reveal/build.ts +2 -2
- package/src/shared/utils/bounds/navigation/zoom/build.ts +3 -3
- package/src/shared/utils/bounds/types/options.ts +9 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -58
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +0 -272
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -53
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +0 -267
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +0 -20
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +0 -17
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +0 -3
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +0 -1
- package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +0 -66
- package/src/shared/components/boundary/portal/components/portal.tsx +0 -412
- /package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
- /package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
- /package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
- /package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
- /package/lib/typescript/shared/components/boundary/portal/components/{host.d.ts → boundary-portal/components/host.d.ts} +0 -0
- /package/lib/typescript/shared/components/boundary/portal/components/{portal-boundary-host.d.ts → boundary-portal/components/portal-boundary-host.d.ts} +0 -0
- /package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.d.ts +0 -0
- /package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.ts +0 -0
|
@@ -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","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,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,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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":[]}
|
|
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","values","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"],"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NnI,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":[]}
|
|
@@ -4,7 +4,13 @@ import { Children, cloneElement, forwardRef, isValidElement, useCallback, useMem
|
|
|
4
4
|
import { adaptNativeStackTransitionOptions } from "./options";
|
|
5
5
|
import { ScreenTransitionsScreenLayout, ScreenTransitionsStackLayout } from "./stack-layout";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
function
|
|
7
|
+
export function createTransitionScreenLayout(screenLayout) {
|
|
8
|
+
return screenLayoutArgs => /*#__PURE__*/_jsx(ScreenTransitionsScreenLayout, {
|
|
9
|
+
screenLayout: screenLayout,
|
|
10
|
+
screenLayoutArgs: screenLayoutArgs
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export function adaptNavigatorChildren(children) {
|
|
8
14
|
return Children.map(children, child => {
|
|
9
15
|
if (! /*#__PURE__*/isValidElement(child)) {
|
|
10
16
|
return child;
|
|
@@ -20,6 +26,17 @@ function adaptNavigatorChildren(children) {
|
|
|
20
26
|
nextProps.screenOptions = adaptNativeStackTransitionOptions(props.screenOptions);
|
|
21
27
|
changed = true;
|
|
22
28
|
}
|
|
29
|
+
|
|
30
|
+
// Screen and group layouts replace the navigator default, so each override
|
|
31
|
+
// must carry the transition screen layout with it.
|
|
32
|
+
if (typeof props.layout === "function") {
|
|
33
|
+
nextProps.layout = createTransitionScreenLayout(props.layout);
|
|
34
|
+
changed = true;
|
|
35
|
+
}
|
|
36
|
+
if (typeof props.screenLayout === "function") {
|
|
37
|
+
nextProps.screenLayout = createTransitionScreenLayout(props.screenLayout);
|
|
38
|
+
changed = true;
|
|
39
|
+
}
|
|
23
40
|
if (props.children !== undefined && typeof props.children !== "function") {
|
|
24
41
|
nextProps.children = adaptNavigatorChildren(props.children);
|
|
25
42
|
changed = true;
|
|
@@ -41,10 +58,7 @@ export function withScreenTransitions(navigator) {
|
|
|
41
58
|
layout: layout,
|
|
42
59
|
layoutArgs: layoutArgs
|
|
43
60
|
}), [layout]);
|
|
44
|
-
const transitionScreenLayout =
|
|
45
|
-
screenLayout: screenLayout,
|
|
46
|
-
screenLayoutArgs: screenLayoutArgs
|
|
47
|
-
}), [screenLayout]);
|
|
61
|
+
const transitionScreenLayout = useMemo(() => createTransitionScreenLayout(screenLayout), [screenLayout]);
|
|
48
62
|
const screenOptions = useMemo(() => adaptNativeStackTransitionOptions(props.screenOptions), [props.screenOptions]);
|
|
49
63
|
const children = useMemo(() => adaptNavigatorChildren(props.children), [props.children]);
|
|
50
64
|
return /*#__PURE__*/_jsx(BaseNavigator, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Children","cloneElement","forwardRef","isValidElement","useCallback","useMemo","adaptNativeStackTransitionOptions","ScreenTransitionsScreenLayout","ScreenTransitionsStackLayout","jsx","_jsx","adaptNavigatorChildren","children","map","child","props","nextProps","changed","options","screenOptions","undefined","withScreenTransitions","navigator","BaseNavigator","Navigator","ScreenTransitionsNavigator","
|
|
1
|
+
{"version":3,"names":["Children","cloneElement","forwardRef","isValidElement","useCallback","useMemo","adaptNativeStackTransitionOptions","ScreenTransitionsScreenLayout","ScreenTransitionsStackLayout","jsx","_jsx","createTransitionScreenLayout","screenLayout","screenLayoutArgs","adaptNavigatorChildren","children","map","child","props","nextProps","changed","options","screenOptions","layout","undefined","withScreenTransitions","navigator","BaseNavigator","Navigator","ScreenTransitionsNavigator","ref","transitionLayout","layoutArgs","transitionScreenLayout","displayName","name"],"sourceRoot":"../../../../../src","sources":["shared/adapters/with-screen-transitions/index.tsx"],"mappings":";;AAKA,SACCA,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,cAAc,EACdC,WAAW,EACXC,OA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AAEqB,sBAAuB;MAAAlB,QAAA,EAEpCA;IAAQ,CACK,CAAC;EAElB,CACD,CAAC;EAEDa,SAAS,CAACM,WAAW,GAAG,yBACvBP,aAAa,CAACO,WAAW,IAAIP,aAAa,CAACQ,IAAI,IAAI,WAAW,GAC5D;EAEH,OAAO;IACN,GAAGT,SAAS;IACZE;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { HistoryStore } from "../stores/history.store";
|
|
4
|
+
import { SystemStore } from "../stores/system.store";
|
|
5
|
+
import { logger } from "../utils/logger";
|
|
6
|
+
const resolveTransitionRouteKey = (routeKey, actionName) => {
|
|
7
|
+
if (routeKey !== undefined) {
|
|
8
|
+
if (routeKey.length === 0) {
|
|
9
|
+
logger.warn(`${actionName}: routeKey must not be empty`);
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
return routeKey;
|
|
13
|
+
}
|
|
14
|
+
const entry = HistoryStore.getMostRecent();
|
|
15
|
+
if (!entry) {
|
|
16
|
+
logger.warn(`${actionName}: No screens in history`);
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
return entry.descriptor.route.key;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Prevents a screen's pending lifecycle transition from starting.
|
|
24
|
+
*
|
|
25
|
+
* Calls are reference-counted. Every call must be paired with one
|
|
26
|
+
* {@linkcode unblockTransition} call for the same route. When `routeKey` is
|
|
27
|
+
* omitted, the most recently focused screen in navigation history is used.
|
|
28
|
+
*
|
|
29
|
+
* @param routeKey - Route key of the screen to block.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* blockTransition(route.key);
|
|
34
|
+
* // Render or prepare the destination screen.
|
|
35
|
+
* unblockTransition(route.key);
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see {@linkcode unblockTransition}
|
|
39
|
+
*/
|
|
40
|
+
export function blockTransition(routeKey) {
|
|
41
|
+
const resolvedRouteKey = resolveTransitionRouteKey(routeKey, "blockTransition");
|
|
42
|
+
if (!resolvedRouteKey) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
SystemStore.getBag(resolvedRouteKey).actions.blockLifecycleStart();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Releases one lifecycle transition block for a screen.
|
|
50
|
+
*
|
|
51
|
+
* The pending transition can start when the screen's final block is released.
|
|
52
|
+
* Extra calls are safe and leave the block count at zero. When `routeKey` is
|
|
53
|
+
* omitted, the most recently focused screen in navigation history is used.
|
|
54
|
+
*
|
|
55
|
+
* @param routeKey - Route key of the screen to unblock.
|
|
56
|
+
*
|
|
57
|
+
* @see {@linkcode blockTransition}
|
|
58
|
+
*/
|
|
59
|
+
export function unblockTransition(routeKey) {
|
|
60
|
+
const resolvedRouteKey = resolveTransitionRouteKey(routeKey, "unblockTransition");
|
|
61
|
+
if (!resolvedRouteKey) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
SystemStore.getBag(resolvedRouteKey).actions.unblockLifecycleStart();
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=transition-blocking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HistoryStore","SystemStore","logger","resolveTransitionRouteKey","routeKey","actionName","undefined","length","warn","entry","getMostRecent","descriptor","route","key","blockTransition","resolvedRouteKey","getBag","actions","blockLifecycleStart","unblockTransition","unblockLifecycleStart"],"sourceRoot":"../../../../src","sources":["shared/animation/transition-blocking.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW,QAAQ,wBAAwB;AAEpD,SAASC,MAAM,QAAQ,iBAAiB;AAExC,MAAMC,yBAAyB,GAAGA,CACjCC,QAA+B,EAC/BC,UAAmD,KACxB;EAC3B,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC3B,IAAIF,QAAQ,CAACG,MAAM,KAAK,CAAC,EAAE;MAC1BL,MAAM,CAACM,IAAI,CAAC,GAAGH,UAAU,8BAA8B,CAAC;MACxD,OAAOC,SAAS;IACjB;IAEA,OAAOF,QAAQ;EAChB;EAEA,MAAMK,KAAK,GAAGT,YAAY,CAACU,aAAa,CAAC,CAAC;EAC1C,IAAI,CAACD,KAAK,EAAE;IACXP,MAAM,CAACM,IAAI,CAAC,GAAGH,UAAU,yBAAyB,CAAC;IACnD,OAAOC,SAAS;EACjB;EAEA,OAAOG,KAAK,CAACE,UAAU,CAACC,KAAK,CAACC,GAAG;AAClC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACV,QAAoB,EAAQ;EAC3D,MAAMW,gBAAgB,GAAGZ,yBAAyB,CACjDC,QAAQ,EACR,iBACD,CAAC;EACD,IAAI,CAACW,gBAAgB,EAAE;IACtB;EACD;EAEAd,WAAW,CAACe,MAAM,CAACD,gBAAgB,CAAC,CAACE,OAAO,CAACC,mBAAmB,CAAC,CAAC;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACf,QAAoB,EAAQ;EAC7D,MAAMW,gBAAgB,GAAGZ,yBAAyB,CACjDC,QAAQ,EACR,mBACD,CAAC;EACD,IAAI,CAACW,gBAAgB,EAAE;IACtB;EACD;EAEAd,WAAW,CAACe,MAAM,CAACD,gBAAgB,CAAC,CAACE,OAAO,CAACG,qBAAqB,CAAC,CAAC;AACrE","ignoreList":[]}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { memo,
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
4
4
|
import Animated, { useAnimatedRef } from "react-native-reanimated";
|
|
5
5
|
import { useComposedSlotStyles, useSlotLayoutStyles } from "../../../providers/screen/styles";
|
|
6
6
|
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { useRegisterTarget } from "../hooks/use-register-target";
|
|
8
|
+
import { BoundaryContentPortal } from "../portal/components/boundary-content-portal";
|
|
9
|
+
import { BoundaryPortal } from "../portal/components/boundary-portal";
|
|
10
|
+
import { useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
export const BoundaryTarget = /*#__PURE__*/memo(function BoundaryTarget(props) {
|
|
12
13
|
const {
|
|
14
|
+
pointerEvents,
|
|
13
15
|
style,
|
|
14
16
|
...rest
|
|
15
17
|
} = props;
|
|
16
18
|
const targetAnimatedRef = useAnimatedRef();
|
|
17
|
-
const
|
|
19
|
+
const targetEscapePlaceholderRef = useAnimatedRef();
|
|
18
20
|
const rootContext = useBoundaryRootContext();
|
|
19
|
-
const
|
|
20
|
-
const unregisterTargetRef = rootContext?.unregisterTargetRef;
|
|
21
|
+
const boundaryId = rootContext?.boundTag.tag;
|
|
21
22
|
const isActiveTarget = rootContext?.activeTargetRef === targetAnimatedRef;
|
|
22
23
|
const portalRuntime = rootContext?.portalRuntime;
|
|
24
|
+
const portalPointerEvents = typeof pointerEvents === "string" ? pointerEvents : undefined;
|
|
25
|
+
const shouldEscapeTargetToScreenHost = portalRuntime?.escapeClipping === true && boundaryId !== undefined;
|
|
23
26
|
const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.enabled !== true;
|
|
24
27
|
const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.enabled === true;
|
|
25
28
|
const associatedTargetStyles = useComposedSlotStyles(rootContext?.boundTag.tag, style);
|
|
26
29
|
const portalLayoutStyle = useSlotLayoutStyles(rootContext?.boundTag.tag);
|
|
27
30
|
const preparedStyles = useMemo(() => prepareStyleForBounds(style), [style]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
ref: targetAnimatedRef,
|
|
51
|
-
style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
|
|
52
|
-
collapsable: false
|
|
31
|
+
const measurementRef = shouldEscapeTargetToScreenHost ? targetEscapePlaceholderRef : targetAnimatedRef;
|
|
32
|
+
useRegisterTarget({
|
|
33
|
+
preparedStyles,
|
|
34
|
+
measurementRef,
|
|
35
|
+
targetAnimatedRef
|
|
36
|
+
});
|
|
37
|
+
return /*#__PURE__*/_jsx(BoundaryPortal, {
|
|
38
|
+
boundaryId: boundaryId ?? "",
|
|
39
|
+
enabled: shouldEscapeTargetToScreenHost,
|
|
40
|
+
placeholderRef: targetEscapePlaceholderRef,
|
|
41
|
+
pointerEvents: portalPointerEvents,
|
|
42
|
+
children: /*#__PURE__*/_jsx(BoundaryContentPortal, {
|
|
43
|
+
boundaryId: boundaryId,
|
|
44
|
+
enabled: portalRuntime?.handoff === true,
|
|
45
|
+
pointerEvents: portalPointerEvents,
|
|
46
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
47
|
+
...rest,
|
|
48
|
+
pointerEvents: pointerEvents,
|
|
49
|
+
ref: targetAnimatedRef,
|
|
50
|
+
style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
|
|
51
|
+
collapsable: false
|
|
52
|
+
})
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","Animated","useAnimatedRef","useComposedSlotStyles","useSlotLayoutStyles","prepareStyleForBounds","useRegisterTarget","BoundaryContentPortal","BoundaryPortal","useBoundaryRootContext","jsx","_jsx","BoundaryTarget","props","pointerEvents","style","rest","targetAnimatedRef","targetEscapePlaceholderRef","rootContext","boundaryId","boundTag","tag","isActiveTarget","activeTargetRef","portalRuntime","portalPointerEvents","undefined","shouldEscapeTargetToScreenHost","escapeClipping","shouldApplyAssociatedStyleInline","enabled","shouldApplyPortalLayoutStyle","associatedTargetStyles","portalLayoutStyle","preparedStyles","measurementRef","placeholderRef","children","handoff","View","ref","collapsable"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-target.tsx"],"mappings":";;AACA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAErC,OAAOC,QAAQ,IAAIC,cAAc,QAAQ,yBAAyB;AAClE,SACCC,qBAAqB,EACrBC,mBAAmB,QACb,kCAAkC;AACzC,SAASC,qBAAqB,QAAQ,6CAA6C;AACnF,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,qBAAqB,QAAQ,8CAA8C;AACpF,SAASC,cAAc,QAAQ,sCAAsC;AACrE,SAASC,sBAAsB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI7E,OAAO,MAAMC,cAAc,gBAAGb,IAAI,CAAC,SAASa,cAAcA,CACzDC,KAA0B,EACzB;EACD,MAAM;IAAEC,aAAa;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAC/C,MAAMI,iBAAiB,GAAGf,cAAc,CAAO,CAAC;EAChD,MAAMgB,0BAA0B,GAAGhB,cAAc,CAAO,CAAC;EACzD,MAAMiB,WAAW,GAAGV,sBAAsB,CAAC,CAAC;EAC5C,MAAMW,UAAU,GAAGD,WAAW,EAAEE,QAAQ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C,IAAI;QAAA,GACTxB,IAAI;QACRF,aAAa,EAAEA,aAAc;QAC7B2B,GAAG,EAAExB,iBAAkB;QACvBF,KAAK,EAAE,CACNA,KAAK,EACLe,gCAAgC,GAC7BG,sBAAsB,GACtBN,SAAS,EACZK,4BAA4B,GAAGE,iBAAiB,GAAGP,SAAS,CAC3D;QACFe,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB;EAAC,CACT,CAAC;AAEnB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { forwardRef, memo
|
|
4
|
-
import Animated
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
|
-
};
|
|
3
|
+
import { forwardRef, memo } from "react";
|
|
4
|
+
import Animated from "react-native-reanimated";
|
|
5
|
+
import { BoundaryContentPortalHost } from "./portal/components/boundary-content-portal";
|
|
6
|
+
import { BoundaryPortal } from "./portal/components/boundary-portal";
|
|
7
|
+
import { BoundaryRootProvider } from "./providers/boundary-root.provider";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
9
|
export function createBoundaryComponent(Wrapped, options = {}) {
|
|
24
10
|
const {
|
|
25
11
|
alreadyAnimated = false
|
|
@@ -35,93 +21,42 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
35
21
|
target,
|
|
36
22
|
method,
|
|
37
23
|
style,
|
|
38
|
-
onPress,
|
|
39
24
|
handoff,
|
|
40
25
|
escapeClipping,
|
|
41
26
|
children,
|
|
42
27
|
...rest
|
|
43
28
|
} = props;
|
|
44
|
-
|
|
45
|
-
const portalRuntime = resolveBoundaryPortal({
|
|
46
|
-
handoff,
|
|
47
|
-
escapeClipping
|
|
48
|
-
});
|
|
49
|
-
const currentScreenKey = useDescriptorsStore(s => s.derivations.currentScreenKey);
|
|
50
|
-
const hasConfiguredInterpolator = useDescriptorsStore(s => s.derivations.hasConfiguredInterpolator);
|
|
51
|
-
const runtimeEnabled = enabled && hasConfiguredInterpolator;
|
|
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();
|
|
59
|
-
const {
|
|
60
|
-
ref,
|
|
61
|
-
contextValue,
|
|
62
|
-
measuredRef,
|
|
63
|
-
hasActiveTarget,
|
|
64
|
-
targetPreparedStyles
|
|
65
|
-
} = useBoundaryRootState({
|
|
66
|
-
boundTag,
|
|
67
|
-
portalRuntime,
|
|
68
|
-
rootMeasurementRef: canPortalRoot ? rootPlaceholderRef : undefined
|
|
69
|
-
});
|
|
70
|
-
useBoundaryMeasurement({
|
|
71
|
-
boundTag,
|
|
72
|
-
enabled,
|
|
73
|
-
runtimeEnabled,
|
|
74
|
-
currentScreenKey,
|
|
75
|
-
measuredRef,
|
|
76
|
-
style,
|
|
77
|
-
targetPreparedStyles,
|
|
78
|
-
handoff: portalRuntime.handoff,
|
|
79
|
-
escapeClipping: portalRuntime.escapeClipping,
|
|
29
|
+
return /*#__PURE__*/_jsx(BoundaryRootProvider, {
|
|
80
30
|
config: {
|
|
81
31
|
anchor,
|
|
82
32
|
scaleMode,
|
|
83
33
|
target,
|
|
84
34
|
method
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
style: [style, attachedStyle],
|
|
111
|
-
collapsable: false,
|
|
112
|
-
children: [children, canInjectLocalPortalHost ? extraChildren : null]
|
|
113
|
-
});
|
|
114
|
-
const boundaryRoot = renderBoundaryRoot(shouldPortalRoot ? undefined : localPortalHost);
|
|
115
|
-
return /*#__PURE__*/_jsx(BoundaryRootProvider, {
|
|
116
|
-
value: contextValue,
|
|
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
|
|
35
|
+
},
|
|
36
|
+
enabled: enabled,
|
|
37
|
+
escapeClipping: escapeClipping,
|
|
38
|
+
forwardedRef: forwardedRef,
|
|
39
|
+
group: group,
|
|
40
|
+
handoff: handoff,
|
|
41
|
+
id: id,
|
|
42
|
+
style: style,
|
|
43
|
+
children: root => /*#__PURE__*/_jsx(BoundaryPortal, {
|
|
44
|
+
boundaryId: root.boundTag.tag,
|
|
45
|
+
enabled: root.shouldRenderBoundaryRootThroughPortal,
|
|
46
|
+
placeholderRef: root.rootEscapePlaceholderRef,
|
|
47
|
+
children: /*#__PURE__*/_jsx(AnimatedComponent, {
|
|
48
|
+
...rest,
|
|
49
|
+
ref: root.ref,
|
|
50
|
+
style: [style, root.attachedStyle],
|
|
51
|
+
collapsable: false,
|
|
52
|
+
children: /*#__PURE__*/_jsx(BoundaryContentPortalHost, {
|
|
53
|
+
boundaryId: root.boundTag.tag,
|
|
54
|
+
enabled: root.shouldRenderHandoffHost,
|
|
55
|
+
screenKey: root.currentScreenKey,
|
|
56
|
+
children: children
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
})
|
|
125
60
|
});
|
|
126
61
|
});
|
|
127
62
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","memo","
|
|
1
|
+
{"version":3,"names":["forwardRef","memo","Animated","BoundaryContentPortalHost","BoundaryPortal","BoundaryRootProvider","jsx","_jsx","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","config","root","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","rootEscapePlaceholderRef","ref","attachedStyle","collapsable","shouldRenderHandoffHost","screenKey","currentScreenKey"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;AAAA,SAA6BA,UAAU,EAAEC,IAAI,QAAQ,OAAO;AAC5D,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,yBAAyB,QAAQ,6CAA6C;AACvF,SAASC,cAAc,QAAQ,qCAAqC;AACpE,SAASC,oBAAoB,QAAQ,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO1E,OAAO,SAASC,uBAAuBA,CAC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