react-native-screen-transitions 4.0.0-alpha.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -10
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +53 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +43 -8
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +2 -3
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/source-signals.js +6 -4
- package/lib/commonjs/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js +3 -24
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js +4 -3
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -1
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js +1 -2
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/commonjs/components/overlay/variations/float-overlay.js +0 -2
- package/lib/commonjs/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/variations/overlay-host.js +18 -15
- package/lib/commonjs/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/content.js +10 -5
- package/lib/commonjs/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/surface.js +50 -0
- package/lib/commonjs/components/screen-container/layers/surface.js.map +1 -0
- package/lib/commonjs/components/stack-view.js +7 -29
- package/lib/commonjs/components/stack-view.js.map +1 -1
- package/lib/commonjs/configs/index.js +1 -4
- package/lib/commonjs/configs/index.js.map +1 -1
- package/lib/commonjs/configs/presets.js +1 -384
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/navigators/create-blank-stack-navigator.js +7 -67
- package/lib/commonjs/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/navigators/expo-router/index.js +1 -18
- package/lib/commonjs/navigators/expo-router/index.js.map +1 -1
- package/lib/commonjs/navigators/react-navigation/index.js +1 -3
- package/lib/commonjs/navigators/react-navigation/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/animation.provider.js +6 -1
- package/lib/commonjs/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js +1 -8
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/constants.js +4 -0
- package/lib/commonjs/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js +1 -9
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js +3 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +10 -4
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js +4 -3
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/state-equality.js +9 -2
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/commonjs/utils/create-provider.js +14 -3
- package/lib/commonjs/utils/create-provider.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +50 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +44 -9
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +2 -3
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/utils/source-signals.js +6 -4
- package/lib/module/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/module/components/overlay/helpers/get-active-overlay.js +3 -24
- package/lib/module/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js +4 -3
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -1
- package/lib/module/components/overlay/hooks/use-overlay-slot.js +1 -2
- package/lib/module/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/module/components/overlay/variations/float-overlay.js +0 -2
- package/lib/module/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/components/overlay/variations/overlay-host.js +19 -16
- package/lib/module/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/components/screen-container/layers/content.js +10 -5
- package/lib/module/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/components/screen-container/layers/surface.js +45 -0
- package/lib/module/components/screen-container/layers/surface.js.map +1 -0
- package/lib/module/components/stack-view.js +7 -29
- package/lib/module/components/stack-view.js.map +1 -1
- package/lib/module/configs/index.js +2 -5
- package/lib/module/configs/index.js.map +1 -1
- package/lib/module/configs/presets.js +0 -380
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/navigators/create-blank-stack-navigator.js +7 -66
- package/lib/module/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/navigators/expo-router/index.js +1 -18
- package/lib/module/navigators/expo-router/index.js.map +1 -1
- package/lib/module/navigators/react-navigation/index.js +1 -3
- package/lib/module/navigators/react-navigation/index.js.map +1 -1
- package/lib/module/providers/screen/animation/animation.provider.js +4 -0
- package/lib/module/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/providers/screen/animation/use-screen-animation.js +2 -9
- package/lib/module/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/providers/screen/styles/constants.js +4 -0
- package/lib/module/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js +2 -10
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/providers/screen/styles/slot.provider.js +1 -0
- package/lib/module/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +11 -5
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js +5 -4
- package/lib/module/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/state-equality.js +7 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/module/types/animation.types.js +10 -0
- package/lib/module/types/animation.types.js.map +1 -1
- package/lib/module/utils/create-provider.js +14 -3
- package/lib/module/utils/create-provider.js.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +20 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/source-signals.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts +2 -8
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts +2 -1
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts.map +1 -1
- package/lib/typescript/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -1
- package/lib/typescript/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts +2 -3
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/surface.d.ts +7 -0
- package/lib/typescript/components/screen-container/layers/surface.d.ts.map +1 -0
- package/lib/typescript/components/stack-view.d.ts +1 -1
- package/lib/typescript/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/configs/index.d.ts +0 -9
- package/lib/typescript/configs/index.d.ts.map +1 -1
- package/lib/typescript/configs/presets.d.ts +0 -9
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -10
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigators/create-blank-stack-navigator.d.ts +2 -4
- package/lib/typescript/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/navigators/expo-router/index.d.ts +3 -3
- package/lib/typescript/navigators/expo-router/index.d.ts.map +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts +10 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts +11 -2
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts +3 -3
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts +3 -2
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts +4 -4
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts +6 -5
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts +3 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/types/animation.types.d.ts +15 -7
- package/lib/typescript/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/types/blank-stack.types.d.ts +2 -23
- package/lib/typescript/types/blank-stack.types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +2 -2
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts +8 -6
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +31 -0
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/utils/create-provider.d.ts +4 -1
- package/lib/typescript/utils/create-provider.d.ts.map +1 -1
- package/package.json +3 -8
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +89 -0
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +97 -14
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +2 -6
- package/src/components/boundary/utils/source-signals.ts +6 -4
- package/src/components/overlay/helpers/get-active-overlay.ts +4 -36
- package/src/components/overlay/helpers/retain-ready-overlay-resources.ts +10 -1
- package/src/components/overlay/hooks/use-overlay-slot.ts +1 -5
- package/src/components/overlay/variations/float-overlay.tsx +9 -12
- package/src/components/overlay/variations/overlay-host.tsx +24 -22
- package/src/components/screen-container/layers/content.tsx +12 -7
- package/src/components/screen-container/layers/surface.tsx +65 -0
- package/src/components/stack-view.tsx +8 -39
- package/src/configs/index.ts +0 -6
- package/src/configs/presets.ts +0 -447
- package/src/index.ts +3 -1
- package/src/navigators/create-blank-stack-navigator.tsx +16 -124
- package/src/navigators/expo-router/index.tsx +0 -23
- package/src/navigators/react-navigation/index.tsx +0 -3
- package/src/providers/screen/animation/animation.provider.tsx +60 -54
- package/src/providers/screen/animation/use-screen-animation.tsx +2 -14
- package/src/providers/screen/styles/constants.ts +2 -0
- package/src/providers/screen/styles/hooks/slot-resolvers.tsx +2 -17
- package/src/providers/screen/styles/slot.provider.tsx +2 -0
- package/src/providers/stack/blank-stack-state/helpers/build-blank-stack-state.ts +30 -12
- package/src/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.ts +11 -3
- package/src/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.ts +2 -2
- package/src/providers/stack/blank-stack-state/helpers/state-equality.ts +27 -16
- package/src/providers/stack/blank-stack-state/helpers/types.ts +9 -4
- package/src/types/animation.types.ts +15 -9
- package/src/types/blank-stack.types.ts +1 -29
- package/src/types/index.ts +3 -1
- package/src/types/providers/blank-stack-provider.types.ts +14 -11
- package/src/types/screen.types.ts +36 -0
- package/src/utils/create-provider.tsx +22 -4
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js +0 -16
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js.map +0 -1
- package/lib/commonjs/providers/navigation/navigation-host.provider.js +0 -56
- package/lib/commonjs/providers/navigation/navigation-host.provider.js.map +0 -1
- package/lib/commonjs/providers/navigation/react-navigation-host.js +0 -23
- package/lib/commonjs/providers/navigation/react-navigation-host.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/teleport-control.js +0 -11
- package/lib/module/components/boundary/portal/utils/teleport-control.js.map +0 -1
- package/lib/module/providers/navigation/navigation-host.provider.js +0 -50
- package/lib/module/providers/navigation/navigation-host.provider.js.map +0 -1
- package/lib/module/providers/navigation/react-navigation-host.js +0 -19
- package/lib/module/providers/navigation/react-navigation-host.js.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts +0 -3
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts.map +0 -1
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts +0 -21
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts.map +0 -1
- package/lib/typescript/providers/navigation/react-navigation-host.d.ts +0 -3
- package/lib/typescript/providers/navigation/react-navigation-host.d.ts.map +0 -1
- package/src/components/boundary/portal/utils/teleport-control.ts +0 -13
- package/src/providers/navigation/navigation-host.provider.tsx +0 -75
- package/src/providers/navigation/react-navigation-host.tsx +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","pairDestinationScreenKey","previousReceiverScreenKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","pairDestinationScreenKey","pairHasBoundaryLink","previousReceiverScreenKey","currentPairHasBoundaryLink","resolveRequestedHandoffReceiver","automaticScreenKey","destinationReady","destinationScreenKey","handoffTarget","sourceScreenKey","resolveRequestedHandoffPairKey","destinationPairHasCompleteLink","destinationPairKey","retainedSourcePairHasCompleteLink","retainedSourcePairKey","sourcePairHasCompleteLink","sourcePairKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;AAkBA,OAAO,MAAMA,4BAA4B,GAAGA,CAAC;EAC5CC,YAAY;EACZC,MAAM;EACNC;AACmC,CAAC,KAAoB;EACxD,KAAK,IAAIC,KAAK,GAAGD,MAAM,CAACE,MAAM,GAAG,CAAC,EAAED,KAAK,IAAI,CAAC,EAAEA,KAAK,EAAE,EAAE;IACxD,MAAME,KAAK,GAAGH,MAAM,CAACC,KAAK,CAAC;IAC3B,IAAIE,KAAK,EAAEC,QAAQ,KAAK,SAAS,EAAE;MAClC,OAAOD,KAAK,CAACE,KAAK,CAACC,GAAG;IACvB;EACD;EAEA,OAAOP,MAAM,CAACD,YAAY,CAAC,EAAEQ,GAAG,IAAI,IAAI;AACzC,CAAC;AAED,OAAO,MAAMC,8BAA8B,GAAGA,CAAC;EAC9CT,YAAY;EACZC,MAAM;EACNC;AACmC,CAAC,KAAoB;EACxD,KAAK,IAAIC,KAAK,GAAGD,MAAM,CAACE,MAAM,GAAG,CAAC,EAAED,KAAK,IAAI,CAAC,EAAEA,KAAK,EAAE,EAAE;IACxD,IAAID,MAAM,CAACC,KAAK,CAAC,EAAEG,QAAQ,KAAK,SAAS,EAAE;MAC1C;IACD;IAEA,KAAK,IAAII,a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AAC;AAED,OAAO,MAAMS,+BAA+B,GAAGA,CAAC;EAC/CC,kBAAkB;EAClBC,gBAAgB,GAAG,IAAI;EACvBC,oBAAoB;EACpBC,aAAa;EACbC;AAOD,CAAC,KAAK;EACL,SAAS;;EAET,IAAID,aAAa,KAAK,QAAQ,EAAE;IAC/B,OAAOC,eAAe;EACvB;EAEA,IAAID,aAAa,KAAK,aAAa,EAAE;IACpC,OAAOF,gBAAgB,GAAGC,oBAAoB,GAAGF,kBAAkB;EACpE;EAEA,OAAOA,kBAAkB;AAC1B,CAAC;AAED,OAAO,MAAMK,8BAA8B,GAAGA,CAAC;EAC9CC,8BAA8B;EAC9BC,kBAAkB;EAClBJ,aAAa;EACbK,iCAAiC;EACjCC,qBAAqB;EACrBC,yBAAyB;EACzBC;AASD,CAAC,KAAK;EACL,SAAS;;EAET,IAAIR,aAAa,KAAK,QAAQ,IAAIA,aAAa,KAAK,aAAa,EAAE;IAClE,IAAIO,yBAAyB,EAAE;MAC9B,OAAOC,aAAa;IACrB;IAEA,IAAIL,8BAA8B,EAAE;MACnC,OAAOC,kBAAkB;IAC1B;IAEA,IAAIC,iCAAiC,EAAE;MACtC,OAAOC,qBAAqB;IAC7B;IAEA,OAAOE,aAAa,IAAIJ,kBAAkB,IAAIE,qBAAqB;EACpE;EAEA,OAAOE,aAAa;AACrB,CAAC","ignoreList":[]}
|
|
@@ -8,12 +8,17 @@ import { useBlankStackStore } from "../../../../../../providers/stack/blank-stac
|
|
|
8
8
|
import { AnimationStore } from "../../../../../../stores/animation.store";
|
|
9
9
|
import { getLinkKeyFromTag } from "../../../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
10
10
|
import { getEntry } from "../../../../../../stores/bounds/internals/entries";
|
|
11
|
+
import { getPairKeyForDestination, getPairKeyForSource } from "../../../../../../stores/bounds/internals/links";
|
|
11
12
|
import { pairs } from "../../../../../../stores/bounds/internals/state";
|
|
12
13
|
import { SystemStore } from "../../../../../../stores/system.store";
|
|
13
14
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
14
|
-
import {
|
|
15
|
-
import { resolveActiveHandoffReceiver, resolveHandoffAttachmentCandidate, resolvePreviousHandoffReceiver } from "../helpers/active-handoff-receiver";
|
|
15
|
+
import { resolveActiveHandoffReceiver, resolveHandoffAttachmentCandidate, resolvePreviousHandoffReceiver, resolveRequestedHandoffPairKey, resolveRequestedHandoffReceiver } from "../helpers/active-handoff-receiver";
|
|
16
16
|
import { createBoundaryContentPortalHostName } from "../helpers/host-name";
|
|
17
|
+
const isCompleteActiveLink = (pair, link, boundaryLinkKey) => {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
return link?.status === "complete" && (!link.group || pair?.groups[link.group]?.activeId === boundaryLinkKey);
|
|
21
|
+
};
|
|
17
22
|
export const useBoundaryContentPortalAttachment = ({
|
|
18
23
|
boundaryId
|
|
19
24
|
}) => {
|
|
@@ -21,6 +26,7 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
21
26
|
const currentScreenKey = useDescriptorsStore(s => s.derivations.currentScreenKey);
|
|
22
27
|
const nextScreenKey = useDescriptorsStore(s => s.derivations.nextScreenKey);
|
|
23
28
|
const sourcePairKey = useDescriptorsStore(s => s.derivations.sourcePairKey);
|
|
29
|
+
const destinationPairKey = useDescriptorsStore(s => s.derivations.destinationPairKey);
|
|
24
30
|
const destinationSlots = useOptionalScreenSlotStore(nextScreenKey ?? currentScreenKey);
|
|
25
31
|
const unavailableInterpolatorReady = useSharedValue(0);
|
|
26
32
|
const interpolatorReady = destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
|
|
@@ -36,10 +42,9 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
36
42
|
const slot = slotsMap.get()[boundaryId];
|
|
37
43
|
const {
|
|
38
44
|
pointerEvents: _pointerEvents,
|
|
39
|
-
|
|
45
|
+
handoffTarget,
|
|
40
46
|
...slotProps
|
|
41
47
|
} = slot?.props ?? {};
|
|
42
|
-
const shouldTeleport = isTeleportEnabled(teleport);
|
|
43
48
|
const closing = activeReceiverClosing.get();
|
|
44
49
|
const animationProgress = activeReceiverAnimationProgress.get();
|
|
45
50
|
if (!closing) {
|
|
@@ -50,12 +55,33 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
50
55
|
closing,
|
|
51
56
|
animationProgress
|
|
52
57
|
});
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
58
|
+
const automaticPair = sourcePairKey ? pairs.get()[sourcePairKey] : null;
|
|
59
|
+
const boundaryLinkKey = getLinkKeyFromTag(boundaryId);
|
|
60
|
+
const automaticLink = automaticPair?.links[boundaryLinkKey];
|
|
61
|
+
const requestedSourcePairKey = getPairKeyForSource(boundaryId, currentScreenKey) ?? sourcePairKey;
|
|
62
|
+
const requestedSourcePair = requestedSourcePairKey ? pairs.get()[requestedSourcePairKey] : null;
|
|
63
|
+
const requestedSourceLink = requestedSourcePair?.links[boundaryLinkKey];
|
|
64
|
+
const pairDestination = automaticLink?.status === "complete" && (!automaticLink.group || automaticPair?.groups[automaticLink.group]?.activeId === boundaryLinkKey) ? automaticLink.destination.screenKey : null;
|
|
65
|
+
const requestedDestinationPairKey = getPairKeyForDestination(boundaryId, currentScreenKey) ?? destinationPairKey;
|
|
66
|
+
const destinationPair = requestedDestinationPairKey ? pairs.get()[requestedDestinationPairKey] : null;
|
|
67
|
+
const destinationLink = destinationPair?.links[boundaryLinkKey];
|
|
68
|
+
const retainedSourcePairKey = sourcePairBeforeClose.get() ?? undefined;
|
|
69
|
+
const retainedSourcePair = retainedSourcePairKey ? pairs.get()[retainedSourcePairKey] : null;
|
|
70
|
+
const retainedSourceLink = retainedSourcePair?.links[boundaryLinkKey];
|
|
71
|
+
const requestedPairKey = resolveRequestedHandoffPairKey({
|
|
72
|
+
destinationPairHasCompleteLink: isCompleteActiveLink(destinationPair, destinationLink, boundaryLinkKey),
|
|
73
|
+
destinationPairKey: requestedDestinationPairKey,
|
|
74
|
+
handoffTarget,
|
|
75
|
+
retainedSourcePairHasCompleteLink: isCompleteActiveLink(retainedSourcePair, retainedSourceLink, boundaryLinkKey),
|
|
76
|
+
retainedSourcePairKey,
|
|
77
|
+
sourcePairHasCompleteLink: isCompleteActiveLink(requestedSourcePair, requestedSourceLink, boundaryLinkKey),
|
|
78
|
+
sourcePairKey: requestedSourcePairKey
|
|
79
|
+
});
|
|
80
|
+
const requestedPair = requestedPairKey ? pairs.get()[requestedPairKey] : null;
|
|
81
|
+
const requestedLink = requestedPair?.links[boundaryLinkKey];
|
|
56
82
|
const isInterpolatorReady = interpolatorReady.get();
|
|
57
83
|
const attachedScreenKey = attachedReceiverScreenKey.get();
|
|
58
|
-
const
|
|
84
|
+
const automaticReceiverScreenKey = resolveHandoffAttachmentCandidate({
|
|
59
85
|
activeReceiverClosing: !!closing,
|
|
60
86
|
activeReceiverScreenKey,
|
|
61
87
|
attachedReceiverScreenKey: attachedScreenKey,
|
|
@@ -63,8 +89,17 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
63
89
|
interpolatorReady: !!isInterpolatorReady,
|
|
64
90
|
pairChangedDuringClose,
|
|
65
91
|
pairDestinationScreenKey: pairDestination,
|
|
92
|
+
pairHasBoundaryLink: automaticLink !== undefined,
|
|
66
93
|
previousReceiverScreenKey
|
|
67
94
|
});
|
|
95
|
+
const requestedDestinationScreenKey = requestedLink?.status === "complete" ? requestedLink.destination.screenKey : null;
|
|
96
|
+
const nextReceiverScreenKey = resolveRequestedHandoffReceiver({
|
|
97
|
+
automaticScreenKey: automaticReceiverScreenKey,
|
|
98
|
+
destinationReady: requestedDestinationScreenKey === activeReceiverScreenKey || !!isInterpolatorReady,
|
|
99
|
+
destinationScreenKey: requestedDestinationScreenKey,
|
|
100
|
+
handoffTarget,
|
|
101
|
+
sourceScreenKey: requestedLink?.status === "complete" ? requestedLink.source.screenKey : null
|
|
102
|
+
});
|
|
68
103
|
const receiverEntry = nextReceiverScreenKey ? getEntry(boundaryId, nextReceiverScreenKey) : null;
|
|
69
104
|
const receiverReady = receiverEntry?.handoff === true;
|
|
70
105
|
const returningFromActiveClose = hasActiveCloseFinished && attachedScreenKey === activeReceiverScreenKey;
|
|
@@ -73,7 +108,7 @@ export const useBoundaryContentPortalAttachment = ({
|
|
|
73
108
|
if (nextReceiverScreenKey && receiverReady && canActivateReceiver) {
|
|
74
109
|
attachedReceiverScreenKey.set(nextReceiverScreenKey);
|
|
75
110
|
}
|
|
76
|
-
const targetScreenKey =
|
|
111
|
+
const targetScreenKey = attachedReceiverScreenKey.get();
|
|
77
112
|
const targetHostName = targetScreenKey ? createBoundaryContentPortalHostName(targetScreenKey, boundaryId) : PORTAL_HOST_NAME_RESET_VALUE;
|
|
78
113
|
return {
|
|
79
114
|
...slotProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedProps","useSharedValue","useDescriptorsStore","useOptionalScreenSlotStore","useScreenSlotStore","hasCloseTransitionFinished","useBlankStackStore","AnimationStore","getLinkKeyFromTag","getEntry","pairs","SystemStore","PORTAL_HOST_NAME_RESET_VALUE","
|
|
1
|
+
{"version":3,"names":["useAnimatedProps","useSharedValue","useDescriptorsStore","useOptionalScreenSlotStore","useScreenSlotStore","hasCloseTransitionFinished","useBlankStackStore","AnimationStore","getLinkKeyFromTag","getEntry","getPairKeyForDestination","getPairKeyForSource","pairs","SystemStore","PORTAL_HOST_NAME_RESET_VALUE","resolveActiveHandoffReceiver","resolveHandoffAttachmentCandidate","resolvePreviousHandoffReceiver","resolveRequestedHandoffPairKey","resolveRequestedHandoffReceiver","createBoundaryContentPortalHostName","isCompleteActiveLink","pair","link","boundaryLinkKey","status","group","groups","activeId","useBoundaryContentPortalAttachment","boundaryId","slotsMap","store","currentScreenKey","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","destinationSlots","unavailableInterpolatorReady","interpolatorReady","activeReceiverScreenKey","previousReceiverScreenKey","activeReceiverAnimationProgress","getValue","activeReceiverClosing","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","slotProps","props","closing","animationProgress","set","pairChangedDuringClose","hasActiveCloseFinished","automaticPair","automaticLink","links","requestedSourcePairKey","requestedSourcePair","requestedSourceLink","pairDestination","destination","screenKey","requestedDestinationPairKey","destinationPair","destinationLink","retainedSourcePairKey","undefined","retainedSourcePair","retainedSourceLink","requestedPairKey","destinationPairHasCompleteLink","retainedSourcePairHasCompleteLink","sourcePairHasCompleteLink","requestedPair","requestedLink","isInterpolatorReady","attachedScreenKey","automaticReceiverScreenKey","pairDestinationScreenKey","pairHasBoundaryLink","requestedDestinationScreenKey","nextReceiverScreenKey","automaticScreenKey","destinationReady","destinationScreenKey","sourceScreenKey","source","receiverEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","targetScreenKey","targetHostName","hostName"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,cAAc,QAAQ,yBAAyB;AAC1E,SAASC,mBAAmB,QAAQ,gDAAgD;AACpF,SACCC,0BAA0B,EAC1BC,kBAAkB,QACZ,2CAA2C;AAClD,SAASC,0BAA0B,QAAQ,2EAA2E;AACtH,SAASC,kBAAkB,QAAQ,wDAAwD;AAC3F,SAASC,cAAc,QAAQ,0CAA0C;AACzE,SAASC,iBAAiB,QAAQ,4DAA4D;AAC9F,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SACCC,wBAAwB,EACxBC,mBAAmB,QACb,iDAAiD;AACxD,SAASC,KAAK,QAAQ,iDAAiD;AAKvE,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SACCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,8BAA8B,EAC9BC,8BAA8B,EAC9BC,+BAA+B,QACzB,oCAAoC;AAC3C,SAASC,mCAAmC,QAAQ,sBAAsB;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AAMO,aAAa,GAAGD,aAAa,EAAEE,OAAO,KAAK,IAAI;IAErD,MAAMC,wBAAwB,GAC7BtC,sBAAsB,IAAIwB,iBAAiB,KAAK3C,uBAAuB;IAExE,MAAM0D,yBAAyB,GAC9B,CAAC,CAAChC,eAAe,IACjB,CAAC,CAACgB,mBAAmB,IACrBM,qBAAqB,KAAKtB,eAAe;IAE1C,MAAMiC,mBAAmB,GACxBF,wBAAwB,IACxBC,yBAAyB,IACzB1C,iBAAiB,GAAG,CAAC;IAEtB,IAAIgC,qBAAqB,IAAIO,aAAa,IAAII,mBAAmB,EAAE;MAClEtD,yBAAyB,CAACY,GAAG,CAAC+B,qBAAqB,CAAC;IACrD;IAEA,MAAMY,eAAe,GAAGvD,yBAAyB,CAACI,GAAG,CAAC,CAAC;IAEvD,MAAMoD,cAAc,GAAGD,eAAe,GACnClF,mCAAmC,CAACkF,eAAe,EAAExE,UAAU,CAAC,GAChEhB,4BAA4B;IAE/B,OAAO;MACN,GAAGyC,SAAS;MACZiD,QAAQ,EAAED;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEtD;EAAc,CAAC;AACzB,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { useDescriptorsStore } from "../../../../../../providers/screen/descript
|
|
|
5
5
|
import { useScreenSlotStore } from "../../../../../../providers/screen/styles";
|
|
6
6
|
import { useBoundaryRootStore } from "../../../../providers/boundary-root.provider";
|
|
7
7
|
import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../utils/naming";
|
|
8
|
-
import { isTeleportEnabled } from "../../../utils/teleport-control";
|
|
9
8
|
import { useActiveHostKey } from "../stores/host-registry.store";
|
|
10
9
|
import { useActivePortalBoundaryHost } from "./use-active-portal-boundary-host";
|
|
11
10
|
export const useBoundaryPortalAttachment = ({
|
|
@@ -37,10 +36,10 @@ export const useBoundaryPortalAttachment = ({
|
|
|
37
36
|
const slot = slotsMap.get()[boundaryId];
|
|
38
37
|
const {
|
|
39
38
|
pointerEvents: _pointerEvents,
|
|
40
|
-
|
|
39
|
+
handoffTarget: _handoffTarget,
|
|
41
40
|
...slotProps
|
|
42
41
|
} = slot?.props ?? {};
|
|
43
|
-
const shouldAttach = slot !== undefined &&
|
|
42
|
+
const shouldAttach = slot !== undefined && portalHostReady.get();
|
|
44
43
|
const hostName = shouldAttach ? portalHostName.get() : PORTAL_HOST_NAME_RESET_VALUE;
|
|
45
44
|
return {
|
|
46
45
|
...slotProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedProps","useSharedValue","useDescriptorsStore","useScreenSlotStore","useBoundaryRootStore","PORTAL_HOST_NAME_RESET_VALUE","
|
|
1
|
+
{"version":3,"names":["useAnimatedProps","useSharedValue","useDescriptorsStore","useScreenSlotStore","useBoundaryRootStore","PORTAL_HOST_NAME_RESET_VALUE","useActiveHostKey","useActivePortalBoundaryHost","useBoundaryPortalAttachment","boundaryId","localMeasurement","root","Error","currentScreenKey","s","derivations","slotsMap","store","portalHostName","portalHostReady","escapeHostKey","teleportProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","_handoffTarget","slotProps","props","shouldAttach","undefined","hostName"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,cAAc,QAAQ,yBAAyB;AAC1E,SAASC,mBAAmB,QAAQ,gDAAgD;AACpF,SAASC,kBAAkB,QAAQ,2CAA2C;AAC9E,SAASC,oBAAoB,QAAQ,8CAA8C;AACnF,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,2BAA2B,QAAQ,mCAAmC;AAM/E,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC3CC;AACkC,CAAC,KAAK;EACxC,MAAMC,gBAAgB,GAAGN,oBAAoB,CAAEO,IAAI,IAAK;IACvD,IAAI,CAACA,IAAI,EAAE;MAC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../stores/bounds/helpers/link-pairs.helpers";
|
|
3
4
|
const SOURCE_SIGNAL_PREFIX = "source|";
|
|
4
5
|
export const getInitialSourceCaptureSignal = params => {
|
|
5
6
|
"worklet";
|
|
@@ -15,8 +16,9 @@ export const getInitialSourceCaptureSignal = params => {
|
|
|
15
16
|
return null;
|
|
16
17
|
}
|
|
17
18
|
const pair = linkState?.[sourcePairKey];
|
|
18
|
-
const
|
|
19
|
-
const
|
|
19
|
+
const linkKey = getLinkKeyFromTag(linkId);
|
|
20
|
+
const link = pair?.links?.[linkKey];
|
|
21
|
+
const hasSourceRequest = pair?.sourceRequests?.[linkKey];
|
|
20
22
|
if (!link?.destination && !hasSourceRequest || link?.source) {
|
|
21
23
|
return null;
|
|
22
24
|
}
|
|
@@ -25,11 +27,11 @@ export const getInitialSourceCaptureSignal = params => {
|
|
|
25
27
|
|
|
26
28
|
// Passive grouped sources should not measure every mounted item. Once a
|
|
27
29
|
// group has an active id, only that concrete member can auto-capture.
|
|
28
|
-
if (activeId && activeId !==
|
|
30
|
+
if (activeId && activeId !== linkKey) {
|
|
29
31
|
return null;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
|
-
const signalParts = group ? [group,
|
|
34
|
+
const signalParts = group ? [group, linkKey] : [linkKey];
|
|
33
35
|
return {
|
|
34
36
|
pairKey: sourcePairKey,
|
|
35
37
|
signal: `${SOURCE_SIGNAL_PREFIX}${sourcePairKey}|${signalParts.join("|")}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","linkState","pair","link","links","hasSourceRequest","sourceRequests","destination","source","activeId","groups","signalParts","pairKey","signal","join"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/source-signals.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["getLinkKeyFromTag","SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","linkState","pair","linkKey","link","links","hasSourceRequest","sourceRequests","destination","source","activeId","groups","signalParts","pairKey","signal","join"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/source-signals.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,mDAAmD;AAMrF,MAAMC,oBAAoB,GAAG,SAAS;AAOtC,OAAO,MAAMC,6BAA6B,GAAIC,MAM7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGL,MAAM;EAEnE,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,EAAE;IAC/B,OAAO,IAAI;EACZ;EAEA,MAAMI,IAAI,GAAGD,SAAS,GAAGH,aAAa,CAAC;EACvC,MAAMK,OAAO,GAAGV,iBAAiB,CAACM,MAAM,CAAC;EACzC,MAAMK,IAAI,GAAGF,IAAI,EAAEG,KAAK,GAAGF,OAAO,CAAC;EACnC,MAAMG,gBAAgB,GAAGJ,IAAI,EAAEK,cAAc,GAAGJ,OAAO,CAAC;EAExD,IAAK,CAACC,IAAI,EAAEI,WAAW,IAAI,CAACF,gBAAgB,IAAKF,IAAI,EAAEK,MAAM,EAAE;IAC9D,OAAO,IAAI;EACZ;EAEA,IAAIT,KAAK,EAAE;IACV,MAAMU,QAAQ,GAAGT,SAAS,GAAGH,aAAa,CAAC,EAAEa,MAAM,GAAGX,KAAK,CAAC,EAAEU,QAAQ;;IAEtE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKP,OAAO,EAAE;MACrC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMS,WAAW,GAAGZ,KAAK,GAAG,CAACA,KAAK,EAAEG,OAAO,CAAC,GAAG,CAACA,OAAO,CAAC;EAExD,OAAO;IACNU,OAAO,EAAEf,aAAa;IACtBgB,MAAM,EAAE,GAAGpB,oBAAoB,GAAGI,aAAa,IAAIc,WAAW,CAACG,IAAI,CAAC,GAAG,CAAC;EACzE,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { isOverlayVisible } from "../../../utils/overlay/visibility";
|
|
4
|
-
const resolveOverlayActivity = (scene, distanceFromTop) => {
|
|
5
|
-
if (distanceFromTop === 0 && scene.activity === "closing") {
|
|
6
|
-
return "closing";
|
|
7
|
-
}
|
|
8
|
-
if (distanceFromTop === 0) {
|
|
9
|
-
return "active";
|
|
10
|
-
}
|
|
11
|
-
if (distanceFromTop === 1) {
|
|
12
|
-
return "inert";
|
|
13
|
-
}
|
|
14
|
-
return "inactive";
|
|
15
|
-
};
|
|
16
|
-
|
|
17
4
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* The newest checkpoint owns the active overlay. Its immediate predecessor
|
|
21
|
-
* remains visible and inert; all older checkpoints are retained but inactive.
|
|
22
|
-
* This mirrors the screen activity window without making plain screens create
|
|
23
|
-
* a new overlay checkpoint.
|
|
5
|
+
* Overlay ordering and transition coordination are library-owned. Visibility,
|
|
6
|
+
* interaction, and presentation are user-owned.
|
|
24
7
|
*/
|
|
25
8
|
export function getFloatOverlayStack(scenes, transitionsAlwaysOn) {
|
|
26
9
|
const candidates = [];
|
|
@@ -37,11 +20,7 @@ export function getFloatOverlayStack(scenes, transitionsAlwaysOn) {
|
|
|
37
20
|
});
|
|
38
21
|
}
|
|
39
22
|
}
|
|
40
|
-
|
|
41
|
-
return candidates.map((candidate, index) => ({
|
|
42
|
-
...candidate,
|
|
43
|
-
activity: resolveOverlayActivity(candidate.scene, topIndex - index)
|
|
44
|
-
}));
|
|
23
|
+
return candidates;
|
|
45
24
|
}
|
|
46
25
|
export function getFloatOverlayTransitions(overlayStack, scenes) {
|
|
47
26
|
const topScene = scenes[scenes.length - 1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isOverlayVisible","
|
|
1
|
+
{"version":3,"names":["isOverlayVisible","getFloatOverlayStack","scenes","transitionsAlwaysOn","candidates","index","length","scene","options","descriptor","enableTransitions","push","overlayIndex","getFloatOverlayTransitions","overlayStack","topScene","map","entry","nextEntry","nextPresentedEntry","nextIndex","candidate","activity","driverScene"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/get-active-overlay.ts"],"mappings":";;AAIA,SAASA,gBAAgB,QAAQ,mCAAmC;AAWpE;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CACnCC,MAAoB,EACpBC,mBAA4B,EACN;EACtB,MAAMC,UAA+B,GAAG,EAAE;EAE1C,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGH,MAAM,CAACI,MAAM,EAAED,KAAK,IAAI,CAAC,EAAE;IACtD,MAAME,KAAK,GAAGL,MAAM,CAACG,KAAK,CAAC;IAC3B,MAAMG,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;IAE1C,IAAI,CAACL,mBAAmB,IAAI,CAACK,OAAO,EAAEE,iBAAiB,EAAE;MACxD;IACD;IAEA,IAAIV,gBAAgB,CAACQ,OAAO,CAAC,EAAE;MAC9BJ,UAAU,CAACO,IAAI,CAAC;QAAEJ,KAAK;QAAEK,YAAY,EAAEP;MAAM,CAAC,CAAC;IAChD;EACD;EAEA,OAAOD,UAAU;AAClB;AAEA,OAAO,SAASS,0BAA0BA,CACzCC,YAAiC,EACjCZ,MAAoB,EACY;EAChC,MAAMa,QAAQ,GAAGb,MAAM,CAACA,MAAM,CAACI,MAAM,GAAG,CAAC,CAAC;EAE1C,OAAOQ,YAAY,CAACE,GAAG,CAAC,CAACC,KAAK,EAAEZ,KAAK,KAAK;IACzC,MAAMa,SAAS,GAAGJ,YAAY,CAACT,KAAK,GAAG,CAAC,CAAC;IACzC,IAAIc,kBAAiD;IAErD,KACC,IAAIC,SAAS,GAAGf,KAAK,GAAG,CAAC,EACzBe,SAAS,GAAGN,YAAY,CAACR,MAAM,EAC/Bc,SAAS,EAAE,EACV;MACD,MAAMC,SAAS,GAAGP,YAAY,CAACM,SAAS,CAAC;MACzC,IAAIC,SAAS,EAAEd,KAAK,CAACe,QAAQ,KAAK,SAAS,EAAE;QAC5CH,kBAAkB,GAAGE,SAAS;QAC9B;MACD;IACD;IAEA,MAAME,WAAW,GAChBN,KAAK,CAACV,KAAK,CAACe,QAAQ,KAAK,SAAS,IAAIJ,SAAS,GAC5CD,KAAK,CAACV,KAAK,GACVY,kBAAkB,EAAEZ,KAAK,IAC3BW,SAAS,EAAEX,KAAK,IAChBQ,QAAQ,IACRE,KAAK,CAACV,KAAM;IAEf,OAAO;MACN,GAAGU,KAAK;MACRM;IACD,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export function retainReadyOverlayResources(previous, overlayAnimationStore, driverScene, driverAnimationStore, driverSlots) {
|
|
4
|
-
if (!overlayAnimationStore || !driverAnimationStore || !driverSlots) {
|
|
3
|
+
export function retainReadyOverlayResources(previous, overlayAnimationStore, overlaySlots, driverScene, driverAnimationStore, driverSlots) {
|
|
4
|
+
if (!overlayAnimationStore || !overlaySlots || !driverAnimationStore || !driverSlots) {
|
|
5
5
|
return previous;
|
|
6
6
|
}
|
|
7
|
-
if (previous?.overlayAnimationStore === overlayAnimationStore && previous.driverScene === driverScene && previous.driverAnimationStore === driverAnimationStore && previous.driverSlots === driverSlots) {
|
|
7
|
+
if (previous?.overlayAnimationStore === overlayAnimationStore && previous.overlaySlots === overlaySlots && previous.driverScene === driverScene && previous.driverAnimationStore === driverAnimationStore && previous.driverSlots === driverSlots) {
|
|
8
8
|
return previous;
|
|
9
9
|
}
|
|
10
10
|
return {
|
|
11
11
|
overlayAnimationStore,
|
|
12
|
+
overlaySlots,
|
|
12
13
|
driverScene,
|
|
13
14
|
driverAnimationStore,
|
|
14
15
|
driverSlots
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["retainReadyOverlayResources","previous","overlayAnimationStore","driverScene","driverAnimationStore","driverSlots"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/retain-ready-overlay-resources.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["retainReadyOverlayResources","previous","overlayAnimationStore","overlaySlots","driverScene","driverAnimationStore","driverSlots"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/retain-ready-overlay-resources.ts"],"mappings":";;AAYA,OAAO,SAASA,2BAA2BA,CAC1CC,QAAsC,EACtCC,qBAAyD,EACzDC,YAA2C,EAC3CC,WAAuC,EACvCC,oBAAwD,EACxDC,WAA0C,EACX;EAC/B,IACC,CAACJ,qBAAqB,IACtB,CAACC,YAAY,IACb,CAACE,oBAAoB,IACrB,CAACC,WAAW,EACX;IACD,OAAOL,QAAQ;EAChB;EAEA,IACCA,QAAQ,EAAEC,qBAAqB,KAAKA,qBAAqB,IACzDD,QAAQ,CAACE,YAAY,KAAKA,YAAY,IACtCF,QAAQ,CAACG,WAAW,KAAKA,WAAW,IACpCH,QAAQ,CAACI,oBAAoB,KAAKA,oBAAoB,IACtDJ,QAAQ,CAACK,WAAW,KAAKA,WAAW,EACnC;IACD,OAAOL,QAAQ;EAChB;EAEA,OAAO;IACNC,qBAAqB;IACrBC,YAAY;IACZC,WAAW;IACXC,oBAAoB;IACpBC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","useWindowDimensions","useAnimatedProps","useAnimatedStyle","useDerivedValue","NO_PROPS","NO_STYLES","useBuildTransitionAccessor","collectInterpolatorSharedValues","getVisibilityBlockOffset","createOverlayInterpolatorFrame","shouldUseOverlayGestureDriver","runOverlaySlotInterpolator","useOverlaySlot","overlayAnimationStore","overlayInterpolator","driverAnimationStore","previousOverlayAnimationStore","driverInterpolator","interpolatorReady","isIncoming","height","overlayTransition","driverTransition","interpolatorSharedValues","overlaySlot","screenInterpolatorPropsRevision","get","index","length","overlayFrame","screenInterpolatorProps","driverFrame","overlayOwnsGesture","frame","previousOverlayFrame","interpolator","transition","animatedStyle","slot","transform","translateY","style","animatedProps","slotProps","props","
|
|
1
|
+
{"version":3,"names":["useMemo","useWindowDimensions","useAnimatedProps","useAnimatedStyle","useDerivedValue","NO_PROPS","NO_STYLES","useBuildTransitionAccessor","collectInterpolatorSharedValues","getVisibilityBlockOffset","createOverlayInterpolatorFrame","shouldUseOverlayGestureDriver","runOverlaySlotInterpolator","useOverlaySlot","overlayAnimationStore","overlayInterpolator","driverAnimationStore","previousOverlayAnimationStore","driverInterpolator","interpolatorReady","isIncoming","height","overlayTransition","driverTransition","interpolatorSharedValues","overlaySlot","screenInterpolatorPropsRevision","get","index","length","overlayFrame","screenInterpolatorProps","driverFrame","overlayOwnsGesture","frame","previousOverlayFrame","interpolator","transition","animatedStyle","slot","transform","translateY","style","animatedProps","slotProps","props","handoffTarget","_handoffTarget"],"sourceRoot":"../../../../../src","sources":["components/overlay/hooks/use-overlay-slot.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAECC,gBAAgB,EAChBC,gBAAgB,EAChBC,eAAe,QACT,yBAAyB;AAChC,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AAExD,SAASC,0BAA0B,QAAQ,qFAAqF;AAChI,SAASC,+BAA+B,QAAQ,6EAA6E;AAK7H,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,SACCC,8BAA8B,EAC9BC,6BAA6B,QACvB,8CAA8C;AACrD,SAASC,0BAA0B,QAAQ,0CAA0C;AAErF,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC9BC,qBAAqB;EACrBC,mBAAmB;EACnBC,oBAAoB;EACpBC,6BAA6B;EAC7BC,kBAAkB;EAClBC,iBAAiB;EACjBC;AASD,CAAC,KAAK;EACL,MAAM;IAAEC;EAAO,CAAC,GAAGpB,mBAAmB,CAAC,CAAC;EACxC,MAA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GC;IACtD,CAAC,CAAC;EACH,CAAC,CAAC;EAEF,MAAMe,aAAa,GAAGnC,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,MAAMoC,IAAI,GAAGd,WAAW,CAACE,GAAG,CAAC,CAAC;IAC9B,IAAI,CAACY,IAAI,EAAE;MACV,OAAOjC,SAAS;IACjB;IAEA,IAAIc,UAAU,IAAI,CAACD,iBAAiB,CAACQ,GAAG,CAAC,CAAC,EAAE;MAC3C,OAAO;QACNa,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAEhC,wBAAwB,CAACY,MAAM;QAAE,CAAC;MAC7D,CAAC;IACF;IAEA,OAAOkB,IAAI,CAACG,KAAK,IAAIpC,SAAS;EAC/B,CAAC,CAAC;EAEF,MAAMqC,aAAa,GAAGzC,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,MAAM0C,SAAS,GAAGnB,WAAW,CAACE,GAAG,CAAC,CAAC,EAAEkB,KAAK;IAC1C,IAAI,CAACD,SAAS,EAAE;MACf,OAAOvC,QAAQ;IAChB;IAEA,MAAM;MAAEyC,aAAa,EAAEC,cAAc;MAAE,GAAGF;IAAM,CAAC,GAAGD,SAAS;IAE7D,OAAOC,KAAK;EACb,CAAC,CAAC;EAEF,OAAO;IAAEF,aAAa;IAAEL;EAAc,CAAC;AACxC,CAAC","ignoreList":[]}
|
|
@@ -20,13 +20,11 @@ export function FloatOverlay() {
|
|
|
20
20
|
const overlayTransitions = getFloatOverlayTransitions(overlayStack, scenes);
|
|
21
21
|
return overlayTransitions.map(({
|
|
22
22
|
scene,
|
|
23
|
-
activity,
|
|
24
23
|
driverScene
|
|
25
24
|
}, layerIndex) => /*#__PURE__*/_jsx(OverlayHost, {
|
|
26
25
|
scene: scene,
|
|
27
26
|
driverScene: driverScene,
|
|
28
27
|
previousOverlayScene: overlayTransitions[layerIndex - 1]?.scene,
|
|
29
|
-
activity: activity,
|
|
30
28
|
layerIndex: layerIndex
|
|
31
29
|
}, scene.route.key));
|
|
32
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useBlankStackStore","useStackCoreStore","getFloatOverlayStack","getFloatOverlayTransitions","OverlayHost","jsx","_jsx","FloatOverlay","scenes","store","transitionsAlwaysOn","flags","TRANSITIONS_ALWAYS_ON","overlayStack","length","overlayTransitions","map","scene","
|
|
1
|
+
{"version":3,"names":["useBlankStackStore","useStackCoreStore","getFloatOverlayStack","getFloatOverlayTransitions","OverlayHost","jsx","_jsx","FloatOverlay","scenes","store","transitionsAlwaysOn","flags","TRANSITIONS_ALWAYS_ON","overlayStack","length","overlayTransitions","map","scene","driverScene","layerIndex","previousOverlayScene","route","key"],"sourceRoot":"../../../../../src","sources":["components/overlay/variations/float-overlay.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,+CAA+C;AAClF,SAASC,iBAAiB,QAAQ,wCAAwC;AAE1E,SACCC,oBAAoB,EACpBC,0BAA0B,QACpB,+BAA+B;AACtC,SAASC,WAAW,QAAQ,gBAAgB;;AAE5C;AACA;AACA;AACA;AAHA,SAAAC,GAAA,IAAAC,IAAA;AAIA,OAAO,SAASC,YAAYA,CAAA,EAAG;EAC9B,MAAMC,MAAM,GAAGR,kBAAkB,CAAES,KAAK,IAAKA,KAAK,CAACD,MAAM,CAAC;EAC1D,MAAME,mBAAmB,GAAGT,iBAAiB,CAC3CQ,KAAK,IAAKA,KAAK,CAACE,KAAK,CAACC,qBACxB,CAAC;EAED,MAAMC,YAAY,GAAGX,oBAAoB,CAACM,MAAM,EAAEE,mBAAmB,CAAC;EACtE,IAAIG,YAAY,CAACC,MAAM,KAAK,CAAC,EAAE;IAC9B,OAAO,IAAI;EACZ;EAEA,MAAMC,kBAAkB,GAAGZ,0BAA0B,CAACU,YAAY,EAAEL,MAAM,CAAC;EAE3E,OAAOO,kBAAkB,CAACC,GAAG,CAAC,CAAC;IAAEC,KAAK;IAAEC;EAAY,CAAC,EAAEC,UAAU,kBAChEb,IAAA,CAACF,WAAW;IAEXa,KAAK,EAAEA,KAAM;IACbC,WAAW,EAAEA,WAAY;IACzBE,oBAAoB,EAAEL,kBAAkB,CAACI,UAAU,GAAG,CAAC,CAAC,EAAEF,KAAM;IAChEE,UAAU,EAAEA;EAAW,GAJlBF,KAAK,CAACI,KAAK,CAACC,GAKjB,CACD,CAAC;AACH","ignoreList":[]}
|
|
@@ -4,9 +4,9 @@ import { memo, useMemo, useRef } from "react";
|
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import Animated, { useDerivedValue } from "react-native-reanimated";
|
|
6
6
|
import { snapDescriptorToIndex } from "../../../animation/snap-to";
|
|
7
|
-
import { NavigationScreenProvider } from "../../../providers/navigation/navigation-host.provider";
|
|
8
7
|
import { useOptionalScreenAnimationStore } from "../../../providers/screen/animation";
|
|
9
|
-
import {
|
|
8
|
+
import { ScreenAnimationStoreProvider } from "../../../providers/screen/animation/animation.provider";
|
|
9
|
+
import { ScreenSlotStoreProvider, useOptionalScreenSlotStore } from "../../../providers/screen/styles/slot.provider";
|
|
10
10
|
import { useBlankStackStore } from "../../../providers/stack/blank-stack.provider";
|
|
11
11
|
import { retainReadyOverlayResources } from "../helpers/retain-ready-overlay-resources";
|
|
12
12
|
import { useOverlaySlot } from "../hooks/use-overlay-slot";
|
|
@@ -15,17 +15,17 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
|
|
|
15
15
|
scene,
|
|
16
16
|
driverScene,
|
|
17
17
|
previousOverlayScene,
|
|
18
|
-
activity,
|
|
19
18
|
layerIndex
|
|
20
19
|
}) {
|
|
21
20
|
const overlayAnimationStore = useOptionalScreenAnimationStore(scene.route.key);
|
|
22
21
|
const driverAnimationStore = useOptionalScreenAnimationStore(driverScene.route.key);
|
|
23
22
|
const previousOverlayAnimationStore = useOptionalScreenAnimationStore(previousOverlayScene?.route.key ?? scene.route.key);
|
|
23
|
+
const overlaySlots = useOptionalScreenSlotStore(scene.route.key);
|
|
24
24
|
const driverSlots = useOptionalScreenSlotStore(driverScene.route.key);
|
|
25
25
|
const overlayComponentRef = useRef(scene.descriptor.options.overlay);
|
|
26
26
|
const OverlayComponent = overlayComponentRef.current;
|
|
27
27
|
const readyResourcesRef = useRef(null);
|
|
28
|
-
readyResourcesRef.current = retainReadyOverlayResources(readyResourcesRef.current, overlayAnimationStore, driverScene, driverAnimationStore, driverSlots);
|
|
28
|
+
readyResourcesRef.current = retainReadyOverlayResources(readyResourcesRef.current, overlayAnimationStore, overlaySlots, driverScene, driverAnimationStore, driverSlots);
|
|
29
29
|
const readyResources = readyResourcesRef.current;
|
|
30
30
|
if (!OverlayComponent || !readyResources) {
|
|
31
31
|
return null;
|
|
@@ -33,9 +33,9 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
|
|
|
33
33
|
return /*#__PURE__*/_jsx(ReadyOverlayHost, {
|
|
34
34
|
scene: scene,
|
|
35
35
|
driverScene: readyResources.driverScene,
|
|
36
|
-
activity: activity,
|
|
37
36
|
layerIndex: layerIndex,
|
|
38
37
|
overlayAnimationStore: readyResources.overlayAnimationStore,
|
|
38
|
+
overlaySlots: readyResources.overlaySlots,
|
|
39
39
|
driverAnimationStore: readyResources.driverAnimationStore,
|
|
40
40
|
previousOverlayAnimationStore: previousOverlayScene ? previousOverlayAnimationStore : undefined,
|
|
41
41
|
driverSlots: readyResources.driverSlots,
|
|
@@ -45,9 +45,9 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
|
|
|
45
45
|
function ReadyOverlayHost({
|
|
46
46
|
scene,
|
|
47
47
|
driverScene,
|
|
48
|
-
activity,
|
|
49
48
|
layerIndex,
|
|
50
49
|
overlayAnimationStore,
|
|
50
|
+
overlaySlots,
|
|
51
51
|
driverAnimationStore,
|
|
52
52
|
previousOverlayAnimationStore,
|
|
53
53
|
driverSlots,
|
|
@@ -59,7 +59,6 @@ function ReadyOverlayHost({
|
|
|
59
59
|
routeKeys,
|
|
60
60
|
routes
|
|
61
61
|
} = useBlankStackStore();
|
|
62
|
-
const descriptor = scene.descriptor;
|
|
63
62
|
const focusedScene = scenes[focusedIndex] ?? scenes[scenes.length - 1];
|
|
64
63
|
const focusedDescriptor = focusedScene?.descriptor;
|
|
65
64
|
const {
|
|
@@ -96,18 +95,22 @@ function ReadyOverlayHost({
|
|
|
96
95
|
}), [scene, focusedDescriptor?.options, focusedIndex, focusedScene?.route, relativeProgress, routeKeys, routes]);
|
|
97
96
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
98
97
|
animatedProps: animatedProps,
|
|
99
|
-
pointerEvents:
|
|
98
|
+
pointerEvents: "box-none",
|
|
100
99
|
style: [styles.container, styles.floating, StyleSheet.absoluteFill, {
|
|
101
100
|
zIndex: 1000 + layerIndex
|
|
102
101
|
}, animatedStyle],
|
|
103
|
-
children: /*#__PURE__*/_jsx(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
children: /*#__PURE__*/_jsx(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
children: /*#__PURE__*/_jsx(
|
|
110
|
-
|
|
102
|
+
children: /*#__PURE__*/_jsx(ScreenAnimationStoreProvider, {
|
|
103
|
+
registerGlobally: false,
|
|
104
|
+
value: overlayAnimationStore,
|
|
105
|
+
children: /*#__PURE__*/_jsx(ScreenSlotStoreProvider, {
|
|
106
|
+
registerGlobally: false,
|
|
107
|
+
value: overlaySlots,
|
|
108
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
109
|
+
pointerEvents: "box-none",
|
|
110
|
+
style: [StyleSheet.absoluteFill, styles.overlay],
|
|
111
|
+
children: /*#__PURE__*/_jsx(OverlayComponent, {
|
|
112
|
+
...overlayProps
|
|
113
|
+
})
|
|
111
114
|
})
|
|
112
115
|
})
|
|
113
116
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useMemo","useRef","StyleSheet","View","Animated","useDerivedValue","snapDescriptorToIndex","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","useRef","StyleSheet","View","Animated","useDerivedValue","snapDescriptorToIndex","useOptionalScreenAnimationStore","ScreenAnimationStoreProvider","ScreenSlotStoreProvider","useOptionalScreenSlotStore","useBlankStackStore","retainReadyOverlayResources","useOverlaySlot","jsx","_jsx","OverlayHost","scene","driverScene","previousOverlayScene","layerIndex","overlayAnimationStore","route","key","driverAnimationStore","previousOverlayAnimationStore","overlaySlots","driverSlots","overlayComponentRef","descriptor","options","overlay","OverlayComponent","current","readyResourcesRef","readyResources","ReadyOverlayHost","undefined","scenes","focusedIndex","routeKeys","routes","focusedScene","length","focusedDescriptor","animatedProps","animatedStyle","overlayInterpolator","screenStyleInterpolator","driverInterpolator","interpolatorReady","isIncoming","relativeProgress","screenInterpolatorPropsRevision","get","screenInterpolatorProps","stackProgress","overlayProps","index","indexOf","focusedRoute","meta","navigation","snapTo","progress","pointerEvents","style","styles","container","floating","absoluteFill","zIndex","children","registerGlobally","value","create","flex"],"sourceRoot":"../../../../../src","sources":["components/overlay/variations/overlay-host.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAC7C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,QAAQ,IAAIC,eAAe,QAAQ,yBAAyB;AACnE,SAASC,qBAAqB,QAAQ,4BAA4B;AAClE,SAASC,+BAA+B,QAAQ,qCAAqC;AACrF,SAECC,4BAA4B,QACtB,wDAAwD;AAC/D,SAECC,uBAAuB,EACvBC,0BAA0B,QACpB,gDAAgD;AACvD,SAASC,kBAAkB,QAAQ,+CAA+C;AAGlF,SAECC,2BAA2B,QACrB,2CAA2C;AAClD,SAASC,cAAc,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS3D,OAAO,MAAMC,WAAW,gBAAGjB,IAAI,CAAC,SAASiB,WAAWA,CAAC;EACpDC,KAAK;EACLC,WAAW;EACXC,oBAAoB;EACpBC;AACiB,CAAC,EAAE;EACpB,MAAMC,qBAAqB,GAAGd,+BAA+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AyC,QAAA,eAEjDzD,IAAA,CAACiB,gBAAgB;YAAA,GAAKyB;UAAY,CAAG;QAAC,CACjC;MAAC,CACiB;IAAC,CACG;EAAC,CACjB,CAAC;AAElB;AAEA,MAAMU,MAAM,GAAGjE,UAAU,CAACyE,MAAM,CAAC;EAChC5C,OAAO,EAAE;IACRwC,MAAM,EAAE;EACT,CAAC;EACDH,SAAS,EAAE;IACVQ,IAAI,EAAE;EACP,CAAC;EACDP,QAAQ,EAAE;IACTE,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ import { ScreenFallbackHost } from "../../boundary/portal/components/boundary-po
|
|
|
11
11
|
import { useContentLayout } from "../hooks/use-content-layout";
|
|
12
12
|
import { MaybeMaskedNavigationContainer } from "./maybe-masked-navigation-container";
|
|
13
13
|
import { usesLayerRenderProps } from "./render-component";
|
|
14
|
+
import { SurfaceLayer } from "./surface";
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
export const ContentLayer = /*#__PURE__*/memo(({
|
|
16
17
|
children,
|
|
@@ -30,14 +31,18 @@ export const ContentLayer = /*#__PURE__*/memo(({
|
|
|
30
31
|
const animatedContentProps = useSlotProps("content");
|
|
31
32
|
const contentStyles = [styles.content, animatedContentStyle];
|
|
32
33
|
const contentProps = animatedContentProps;
|
|
34
|
+
const screenChildren = hasAutoSnapPoint ? /*#__PURE__*/_jsx(View, {
|
|
35
|
+
collapsable: false,
|
|
36
|
+
onLayout: handleContentLayout,
|
|
37
|
+
children: children
|
|
38
|
+
}) : children;
|
|
33
39
|
const contentChildren = /*#__PURE__*/_jsxs(MaybeMaskedNavigationContainer, {
|
|
34
40
|
pointerEvents: contentPointerEvents,
|
|
35
41
|
enabled: isNavigationMaskEnabled,
|
|
36
|
-
children: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}) : children, /*#__PURE__*/_jsx(ScreenFallbackHost, {})]
|
|
42
|
+
children: [/*#__PURE__*/_jsx(SurfaceLayer, {
|
|
43
|
+
pointerEvents: contentPointerEvents,
|
|
44
|
+
children: screenChildren
|
|
45
|
+
}), /*#__PURE__*/_jsx(ScreenFallbackHost, {})]
|
|
41
46
|
});
|
|
42
47
|
return /*#__PURE__*/_jsx(GestureDetector, {
|
|
43
48
|
gesture: gestureContext.detectorGesture,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useMemo","StyleSheet","View","GestureDetector","Animated","useDescriptorsStore","useScreenGestureStore","useSlotProps","useSlotStyles","ScreenFallbackHost","useContentLayout","MaybeMaskedNavigationContainer","usesLayerRenderProps","jsx","_jsx","jsxs","_jsxs","ContentLayer","children","pointerEvents","isBackdropActive","gestureContext","ContentComponent","store","options","contentComponent","isNavigationMaskEnabled","navigationMaskEnabled","hasAutoSnapPoint","snapPoints","includes","contentPointerEvents","AnimatedContentComponent","createAnimatedComponent","handleContentLayout","animatedContentStyle","animatedContentProps","contentStyles","styles","content","contentProps","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","StyleSheet","View","GestureDetector","Animated","useDescriptorsStore","useScreenGestureStore","useSlotProps","useSlotStyles","ScreenFallbackHost","useContentLayout","MaybeMaskedNavigationContainer","usesLayerRenderProps","SurfaceLayer","jsx","_jsx","jsxs","_jsxs","ContentLayer","children","pointerEvents","isBackdropActive","gestureContext","ContentComponent","store","options","contentComponent","isNavigationMaskEnabled","navigationMaskEnabled","hasAutoSnapPoint","snapPoints","includes","contentPointerEvents","AnimatedContentComponent","createAnimatedComponent","handleContentLayout","animatedContentStyle","animatedContentProps","contentStyles","styles","content","contentProps","screenChildren","collapsable","onLayout","contentChildren","enabled","gesture","detectorGesture","style","animatedProps","props","create","flex"],"sourceRoot":"../../../../../src","sources":["components/screen-container/layers/content.tsx"],"mappings":";;AAAA,SAA6BA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;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