@apexnative/navigation 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +147 -51
- package/android/CLAUDE.md +31 -6
- package/android/CORE.md +7 -2
- package/android/RECIPES.md +4 -3
- package/android/src/main/java/dev/apexnative/navigation/NavigationActivity.kt +29 -1
- package/android/src/main/java/dev/apexnative/navigation/options/StatusBarOptions.kt +7 -3
- package/android/src/main/java/dev/apexnative/navigation/react/ArrangementStates.kt +5 -4
- package/android/src/main/java/dev/apexnative/navigation/react/ErrorTexts.kt +75 -60
- package/android/src/main/java/dev/apexnative/navigation/react/Hinge.kt +3 -2
- package/android/src/main/java/dev/apexnative/navigation/react/OptionsCommands.kt +1 -1
- package/android/src/main/java/dev/apexnative/navigation/react/ScreenInsets.kt +5 -4
- package/android/src/main/java/dev/apexnative/navigation/react/ScreenRegions.kt +7 -6
- package/android/src/main/java/dev/apexnative/navigation/react/events/AppearanceDispatcher.kt +3 -35
- package/android/src/main/java/dev/apexnative/navigation/react/events/EventContract.kt +226 -0
- package/android/src/main/java/dev/apexnative/navigation/react/events/EventEmitter.kt +101 -87
- package/android/src/main/java/dev/apexnative/navigation/react/events/ScreenAppearance.kt +0 -6
- package/android/src/main/java/dev/apexnative/navigation/utils/UiUtils.kt +3 -3
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/arrangement/SecondaryScreenPresenter.kt +13 -5
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/bottomtabs/BottomTabsController.kt +76 -13
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/bottomtabs/TabItems.kt +3 -3
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/component/ComponentPresenter.kt +28 -7
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/component/ScreenFrame.kt +1 -1
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/ModalAnimations.kt +22 -24
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/ModalCoordinator.kt +86 -16
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/ModalRecord.kt +21 -6
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/ModalSheet.kt +41 -23
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/ModalViews.kt +24 -20
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/modal/SheetStops.kt +25 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/navigator/BackCallbackState.kt +4 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/navigator/Navigator.kt +42 -4
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/navigator/RootCoordinator.kt +29 -6
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/overlay/OverlayCoordinator.kt +2 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/parent/ContainerBackground.kt +3 -3
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/parent/ParentController.kt +3 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/sidemenu/SideMenuController.kt +5 -3
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/sidemenu/SideMenuMotion.kt +4 -7
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/sidemenu/SideMenuPresenter.kt +16 -7
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/sidemenu/SideMenuRules.kt +8 -1
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/splitview/SplitViewController.kt +16 -2
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/BackPreview.kt +287 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/StackController.kt +148 -6
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/StackDisplay.kt +24 -0
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/StackQueue.kt +51 -11
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/StackTransitions.kt +26 -8
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/StackViews.kt +105 -2
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/stack/topbar/TopBarPresenter.kt +123 -8
- package/android/src/main/java/dev/apexnative/navigation/viewcontrollers/viewcontroller/ViewController.kt +19 -0
- package/android/src/main/java/dev/apexnative/navigation/views/animations/Curves.kt +29 -11
- package/android/src/main/java/dev/apexnative/navigation/views/bottomtabs/BottomTabs.kt +5 -5
- package/android/src/main/java/dev/apexnative/navigation/views/element/ElementStep.kt +31 -0
- package/android/src/main/java/dev/apexnative/navigation/views/element/ElementTransitions.kt +85 -27
- package/android/src/main/java/dev/apexnative/navigation/views/element/TargetsWait.kt +5 -4
- package/android/src/main/java/dev/apexnative/navigation/views/element/TransitionTargets.kt +9 -6
- package/android/src/main/java/dev/apexnative/navigation/views/element/TransitionViews.kt +100 -0
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/ElementPictures.kt +45 -1
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/ImageMatrixAnimator.kt +3 -5
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/PlainViewAnimator.kt +3 -5
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/ReactImageAnimator.kt +3 -5
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/SharedAnimatorFactory.kt +2 -0
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/TextChangeAnimator.kt +4 -6
- package/android/src/main/java/dev/apexnative/navigation/views/element/animators/ViewChangeAnimator.kt +4 -6
- package/android/src/main/java/dev/apexnative/navigation/views/stack/ScreenEdge.kt +15 -0
- package/android/src/main/java/dev/apexnative/navigation/views/stack/StackLayout.kt +137 -1
- package/android/src/main/java/dev/apexnative/navigation/views/stack/topbar/TitleBar.kt +8 -1
- package/android/src/main/java/dev/apexnative/navigation/views/stack/topbar/TopBar.kt +26 -4
- package/android/src/main/java/dev/apexnative/navigation/views/stack/topbar/titlebar/ButtonBar.kt +4 -3
- package/cli/app.js +1 -1
- package/cli/project.js +6 -2
- package/cli/setup/index.js +13 -0
- package/cli/setup/steps/appDelegate.js +66 -11
- package/cli/setup/steps/sceneDelegate.js +108 -0
- package/docs-md/architecture/transitions.md +7 -1
- package/docs-md/containers/modals.md +4 -2
- package/docs-md/containers/overlays.md +3 -1
- package/docs-md/containers/side-menu.md +4 -2
- package/docs-md/containers/tabs.md +2 -0
- package/docs-md/flows/forms-in-a-modal.md +1 -1
- package/docs-md/guides/deep-links.md +15 -33
- package/docs-md/help/glossary.md +1 -1
- package/docs-md/index.json +8 -0
- package/docs-md/screen-ui/back-and-gestures.md +6 -0
- package/docs-md/screen-ui/system-ui.md +1 -1
- package/docs-md/start/installation.md +1 -0
- package/ios/Animations/ANNTransitionAnimator.mm +13 -11
- package/ios/Animations/ANNTransitionWait.mm +6 -7
- package/ios/Animations/Elements/ANNElementFinder.h +57 -0
- package/ios/Animations/Elements/ANNElementFinder.mm +174 -2
- package/ios/Animations/Elements/ANNElementTransition.h +7 -5
- package/ios/Animations/Elements/ANNElementTransition.mm +17 -19
- package/ios/Animations/Elements/ANNSharedElementFlight.h +13 -8
- package/ios/Animations/Elements/ANNSharedElementFlight.mm +59 -24
- package/ios/CLAUDE.md +10 -2
- package/ios/CORE.md +3 -2
- package/ios/Contract/ANNCommandAnswer.h +4 -3
- package/ios/Contract/ANNCommandAnswer.mm +12 -2
- package/ios/Contract/ANNCommandRunner.h +2 -2
- package/ios/Contract/ANNCommandRunner.mm +1 -1
- package/ios/Contract/ANNErrorTexts.h +6 -2
- package/ios/Contract/ANNErrorTexts.mm +18 -10
- package/ios/Core/ANNDeepLinkQueue.h +20 -1
- package/ios/Core/ANNDeepLinkQueue.mm +107 -12
- package/ios/Core/ANNErrorHandler.h +8 -3
- package/ios/Core/ANNErrorHandler.mm +17 -1
- package/ios/Core/ANNEventContract.h +246 -0
- package/ios/Core/ANNEventContract.mm +225 -0
- package/ios/Core/ANNEventEmitter.h +5 -1
- package/ios/Core/ANNEventEmitter.mm +117 -80
- package/ios/Core/ANNHinge.mm +6 -4
- package/ios/Core/ANNSceneDelegate.mm +25 -15
- package/ios/Core/ANNSystemUI.h +3 -2
- package/ios/Core/ANNSystemUI.mm +7 -0
- package/ios/Layouts/Arrangement/ANNArrangementViewController.mm +6 -4
- package/ios/Layouts/Modal/ANNModalCoordinator.mm +1 -1
- package/ios/Layouts/Modal/ANNModalPresentation.h +8 -5
- package/ios/Layouts/Modal/ANNModalPresentation.mm +12 -12
- package/ios/Layouts/Modal/ANNSheetPresenter.mm +83 -1
- package/ios/Layouts/Root/ANNRootCoordinator.mm +12 -3
- package/ios/Layouts/Screen/ANNComponentPresenter.h +11 -3
- package/ios/Layouts/Screen/ANNComponentPresenter.mm +34 -6
- package/ios/Layouts/Screen/ANNComponentViewController.mm +28 -7
- package/ios/Layouts/Screen/ANNNativeScreenContext.mm +7 -5
- package/ios/Layouts/Screen/ANNScreenInsets.mm +6 -4
- package/ios/Layouts/Screen/ANNScreenRegions.mm +9 -6
- package/ios/Layouts/SplitView/ANNSplitViewController.mm +4 -7
- package/ios/Options/ANNSheetOptions.h +4 -1
- package/ios/Public/ApexNavigation/ANNSceneDelegate.h +3 -0
- package/ios/RECIPES.md +2 -1
- package/ios/TurboModules/ANNTurboEventEmitter.mm +4 -35
- package/ios/TurboModules/ANNTurboModule.mm +5 -2
- package/lib/module/ARCHITECTURE.md +7 -4
- package/lib/module/api/app/createNavigation.js +2 -0
- package/lib/module/api/app/createNavigation.js.map +1 -1
- package/lib/module/api/hooks/useNavigation.js +8 -3
- package/lib/module/api/hooks/useNavigation.js.map +1 -1
- package/lib/module/api/linking/dispatchedLinks.js +23 -0
- package/lib/module/api/linking/dispatchedLinks.js.map +1 -0
- package/lib/module/interfaces/contract/errors.json +275 -0
- package/lib/typescript/api/app/createNavigation.d.ts.map +1 -1
- package/lib/typescript/api/hooks/useNavigation.d.ts.map +1 -1
- package/lib/typescript/api/linking/dispatchedLinks.d.ts +7 -0
- package/lib/typescript/api/linking/dispatchedLinks.d.ts.map +1 -0
- package/lib/typescript/interfaces/Events.d.ts +9 -0
- package/lib/typescript/interfaces/Events.d.ts.map +1 -1
- package/lib/typescript/interfaces/options/animations.d.ts +27 -18
- package/lib/typescript/interfaces/options/animations.d.ts.map +1 -1
- package/lib/typescript/interfaces/options/modals.d.ts +33 -24
- package/lib/typescript/interfaces/options/modals.d.ts.map +1 -1
- package/lib/typescript/interfaces/options/sideMenu.d.ts +7 -6
- package/lib/typescript/interfaces/options/sideMenu.d.ts.map +1 -1
- package/lib/typescript/interfaces/options/system.d.ts +10 -6
- package/lib/typescript/interfaces/options/system.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ARCHITECTURE.md +7 -4
- package/src/api/app/createNavigation.ts +2 -0
- package/src/api/hooks/useNavigation.ts +8 -3
- package/src/api/linking/dispatchedLinks.ts +18 -0
- package/src/interfaces/Events.ts +10 -0
- package/src/interfaces/contract/errors.json +275 -0
- package/src/interfaces/options/animations.ts +27 -18
- package/src/interfaces/options/modals.ts +33 -24
- package/src/interfaces/options/sideMenu.ts +7 -6
- package/src/interfaces/options/system.ts +10 -6
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Every text the native side rejects a command with, or logs for a command without a promise: one sentence per case, the values in single quotes, {name} for a parameter. scripts/contract.mjs makes ios/Contract/ANNErrorTexts.{h,mm} and android/.../react/ErrorTexts.kt from it; `platforms` limits a text to one platform.",
|
|
3
|
+
"groups": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Where the screen is",
|
|
6
|
+
"texts": [
|
|
7
|
+
{
|
|
8
|
+
"name": "screenNotShown",
|
|
9
|
+
"params": ["componentId"],
|
|
10
|
+
"text": "the screen '{componentId}' is not shown"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "notInStack",
|
|
14
|
+
"params": ["componentId"],
|
|
15
|
+
"text": "the screen '{componentId}' is not in a stack"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "firstScreenOfStack",
|
|
19
|
+
"params": ["componentId"],
|
|
20
|
+
"text": "the screen '{componentId}' is the first screen of its stack"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "notInThisStack",
|
|
24
|
+
"params": ["componentId"],
|
|
25
|
+
"text": "the screen '{componentId}' is not in this stack"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "notInModal",
|
|
29
|
+
"params": ["componentId"],
|
|
30
|
+
"text": "the screen '{componentId}' is not in a modal"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "notInOverlay",
|
|
34
|
+
"params": ["componentId"],
|
|
35
|
+
"text": "the screen '{componentId}' is not in an overlay"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "notInSplitView",
|
|
39
|
+
"params": ["componentId"],
|
|
40
|
+
"text": "the screen '{componentId}' is not in a split view"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "neitherSplitViewNorStack",
|
|
44
|
+
"params": ["componentId"],
|
|
45
|
+
"text": "the screen '{componentId}' is neither in a split view nor in a stack"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "noSuchColumn",
|
|
49
|
+
"params": ["componentId", "column"],
|
|
50
|
+
"text": "the split view of the screen '{componentId}' has no '{column}' column"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "columnIsStack",
|
|
54
|
+
"params": ["componentId", "column"],
|
|
55
|
+
"text": "the '{column}' column of the split view of the screen '{componentId}' is a stack: it takes a screen, not a stack"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "columnNotStack",
|
|
59
|
+
"params": ["componentId", "column"],
|
|
60
|
+
"text": "the '{column}' column of the split view of the screen '{componentId}' is not a stack"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "noScreensForStack",
|
|
64
|
+
"params": ["componentId"],
|
|
65
|
+
"text": "there are no screens to put in the stack of the screen '{componentId}'"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "alreadyShown",
|
|
69
|
+
"params": ["componentId"],
|
|
70
|
+
"text": "the screen '{componentId}' shows already: an id goes to one screen"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"title": "Root, modals, the app",
|
|
76
|
+
"texts": [
|
|
77
|
+
{
|
|
78
|
+
"name": "setRootReplaced",
|
|
79
|
+
"params": ["rootId"],
|
|
80
|
+
"text": "setRoot was replaced by a newer setRoot before the root '{rootId}' finished showing"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "rootDestroyed",
|
|
84
|
+
"params": ["rootId"],
|
|
85
|
+
"text": "the root '{rootId}' was destroyed before it showed"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "modalWithoutRoot",
|
|
89
|
+
"params": ["componentId"],
|
|
90
|
+
"text": "the modal '{componentId}' can't be dismissed: there is no root under it"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "nowhereToShow",
|
|
94
|
+
"params": [],
|
|
95
|
+
"text": "the navigation has nowhere to show screens: the app has no activity or window"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"title": "Native screens",
|
|
101
|
+
"texts": [
|
|
102
|
+
{
|
|
103
|
+
"name": "nativeScreenNotRegistered",
|
|
104
|
+
"params": ["name"],
|
|
105
|
+
"text": "no native screen is registered as '{name}'"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "nativeScreenNotCreated",
|
|
109
|
+
"params": ["name"],
|
|
110
|
+
"text": "the native screen '{name}' could not be created: its creator returned nothing"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "nativeCallReloaded",
|
|
114
|
+
"params": ["name", "componentId"],
|
|
115
|
+
"text": "JavaScript reloaded before the call '{name}' of the screen '{componentId}' was answered",
|
|
116
|
+
"doc": "The error of a call of a native screen whose JavaScript reloaded before it answered."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "nativeCallNotRunning",
|
|
120
|
+
"params": ["name", "componentId"],
|
|
121
|
+
"text": "the navigation is not running: the call '{name}' of the screen '{componentId}' can't be answered",
|
|
122
|
+
"doc": "The error of a call of a native screen while no JavaScript can answer it."
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"title": "The layout",
|
|
128
|
+
"texts": [
|
|
129
|
+
{
|
|
130
|
+
"name": "unknownNodeType",
|
|
131
|
+
"params": ["type"],
|
|
132
|
+
"text": "the layout has a node of unknown type '{type}'"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "nodeWithoutId",
|
|
136
|
+
"params": ["type"],
|
|
137
|
+
"text": "the layout has a node of type '{type}' without an id"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "sideMenuChild",
|
|
141
|
+
"params": ["menuId", "type"],
|
|
142
|
+
"text": "the side menu '{menuId}' has a child of type '{type}': it takes SideMenuLeft, SideMenuCenter and SideMenuRight"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "stackTakesScreens",
|
|
146
|
+
"params": ["stackId", "type"],
|
|
147
|
+
"text": "the stack '{stackId}' takes screens, not a '{type}'"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "emptyStack",
|
|
151
|
+
"params": ["stackId"],
|
|
152
|
+
"text": "the stack '{stackId}' has no screens"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "emptyTabs",
|
|
156
|
+
"params": ["tabsId"],
|
|
157
|
+
"text": "the tabs '{tabsId}' have no tabs"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "tooManyTabs",
|
|
161
|
+
"params": [
|
|
162
|
+
"tabsId",
|
|
163
|
+
{
|
|
164
|
+
"name": "count",
|
|
165
|
+
"type": "int"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"text": "the tabs '{tabsId}' have {count} tabs: Android shows at most 5",
|
|
169
|
+
"doc": "Only Android checks it: its tab bar shows at most 5 tabs."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "splitViewColumns",
|
|
173
|
+
"params": ["splitViewId"],
|
|
174
|
+
"text": "the split view '{splitViewId}' needs its primary and its secondary column"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "pairUnsupported",
|
|
178
|
+
"params": ["pairId"],
|
|
179
|
+
"text": "the pair '{pairId}' needs iOS 27.1 and an app built with its SDK",
|
|
180
|
+
"doc": "Only iOS checks it: Android has pairs on every version."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "pairNeedsTwoScreens",
|
|
184
|
+
"params": ["pairId"],
|
|
185
|
+
"text": "the pair '{pairId}' needs two screens: its primary and its secondary"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "nodeWithoutName",
|
|
189
|
+
"params": ["type", "nodeId"],
|
|
190
|
+
"text": "the layout has a node '{nodeId}' of type '{type}' without a name"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "rootMissing",
|
|
194
|
+
"params": [],
|
|
195
|
+
"text": "the layout of setRoot has no root"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "tabsInTabs",
|
|
199
|
+
"params": ["tabsId"],
|
|
200
|
+
"text": "the tabs '{tabsId}' have a tab of type 'BottomTabs': tabs don't go inside tabs"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "sideMenuSides",
|
|
204
|
+
"params": ["menuId"],
|
|
205
|
+
"text": "the side menu '{menuId}' takes one SideMenuCenter and at most one SideMenuLeft and one SideMenuRight"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "sideChildCount",
|
|
209
|
+
"params": ["sideId", "menuId"],
|
|
210
|
+
"text": "the side '{sideId}' of the side menu '{menuId}' needs exactly one child"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "sideMenuInSide",
|
|
214
|
+
"params": ["menuId"],
|
|
215
|
+
"text": "the side menu '{menuId}' has a side menu in a side: a side menu doesn't go inside a side menu"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "sideOutsideMenu",
|
|
219
|
+
"params": ["nodeId", "type"],
|
|
220
|
+
"text": "the layout has a node '{nodeId}' of type '{type}' outside a side menu"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "splitViewInColumn",
|
|
224
|
+
"params": ["splitViewId"],
|
|
225
|
+
"text": "the split view '{splitViewId}' has a column of type 'SplitView': a split view doesn't go inside a split view"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "idGivenTwice",
|
|
229
|
+
"params": ["nodeId"],
|
|
230
|
+
"text": "the layout gives the id '{nodeId}' to two nodes"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"title": "Options, previews, any other failure",
|
|
236
|
+
"texts": [
|
|
237
|
+
{
|
|
238
|
+
"name": "unreadableOption",
|
|
239
|
+
"params": ["path", "componentId"],
|
|
240
|
+
"text": "the option '{path}' of the screen '{componentId}' has a value the navigation can't read"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "unreadableDefaultOption",
|
|
244
|
+
"params": ["path"],
|
|
245
|
+
"text": "the option '{path}' of the default options has a value the navigation can't read",
|
|
246
|
+
"doc": "An unreadable value of `setDefaultOptions`: the default options belong to no screen."
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "previewGone",
|
|
250
|
+
"params": ["previewId"],
|
|
251
|
+
"text": "the preview '{previewId}' went without being opened"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "couldNot",
|
|
255
|
+
"params": ["what", "reason"],
|
|
256
|
+
"text": "could not {what}: {reason}",
|
|
257
|
+
"doc": "Any other failure: what could not be done and why, `could not <what>: <reason>`."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "notDoneYet",
|
|
261
|
+
"params": ["method"],
|
|
262
|
+
"text": "could not run '{method}': the native core doesn't do it yet",
|
|
263
|
+
"doc": "A command whose part of the native core is not written yet."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "notAnswered",
|
|
267
|
+
"params": ["method"],
|
|
268
|
+
"text": "could not run '{method}': the native core let it go without an answer",
|
|
269
|
+
"doc": "A command that nothing in the native core answered: what took it let it go, or nothing took it.",
|
|
270
|
+
"platforms": ["ios"]
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNavigation.d.ts","sourceRoot":"","sources":["../../../../src/api/app/createNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,uBAAoB,CAAC;AAK9E,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA0B,CAAC;AAC7D,OAAO,EAA0B,KAAK,mBAAmB,EAAE,MAAM,+BAA4B,CAAC;AAI9F,OAAO,EAAa,KAAK,UAAU,EAAyB,MAAM,mBAAgB,CAAC;AACnF,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,+BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA2B,CAAC;AAEpE,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,mBAAmB,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AAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED;;;;GAIG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,cAAc,CAAC,EAAE,cAAc;CAAG;AAEtE,wDAAwD;AACxD,wBAAgB,aAAa,IAAI,gBAAgB,CAQhD;AA0ED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAqDrE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (iOS) Hands `Linking` the links the app dispatched that it didn't take from the native side: on React Native 0.88
|
|
3
|
+
* and newer, in an app with a scene delegate, it takes only the links a scene opened. `Linking` listens to its `url`
|
|
4
|
+
* events through `DeviceEventEmitter`, so every listener of the app gets them, the navigation's links too.
|
|
5
|
+
*/
|
|
6
|
+
export declare function listenToDispatchedLinks(): void;
|
|
7
|
+
//# sourceMappingURL=dispatchedLinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatchedLinks.d.ts","sourceRoot":"","sources":["../../../../src/api/linking/dispatchedLinks.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,uBAAuB,SAMtC"}
|
|
@@ -84,6 +84,15 @@ export interface SplitViewColumnsStackedEvent {
|
|
|
84
84
|
/** Whether the columns are shown as one stack. */
|
|
85
85
|
stacked: boolean;
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* (iOS) A link the app dispatched (`dispatchDeepLinkURL`) that React Native's `Linking` doesn't take from the native
|
|
89
|
+
* side: on React Native 0.88 and newer, in an app whose Info.plist names a scene delegate, it takes only the links a
|
|
90
|
+
* scene opened. JavaScript hands it to `Linking` as a `url` event.
|
|
91
|
+
*/
|
|
92
|
+
export interface DeepLinkDispatchedEvent {
|
|
93
|
+
/** The link. */
|
|
94
|
+
url: string;
|
|
95
|
+
}
|
|
87
96
|
/**
|
|
88
97
|
* A screen of the single React tree was destroyed and the slot still belongs to it: JavaScript removes the slot from
|
|
89
98
|
* its tree. It is not sent for a prepared screen that was never pushed, nor when JavaScript reloads.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Events.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Events.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAErD,8EAA8E;AAC9E,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,MAAM,GACN,KAAK,GACL,OAAO,GACP,WAAW,GACX,cAAc,GACd,cAAc,GACd,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,oBAAoB,CAAC;AAEzB;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,WAAW,EAAE,oBAAoB,CAAC;IAClC,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC5C,2GAA2G;IAC3G,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,iDAAiD;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,YAAY,EAAE,MAAM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AE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC;IACnC,kHAAkH;IAClH,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD,sCAAsC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,oCAAoC;IACpC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,eAAe,GAAG,WAAW,GAAG,SAAS,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
1
|
+
{"version":3,"file":"Events.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Events.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAErD,8EAA8E;AAC9E,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,MAAM,GACN,KAAK,GACL,OAAO,GACP,WAAW,GACX,cAAc,GACd,cAAc,GACd,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,oBAAoB,CA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U,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -232,13 +232,14 @@ export type ElementAnimation = AppearingElementAnimation | DisappearingElementAn
|
|
|
232
232
|
/**
|
|
233
233
|
* An animation of one view of a screen that moves together with the transition, with or without a counterpart on the
|
|
234
234
|
* other screen. The view is found by its `nativeID`, first on the screen that goes, then on the one that comes; one
|
|
235
|
-
* that is not found is skipped while the rest plays. The transition waits until it is found.
|
|
236
|
-
* the
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
235
|
+
* that is not found is skipped while the rest plays. The transition waits until it is found. An element that fails on
|
|
236
|
+
* the way (an error in its animation) is skipped too, with a warning in the log: it shows and hides with its screen,
|
|
237
|
+
* and the transition and its command go on. Without an animation of the screens of its own, the screen that comes fades
|
|
238
|
+
* in (or the one that goes fades out) in 300 ms around the elements. When the transition ends or is cancelled, the
|
|
239
|
+
* element gets its own values back. `x` and `y` are the position in the parent of the element on both platforms. As on
|
|
240
|
+
* a side of a screen, don't set `x` with `translationX` or `y` with `translationY` on one element: the translation
|
|
241
|
+
* plays and the position doesn't. (Android) A view whose parent is a React view with `removeClippedSubviews` turned on,
|
|
242
|
+
* such as a child of a clipping list, is not moved: it counts as not found.
|
|
242
243
|
*/
|
|
243
244
|
export interface ElementTransition {
|
|
244
245
|
/** The `nativeID` of the view to animate. */
|
|
@@ -265,12 +266,15 @@ export interface ElementTransition {
|
|
|
265
266
|
rotation?: ElementAnimation;
|
|
266
267
|
}
|
|
267
268
|
/**
|
|
268
|
-
* A view that flies from the screen that goes to the screen that comes, changing its place, size, corners and look
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* the
|
|
272
|
-
*
|
|
273
|
-
*
|
|
269
|
+
* A view that flies from the screen that goes to the screen that comes, changing its place, size, corners and look on
|
|
270
|
+
* the way. A pair whose view is not found on either screen is skipped while the rest plays, and the transition waits
|
|
271
|
+
* until the views are found. A pair that fails on the way (an error in its start or its flight) is skipped too, with a
|
|
272
|
+
* warning in the log: its views show and hide with their screens, and the transition and its command go on. (iOS) So is
|
|
273
|
+
* a pair with a view without a size, or one whose picture can't be taken. Without an animation of the screens of its
|
|
274
|
+
* own, the screen that comes fades in (or the one that goes fades out) in 300 ms around the pair. Text keeps its
|
|
275
|
+
* proportions and changes its picture within a quarter of the flight. (Android) A picture that doesn't load within a
|
|
276
|
+
* second drops out of the transition, and so does a pair with a view whose parent is a React view with
|
|
277
|
+
* `removeClippedSubviews` turned on: it counts as not found.
|
|
274
278
|
*/
|
|
275
279
|
export interface SharedElementTransition {
|
|
276
280
|
/** The `nativeID` of the view on the screen that goes. */
|
|
@@ -332,15 +336,18 @@ export interface StackAnimationOptions {
|
|
|
332
336
|
/**
|
|
333
337
|
* The animation of the screens: `enter` for the screen that comes (on a pop, the one that was below), `exit` for the
|
|
334
338
|
* one that goes. A property with a `from` or a `to` makes it an animation of its own, which replaces the platform's
|
|
335
|
-
* transition; the side left out stays still.
|
|
336
|
-
*
|
|
339
|
+
* transition; the side left out stays still. With one of its own, (Android) the top bar goes with its screen: the
|
|
340
|
+
* bar of the screen that goes leaves with it, and the bar of the screen that comes moves, scales and fades with it;
|
|
341
|
+
* (iOS) UIKit keeps the bar in place and changes its title and buttons at once. (Android) The tab bar doesn't travel
|
|
342
|
+
* with the screens. (Android) When the transition has elements, a push plays only `enter` and a
|
|
337
343
|
* pop only `exit`, and only when that side is a single `alpha`; any other side is not played, and the screen fades in
|
|
338
344
|
* or out in 300 ms around the elements instead. iOS plays the sides as they are set.
|
|
339
345
|
*/
|
|
340
346
|
content?: EnterExitAnimationOptions;
|
|
341
347
|
/**
|
|
342
348
|
* (Android) The animation of the top bar when it shows or hides because the screens differ in `topBar.visible`.
|
|
343
|
-
* Without it, the bar slides up by its height and back in 300 ms
|
|
349
|
+
* Without it, the bar slides up by its height and back in 300 ms; with a `content` of its own it shows or hides
|
|
350
|
+
* with its screen. iOS animates the bar with UIKit.
|
|
344
351
|
*/
|
|
345
352
|
topBar?: EnterExitAnimationOptions<TopBarAnimationOptions>;
|
|
346
353
|
/**
|
|
@@ -388,8 +395,10 @@ export interface SetStackRootAnimationOptions extends StackAnimationOptions {
|
|
|
388
395
|
* screen under it. The screen under a modal takes part (iOS) only under a modal that covers the full screen.
|
|
389
396
|
*
|
|
390
397
|
* A sheet keeps the system's sheet motion on both platforms: (iOS) a modal shown as `'pageSheet'`, `'formSheet'` or
|
|
391
|
-
* without a style, (Android)
|
|
392
|
-
* don't apply to it.
|
|
398
|
+
* without a style, (Android) the Material bottom sheet of `'pageSheet'`, `'formSheet'`, `'popover'`, or of
|
|
399
|
+
* `modal.sheet` without a style. The sides `enter` and `exit` and the lists of elements set here don't apply to it.
|
|
400
|
+
* Without them a modal over the whole screen comes up from the bottom: on iOS by UIKit's `modalTransitionStyle`, on
|
|
401
|
+
* Android with the system's motion of a window over another, 300 ms up and 250 ms down, without a fade.
|
|
393
402
|
*
|
|
394
403
|
* (Android) When the modal has elements, `enter` of a show and `exit` of a dismiss play only when that side is a single
|
|
395
404
|
* `alpha`; any other side is not played, and the modal fades in or out in 300 ms around the elements instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/options/animations.ts"],"names":[],"mappings":"AAIA;;;;GA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AoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG,4BAA4B,CAAC;AAExF
|
|
1
|
+
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/options/animations.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB;IACE,sBAAsB;IACtB,IAAI,EAAE,QAAQ,CAAC;CAChB,GACD;IACE,mCAAmC;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,kDAAkD;IAClD,IAAI,EAAE,YAAY,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,gDAAgD;IAChD,IAAI,EAAE,sBAAsB,CAAC;CAC9B,GACD;IACE,gDAAgD;IAChD,IAAI,EAAE,sBAAsB,CAAC;CAC9B,GACD;IACE,qFAAqF;IACrF,IAAI,EAAE,eAAe,CAAC;CACvB,GACD;IACE,oDAAoD;IACpD,IAAI,EAAE,WAAW,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACD;IACE;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;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,CAAC,CAAC;IAC3D;;;;OAIG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC,0BAA0B,CAAC,CAAC;IACnE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB;IACtE,8GAA8G;IAC9G,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;IACzE;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACtE;;;OAGG;IACH,wBAAwB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrD,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC;;;OAGG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,8HAA8H;IAC9H,GAAG,CAAC,EAAE,qBAAqB,CAAC;IAC5B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;;OAGG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
|
|
@@ -3,30 +3,36 @@
|
|
|
3
3
|
* `'overCurrentContext'`, `'currentContext'` or `'popover'`. It is read once, when the modal shows, from the modal's
|
|
4
4
|
* final options; `mergeOptions` afterwards doesn't change it, and neither does a change of theme or a rotation. Without
|
|
5
5
|
* it the platform decides: on iOS the automatic style of UIKit (a sheet on iPhone, a card on iPad), on Android the
|
|
6
|
-
* whole screen. An unknown string shows a full-screen modal on
|
|
6
|
+
* whole screen, or the Material bottom sheet when `modal.sheet` is set. An unknown string shows a full-screen modal on
|
|
7
|
+
* iOS and counts as not set on Android.
|
|
7
8
|
*
|
|
8
|
-
* - `'pageSheet'`:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
9
|
+
* - `'pageSheet'`: a sheet that leaves the screen below visible. On iOS the screen below is pushed back, and on iPad
|
|
10
|
+
* the sheet is a wide card. On Android it is the Material modal bottom sheet over a dimmed screen, at the full height
|
|
11
|
+
* under the status bar (`modal.sheet` changes its stops), at most 640 dp wide and in the middle of a wider window.
|
|
12
|
+
* - `'formSheet'`: on iOS a sheet on iPhone, a card in the middle on iPad whose size is `modal.contentSize`. On Android
|
|
13
|
+
* the same bottom sheet as `'pageSheet'`; `modal.contentSize` does nothing there.
|
|
14
|
+
* - `'fullScreen'`, `'currentContext'`: the whole screen; the screen below is taken off once the modal has come in.
|
|
15
|
+
* Both platforms treat the two alike. The modal comes up from the bottom: on Android with the system's motion of a
|
|
16
|
+
* window over another (300 ms up, 250 ms down), without a fade.
|
|
17
|
+
* - `'overFullScreen'`, `'overCurrentContext'`: the same, with the screen below kept in place under the modal. It
|
|
18
|
+
* shows through only where the modal screen is transparent (`layout.backgroundColor` and
|
|
19
|
+
* `layout.componentBackgroundColor` both `'transparent'`); the style does not make anything transparent by itself.
|
|
17
20
|
* - `'popover'`: (iOS) a popover with an arrow on iPad, a sheet on iPhone unless `modal.popover.adaptive` is `false`.
|
|
18
|
-
* Android has no popovers and shows the
|
|
21
|
+
* Android has no popovers and shows the bottom sheet of `'pageSheet'`.
|
|
19
22
|
*
|
|
20
|
-
* The options of the sheet (`modal.sheet`) apply with `'pageSheet'`, `'formSheet'` and without a style
|
|
23
|
+
* The options of the sheet (`modal.sheet`) apply with `'pageSheet'`, `'formSheet'` and without a style, and on
|
|
24
|
+
* Android with `'popover'` too.
|
|
21
25
|
*/
|
|
22
26
|
export type OptionsModalPresentationStyle = 'pageSheet' | 'formSheet' | 'fullScreen' | 'overFullScreen' | 'overCurrentContext' | 'currentContext' | 'popover';
|
|
23
27
|
/**
|
|
24
28
|
* (iOS) The system transition a modal comes and goes with: `'coverVertical'` (from below), `'crossDissolve'` (a fade),
|
|
25
29
|
* `'flipHorizontal'` (a flip) or `'partialCurl'`. It is read when the modal shows and doesn't change afterwards;
|
|
26
30
|
* `animations.showModal` with values of its own, and the zoom of iOS 18, go over it. UIKit flips only a modal over the
|
|
27
|
-
* whole screen (`'fullScreen'`, `'overFullScreen'`): a sheet comes in as usual and flips only on its way out
|
|
28
|
-
* `'
|
|
29
|
-
* doesn't
|
|
31
|
+
* whole screen (`'fullScreen'`, `'overFullScreen'`): a sheet comes in as usual and flips only on its way out. UIKit
|
|
32
|
+
* curls only a `'fullScreen'` modal over a screen that fills the window, so `'partialCurl'` with any other
|
|
33
|
+
* `modalPresentationStyle` (or without one), or over a modal that doesn't fill the screen, shows as `'coverVertical'`.
|
|
34
|
+
* A modal shown with `'partialCurl'` can't show another modal over it: that `showModal` rejects. An unknown string
|
|
35
|
+
* means `'coverVertical'`. Android doesn't read it.
|
|
30
36
|
*/
|
|
31
37
|
export type OptionsModalTransitionStyle = 'coverVertical' | 'crossDissolve' | 'flipHorizontal' | 'partialCurl';
|
|
32
38
|
/**
|
|
@@ -42,24 +48,27 @@ export type OptionsModalSheetDetent = 'medium' | 'large' | 'content' | number;
|
|
|
42
48
|
/**
|
|
43
49
|
* The settings of a sheet: a modal that comes from below and rests on one of several heights, its stops (detents). On
|
|
44
50
|
* iOS they configure the system sheet of a modal presented as `'pageSheet'`, `'formSheet'` or without a style. On
|
|
45
|
-
* Android
|
|
51
|
+
* Android they configure the Material bottom sheet of `'pageSheet'`, `'formSheet'` and `'popover'`, and without a style
|
|
52
|
+
* any one of them turns the modal into that sheet. They are read when
|
|
46
53
|
* the modal shows, and a `mergeOptions` on any screen of the modal changes them while it is shown, with an animation.
|
|
47
54
|
* Objects merge key by key; `detents` is replaced as a whole.
|
|
48
55
|
*/
|
|
49
56
|
export interface OptionsModalSheet {
|
|
50
57
|
/**
|
|
51
|
-
* The stops the sheet can rest on, and the user drags it between
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
58
|
+
* The stops the sheet can rest on, and the user drags it between, in any order: on both platforms they are sorted by
|
|
59
|
+
* height and repeats dropped. On iOS `'medium'` counts as half of `'large'` there, and `'content'` takes its place by
|
|
60
|
+
* the height of the content, again whenever that changes; a list left empty by unsupported values gives
|
|
61
|
+
* `['large']`. On Android the Material sheet has three resting places at most: the lowest stop of the list, the
|
|
62
|
+
* highest, and `'medium'` between them when the list has both `'medium'` and `'large'`. A stop without a place is
|
|
63
|
+
* dropped.
|
|
56
64
|
* @default ['large']
|
|
57
65
|
*/
|
|
58
66
|
detents?: OptionsModalSheetDetent[];
|
|
59
67
|
/**
|
|
60
|
-
* The stop the sheet opens on; a
|
|
61
|
-
* send `sheetDetentChanged`.
|
|
62
|
-
*
|
|
68
|
+
* The stop the sheet opens on; a `mergeOptions` that names it moves the sheet there with an animation, and doesn't
|
|
69
|
+
* send `sheetDetentChanged`. Nothing else moves the sheet off the stop it stands at, the one the user dragged it to
|
|
70
|
+
* included: a `mergeOptions` without it, a new layout or new content. A value that isn't among `detents` opens on
|
|
71
|
+
* the lowest stop on iOS and is ignored on Android.
|
|
63
72
|
* Without it, the lowest stop.
|
|
64
73
|
*/
|
|
65
74
|
selectedDetent?: OptionsModalSheetDetent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/options/modals.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"modals.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G;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,kFAAkF;IAClF,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,mEAAmE;IACnE,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,mDAAmD;IACnD,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -18,8 +18,8 @@ export interface SideMenuSide {
|
|
|
18
18
|
visible?: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Whether the opening or closing that `visible` asks for is animated. With `false` it happens at once and the
|
|
21
|
-
* screens of the menu get the same appearance events in the same order,
|
|
22
|
-
*
|
|
21
|
+
* screens of the menu get the same appearance events in the same order: WillAppear, then DidAppear. It acts only
|
|
22
|
+
* together with `visible` in the same merge.
|
|
23
23
|
* @default true
|
|
24
24
|
*/
|
|
25
25
|
animate?: boolean;
|
|
@@ -32,15 +32,16 @@ export interface SideMenuSide {
|
|
|
32
32
|
enabled?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* The width of the menu, in points on iOS and dp on Android. It is capped at the width of the side menu (iOS) and at
|
|
35
|
-
* that width less 64 dp (Android).
|
|
36
|
-
*
|
|
35
|
+
* that width less 64 dp (Android). A change in `mergeOptions` applies at once, also to an open menu. A width set by
|
|
36
|
+
* a screen of the center acts while that screen shows.
|
|
37
37
|
* Without it, 280 points on iOS and the width of the side menu less 64 dp on Android (the least gap the Material
|
|
38
38
|
* drawer leaves).
|
|
39
39
|
*/
|
|
40
40
|
width?: number;
|
|
41
41
|
/**
|
|
42
|
-
* (Android) The height of the menu in dp; a menu lower than the container is pinned to the top.
|
|
43
|
-
*
|
|
42
|
+
* (Android) The height of the menu in dp; a menu lower than the container is pinned to the top. A change in
|
|
43
|
+
* `mergeOptions` applies at once, also to an open menu. Without it, the menu takes the full height under the status
|
|
44
|
+
* bar. iOS doesn't read it.
|
|
44
45
|
*/
|
|
45
46
|
height?: number;
|
|
46
47
|
/**
|