react-native-navigation 8.7.4 → 8.7.5
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/ios/RNNNavigationOptions.h +1 -0
- package/ios/RNNNavigationOptions.mm +4 -0
- package/ios/RNNOverlayManager.mm +4 -0
- package/ios/ScreenAnimationController.mm +29 -24
- package/ios/StackControllerDelegate.mm +21 -3
- package/lib/module/Mock/Application.js +33 -0
- package/lib/module/Mock/Application.js.map +1 -0
- package/lib/module/Mock/ComponentProps.js +4 -0
- package/lib/module/Mock/ComponentProps.js.map +1 -0
- package/lib/module/Mock/Components/BottomTabs.js +16 -0
- package/lib/module/Mock/Components/BottomTabs.js.map +1 -0
- package/lib/module/Mock/Components/ComponentScreen.js +101 -0
- package/lib/module/Mock/Components/ComponentScreen.js.map +1 -0
- package/lib/module/Mock/Components/LayoutComponent.js +50 -0
- package/lib/module/Mock/Components/LayoutComponent.js.map +1 -0
- package/lib/module/Mock/Components/Modals.js +22 -0
- package/lib/module/Mock/Components/Modals.js.map +1 -0
- package/lib/module/Mock/Components/NavigationButton.js +72 -0
- package/lib/module/Mock/Components/NavigationButton.js.map +1 -0
- package/lib/module/Mock/Components/Overlays.js +23 -0
- package/lib/module/Mock/Components/Overlays.js.map +1 -0
- package/lib/module/Mock/Components/SideMenu.js +29 -0
- package/lib/module/Mock/Components/SideMenu.js.map +1 -0
- package/lib/module/Mock/Components/Stack.js +18 -0
- package/lib/module/Mock/Components/Stack.js.map +1 -0
- package/lib/module/Mock/Components/TopBar.js +81 -0
- package/lib/module/Mock/Components/TopBar.js.map +1 -0
- package/lib/module/Mock/Layouts/BottomTabsNode.js +30 -0
- package/lib/module/Mock/Layouts/BottomTabsNode.js.map +1 -0
- package/lib/module/Mock/Layouts/ComponentNode.js +102 -0
- package/lib/module/Mock/Layouts/ComponentNode.js.map +1 -0
- package/lib/module/Mock/Layouts/LayoutNodeFactory.js +28 -0
- package/lib/module/Mock/Layouts/LayoutNodeFactory.js.map +1 -0
- package/lib/module/Mock/Layouts/Node.js +14 -0
- package/lib/module/Mock/Layouts/Node.js.map +1 -0
- package/lib/module/Mock/Layouts/ParentNode.js +66 -0
- package/lib/module/Mock/Layouts/ParentNode.js.map +1 -0
- package/lib/module/Mock/Layouts/SideMenu.js +72 -0
- package/lib/module/Mock/Layouts/SideMenu.js.map +1 -0
- package/lib/module/Mock/Layouts/StackNode.js +12 -0
- package/lib/module/Mock/Layouts/StackNode.js.map +1 -0
- package/lib/module/Mock/Stores/EventsStore.js +53 -0
- package/lib/module/Mock/Stores/EventsStore.js.map +1 -0
- package/lib/module/Mock/Stores/LayoutStore.js +176 -0
- package/lib/module/Mock/Stores/LayoutStore.js.map +1 -0
- package/lib/module/Mock/actions/layoutActions.js +19 -0
- package/lib/module/Mock/actions/layoutActions.js.map +1 -0
- package/lib/module/Mock/connect.js +8 -0
- package/lib/module/Mock/connect.js.map +1 -0
- package/lib/module/Mock/constants.js +5 -0
- package/lib/module/Mock/constants.js.map +1 -0
- package/lib/module/Mock/index.js +20 -0
- package/lib/module/Mock/index.js.map +1 -0
- package/lib/module/Mock/mocks/AppRegistryService.js +6 -0
- package/lib/module/Mock/mocks/AppRegistryService.js.map +1 -0
- package/lib/module/Mock/mocks/NativeCommandsSender.js +146 -0
- package/lib/module/Mock/mocks/NativeCommandsSender.js.map +1 -0
- package/lib/module/Mock/mocks/NativeEventsReceiver.js +103 -0
- package/lib/module/Mock/mocks/NativeEventsReceiver.js.map +1 -0
- package/lib/typescript/Mock/Application.d.ts.map +1 -1
- package/lib/typescript/Mock/ComponentProps.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Modals.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/NavigationButton.d.ts +1 -1
- package/lib/typescript/Mock/Components/NavigationButton.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Overlays.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Stack.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/TopBar.d.ts +1 -1
- package/lib/typescript/Mock/Components/TopBar.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/Node.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/Node.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts +2 -2
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/StackNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Stores/EventsStore.d.ts +3 -3
- package/lib/typescript/Mock/Stores/EventsStore.d.ts.map +1 -1
- package/lib/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -1
- package/lib/typescript/Mock/actions/layoutActions.d.ts.map +1 -1
- package/lib/typescript/Mock/connect.d.ts.map +1 -1
- package/lib/typescript/Mock/constants.d.ts.map +1 -1
- package/lib/typescript/Mock/index.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts +2 -2
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts +2 -2
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -1
- package/lib/typescript/Navigation.d.ts.map +1 -0
- package/lib/typescript/NavigationDelegate.d.ts.map +1 -0
- package/lib/typescript/adapters/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/adapters/AssetResolver.d.ts.map +1 -0
- package/lib/typescript/adapters/ColorService.d.ts.map +1 -0
- package/lib/typescript/adapters/Constants.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
- package/lib/typescript/adapters/TouchablePreview.d.ts.map +1 -0
- package/lib/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.test.d.ts.map +1 -0
- package/lib/typescript/commands/Deprecations.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/Store.d.ts.map +1 -0
- package/lib/typescript/components/Store.test.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.test.d.ts.map +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/interfaces/CommandName.d.ts.map +1 -0
- package/lib/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
- package/lib/typescript/interfaces/EventSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Events.d.ts.map +1 -0
- package/lib/typescript/interfaces/Layout.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
- package/lib/typescript/interfaces/Options.d.ts.map +1 -0
- package/lib/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Processors.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessor.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/package.json +12 -6
- package/src/Mock/Application.tsx +30 -0
- package/src/Mock/ComponentProps.tsx +6 -0
- package/src/Mock/Components/BottomTabs.tsx +14 -0
- package/src/Mock/Components/ComponentScreen.tsx +107 -0
- package/src/Mock/Components/LayoutComponent.tsx +37 -0
- package/src/Mock/Components/Modals.tsx +22 -0
- package/src/Mock/Components/NavigationButton.tsx +86 -0
- package/src/Mock/Components/Overlays.tsx +23 -0
- package/src/Mock/Components/SideMenu.tsx +27 -0
- package/src/Mock/Components/Stack.tsx +16 -0
- package/src/Mock/Components/TopBar.tsx +96 -0
- package/src/Mock/Layouts/BottomTabsNode.ts +34 -0
- package/src/Mock/Layouts/ComponentNode.ts +124 -0
- package/src/Mock/Layouts/LayoutNodeFactory.ts +31 -0
- package/src/Mock/Layouts/Node.ts +35 -0
- package/src/Mock/Layouts/ParentNode.ts +86 -0
- package/src/Mock/Layouts/SideMenu.ts +87 -0
- package/src/Mock/Layouts/StackNode.ts +11 -0
- package/src/Mock/Stores/EventsStore.ts +68 -0
- package/src/Mock/Stores/LayoutStore.ts +200 -0
- package/src/Mock/actions/layoutActions.ts +21 -0
- package/src/Mock/connect.ts +6 -0
- package/src/Mock/constants.ts +2 -0
- package/src/Mock/index.ts +16 -0
- package/src/Mock/mocks/AppRegistryService.ts +5 -0
- package/src/Mock/mocks/NativeCommandsSender.tsx +168 -0
- package/src/Mock/mocks/NativeEventsReceiver.ts +162 -0
- package/lib/typescript/src/Navigation.d.ts.map +0 -1
- package/lib/typescript/src/NavigationDelegate.d.ts.map +0 -1
- package/lib/typescript/src/adapters/AppRegistryService.d.ts.map +0 -1
- package/lib/typescript/src/adapters/AssetResolver.d.ts.map +0 -1
- package/lib/typescript/src/adapters/ColorService.d.ts.map +0 -1
- package/lib/typescript/src/adapters/Constants.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeCommandsSender.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeEventsReceiver.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeEventsReceiver.mock.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeRNNTurboEventEmitter.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeRNNTurboModule.d.ts.map +0 -1
- package/lib/typescript/src/adapters/TouchablePreview.d.ts.map +0 -1
- package/lib/typescript/src/adapters/UniqueIdProvider.d.ts.map +0 -1
- package/lib/typescript/src/commands/Commands.d.ts.map +0 -1
- package/lib/typescript/src/commands/Commands.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/Deprecations.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeCrawler.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeCrawler.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeParser.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeParser.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutType.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutType.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsCrawler.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsCrawler.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsProcessor.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsProcessor.test.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentRegistry.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentRegistry.test.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentWrapper.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentWrapper.test.d.ts.map +0 -1
- package/lib/typescript/src/components/Modal.d.ts.map +0 -1
- package/lib/typescript/src/components/Store.d.ts.map +0 -1
- package/lib/typescript/src/components/Store.test.d.ts.map +0 -1
- package/lib/typescript/src/events/CommandsObserver.d.ts.map +0 -1
- package/lib/typescript/src/events/CommandsObserver.test.d.ts.map +0 -1
- package/lib/typescript/src/events/ComponentEventsObserver.d.ts.map +0 -1
- package/lib/typescript/src/events/ComponentEventsObserver.test.d.ts.map +0 -1
- package/lib/typescript/src/events/EventsRegistry.d.ts.map +0 -1
- package/lib/typescript/src/events/EventsRegistry.test.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/CommandName.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/ComponentEvents.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/EventSubscription.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Events.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Layout.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponent.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponentListener.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponentProps.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationFunctionComponent.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Options.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/ProcessorSubscription.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Processors.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessor.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessor.test.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessorsStore.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessorsStore.test.d.ts.map +0 -1
- package/lib/typescript/src/processors/OptionProcessorsStore.d.ts.map +0 -1
- package/lib/typescript/src/processors/OptionProcessorsStore.test.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- /package/lib/typescript/{src/Navigation.d.ts → Navigation.d.ts} +0 -0
- /package/lib/typescript/{src/NavigationDelegate.d.ts → NavigationDelegate.d.ts} +0 -0
- /package/lib/typescript/{src/adapters → adapters}/AppRegistryService.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/AssetResolver.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/ColorService.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/Constants.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeCommandsSender.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeEventsReceiver.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeEventsReceiver.mock.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeRNNTurboEventEmitter.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeRNNTurboModule.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/TouchablePreview.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/UniqueIdProvider.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Commands.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Commands.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Deprecations.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeCrawler.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeCrawler.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeParser.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeParser.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutType.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutType.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsCrawler.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsCrawler.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsProcessor.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsProcessor.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentRegistry.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentRegistry.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentWrapper.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentWrapper.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Modal.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Store.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Store.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/CommandsObserver.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/CommandsObserver.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/ComponentEventsObserver.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/ComponentEventsObserver.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/EventsRegistry.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/EventsRegistry.test.d.ts +0 -0
- /package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/CommandName.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/ComponentEvents.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/EventSubscription.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Events.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Layout.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponent.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponentListener.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponentProps.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationFunctionComponent.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Options.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/ProcessorSubscription.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Processors.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessor.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessor.test.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessorsStore.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessorsStore.test.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/OptionProcessorsStore.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/OptionProcessorsStore.test.d.ts +0 -0
- /package/lib/typescript/{src/types.d.ts → types.d.ts} +0 -0
|
@@ -36,6 +36,7 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
|
|
36
36
|
@property(nonatomic, strong) WindowOptions *window;
|
|
37
37
|
|
|
38
38
|
@property(nonatomic, strong) Bool *popGesture;
|
|
39
|
+
@property(nonatomic, strong) Bool *navigationButtonEventOnSwipeBack;
|
|
39
40
|
@property(nonatomic, strong) Image *backgroundImage;
|
|
40
41
|
@property(nonatomic, strong) Image *rootBackgroundImage;
|
|
41
42
|
@property(nonatomic, strong) Text *modalPresentationStyle;
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
self.window = [[WindowOptions alloc] initWithDict:dict[@"window"]];
|
|
42
42
|
|
|
43
43
|
self.popGesture = [[Bool alloc] initWithValue:dict[@"popGesture"]];
|
|
44
|
+
self.navigationButtonEventOnSwipeBack = [[Bool alloc] initWithValue:dict[@"navigationButtonEventOnSwipeBack"]];
|
|
44
45
|
self.backgroundImage = [ImageParser parse:dict key:@"backgroundImage"];
|
|
45
46
|
self.rootBackgroundImage = [ImageParser parse:dict key:@"rootBackgroundImage"];
|
|
46
47
|
self.modalPresentationStyle = [[Text alloc] initWithValue:dict[@"modalPresentationStyle"]];
|
|
@@ -73,6 +74,8 @@
|
|
|
73
74
|
|
|
74
75
|
if (options.popGesture.hasValue)
|
|
75
76
|
result.popGesture = options.popGesture;
|
|
77
|
+
if (options.navigationButtonEventOnSwipeBack.hasValue)
|
|
78
|
+
result.navigationButtonEventOnSwipeBack = options.navigationButtonEventOnSwipeBack;
|
|
76
79
|
if (options.backgroundImage.hasValue)
|
|
77
80
|
result.backgroundImage = options.backgroundImage;
|
|
78
81
|
if (options.rootBackgroundImage.hasValue)
|
|
@@ -104,6 +107,7 @@
|
|
|
104
107
|
[newOptions.window mergeOptions:self.window];
|
|
105
108
|
|
|
106
109
|
newOptions.popGesture = self.popGesture;
|
|
110
|
+
newOptions.navigationButtonEventOnSwipeBack = self.navigationButtonEventOnSwipeBack;
|
|
107
111
|
newOptions.backgroundImage = self.backgroundImage;
|
|
108
112
|
newOptions.rootBackgroundImage = self.rootBackgroundImage;
|
|
109
113
|
newOptions.modalPresentationStyle = self.modalPresentationStyle;
|
package/ios/RNNOverlayManager.mm
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
overlayWindow.rootViewController.view.backgroundColor = [UIColor clearColor];
|
|
18
18
|
[overlayWindow setWindowLevel:UIWindowLevelNormal];
|
|
19
19
|
[overlayWindow setHidden:NO];
|
|
20
|
+
|
|
21
|
+
overlayWindow.previousWindow.accessibilityElementsHidden = YES;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
- (void)showOverlayWindowAsKeyWindow:(RNNOverlayWindow *)overlayWindow {
|
|
@@ -38,6 +40,8 @@
|
|
|
38
40
|
#pragma mark - private
|
|
39
41
|
|
|
40
42
|
- (void)detachOverlayWindow:(RNNOverlayWindow *)overlayWindow {
|
|
43
|
+
overlayWindow.previousWindow.accessibilityElementsHidden = NO;
|
|
44
|
+
|
|
41
45
|
[overlayWindow.previousWindow makeKeyWindow];
|
|
42
46
|
[overlayWindow setHidden:YES];
|
|
43
47
|
[overlayWindow setRootViewController:nil];
|
|
@@ -75,21 +75,13 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
- (void)prepareTransitionContext:(id<UIViewControllerContextTransitioning>)transitionContext {
|
|
78
|
-
UIViewController *fromViewController =
|
|
79
|
-
[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
|
|
80
78
|
UIViewController *toViewController =
|
|
81
79
|
[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
|
|
82
80
|
|
|
83
81
|
UIView *fromView = [transitionContext viewForKey:UITransitionContextFromViewKey];
|
|
84
82
|
UIView *toView = [transitionContext viewForKey:UITransitionContextToViewKey];
|
|
85
83
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (isDismiss) {
|
|
89
|
-
if (fromView) {
|
|
90
|
-
[transitionContext.containerView addSubview:fromView];
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
84
|
+
if (toView) {
|
|
93
85
|
toViewController.view.alpha = 0;
|
|
94
86
|
if (fromView) {
|
|
95
87
|
[transitionContext.containerView addSubview:fromView];
|
|
@@ -137,26 +129,39 @@
|
|
|
137
129
|
- (void)animateTransitions:(NSArray<id<DisplayLinkAnimatorDelegate>> *)animators
|
|
138
130
|
andTransitioningContext:(id<UIViewControllerContextTransitioning>)transitionContext {
|
|
139
131
|
UIView *toView = [transitionContext viewForKey:UITransitionContextToViewKey];
|
|
132
|
+
UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
|
|
133
|
+
|
|
140
134
|
BOOL isDismiss = (toView == nil);
|
|
141
135
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
if (isDismiss) {
|
|
137
|
+
[UIView animateWithDuration:[self transitionDuration:transitionContext]
|
|
138
|
+
animations:^{
|
|
139
|
+
fromVC.view.alpha = 0;
|
|
140
|
+
} completion:^(BOOL finished) {
|
|
141
|
+
[transitionContext completeTransition:![transitionContext transitionWasCancelled]];
|
|
142
|
+
fromVC.view.alpha = 1;
|
|
143
|
+
}];
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
DisplayLinkAnimator *displayLinkAnimator = [[DisplayLinkAnimator alloc]
|
|
148
|
+
initWithDisplayLinkAnimators:animators
|
|
149
|
+
duration:[self transitionDuration:transitionContext]];
|
|
150
|
+
|
|
151
|
+
[displayLinkAnimator setOnStart:^{
|
|
148
152
|
if (!isDismiss) {
|
|
153
|
+
UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];
|
|
149
154
|
toVC.view.alpha = 1.f;
|
|
150
155
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
}];
|
|
157
|
+
|
|
158
|
+
[displayLinkAnimator setCompletion:^{
|
|
159
|
+
if (![transitionContext transitionWasCancelled]) {
|
|
160
|
+
[transitionContext completeTransition:![transitionContext transitionWasCancelled]];
|
|
161
|
+
}
|
|
162
|
+
}];
|
|
163
|
+
|
|
164
|
+
[displayLinkAnimator start];
|
|
160
165
|
}
|
|
161
166
|
|
|
162
167
|
- (NSTimeInterval)transitionDuration:(id<UIViewControllerContextTransitioning>)transitionContext {
|
|
@@ -26,9 +26,27 @@
|
|
|
26
26
|
- (void)navigationController:(UINavigationController *)navigationController
|
|
27
27
|
willShowViewController:(UIViewController *)viewController
|
|
28
28
|
animated:(BOOL)animated {
|
|
29
|
-
if (_presentedViewController
|
|
30
|
-
![navigationController.viewControllers containsObject:_presentedViewController]) {
|
|
31
|
-
|
|
29
|
+
if (_presentedViewController) {
|
|
30
|
+
if (![navigationController.viewControllers containsObject:_presentedViewController]) {
|
|
31
|
+
_isPopping = YES;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
id<UIViewControllerTransitionCoordinator> coordinator = navigationController.transitionCoordinator;
|
|
35
|
+
if (coordinator && coordinator.isInteractive) {
|
|
36
|
+
UIViewController *poppingViewController = _presentedViewController;
|
|
37
|
+
[coordinator notifyWhenInteractionChangesUsingBlock:^(id<UIViewControllerTransitionCoordinatorContext> context) {
|
|
38
|
+
if (!context.isCancelled) {
|
|
39
|
+
if ([poppingViewController conformsToProtocol:@protocol(RNNLayoutProtocol)]) {
|
|
40
|
+
UIViewController<RNNLayoutProtocol> *rnnVC = (UIViewController<RNNLayoutProtocol> *)poppingViewController;
|
|
41
|
+
if ([rnnVC.options.navigationButtonEventOnSwipeBack withDefault:NO]) {
|
|
42
|
+
NSString *buttonId = [rnnVC.options.topBar.backButton.identifier withDefault:@"RNN.back"];
|
|
43
|
+
[self->_eventEmitter sendOnNavigationButtonPressed:rnnVC.layoutInfo.componentId
|
|
44
|
+
buttonId:buttonId];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}];
|
|
49
|
+
}
|
|
32
50
|
}
|
|
33
51
|
}
|
|
34
52
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { connect } from "./connect.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const Application = connect(class extends React.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
props.entryPoint();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
const {
|
|
14
|
+
LayoutComponent
|
|
15
|
+
} = require('./Components/LayoutComponent');
|
|
16
|
+
const {
|
|
17
|
+
LayoutStore
|
|
18
|
+
} = require('./Stores/LayoutStore');
|
|
19
|
+
const {
|
|
20
|
+
Modals
|
|
21
|
+
} = require('./Components/Modals');
|
|
22
|
+
const {
|
|
23
|
+
Overlays
|
|
24
|
+
} = require('./Components/Overlays');
|
|
25
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
|
+
testID: 'Application',
|
|
27
|
+
children: [/*#__PURE__*/_jsx(LayoutComponent, {
|
|
28
|
+
layoutNode: LayoutStore.getLayout()
|
|
29
|
+
}), /*#__PURE__*/_jsx(Modals, {}), /*#__PURE__*/_jsx(Overlays, {})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=Application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","connect","jsx","_jsx","jsxs","_jsxs","Application","Component","constructor","props","entryPoint","render","LayoutComponent","require","LayoutStore","Modals","Overlays","testID","children","layoutNode","getLayout"],"sourceRoot":"../../../src","sources":["Mock/Application.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,OAAO,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMpC,OAAO,MAAMC,WAAW,GAAGL,OAAO,CAChC,cAAcF,KAAK,CAACQ,SAAS,CAAmB;EAC9CC,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,CAAC;IACZA,KAAK,CAACC,UAAU,CAAC,CAAC;EACpB;EAEAC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC;IAAgB,CAAC,GAAGC,OAAO,CAAC,8BAA8B,CAAC;IACnE,MAAM;MAAEC;IAAY,CAAC,GAAGD,OAAO,CAAC,sBAAsB,CAAC;IACvD,MAAM;MAAEE;IAAO,CAAC,GAAGF,OAAO,CAAC,qBAAqB,CAAC;IACjD,MAAM;MAAEG;IAAS,CAAC,GAAGH,OAAO,CAAC,uBAAuB,CAAC;IACrD,oBACER,KAAA,CAACL,IAAI;MAACiB,MAAM,EAAE,aAAc;MAAAC,QAAA,gBAC1Bf,IAAA,CAACS,eAAe;QAACO,UAAU,EAAEL,WAAW,CAACM,SAAS,CAAC;MAAE,CAAE,CAAC,eACxDjB,IAAA,CAACY,MAAM,IAAE,CAAC,eACVZ,IAAA,CAACa,QAAQ,IAAE,CAAC;IAAA,CACR,CAAC;EAEX;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["Mock/ComponentProps.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
5
|
+
import { connect } from "../connect.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const BottomTabs = connect(class extends Component {
|
|
8
|
+
render() {
|
|
9
|
+
return this.props.layoutNode.children.map(child => {
|
|
10
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
11
|
+
layoutNode: child
|
|
12
|
+
}, child.nodeId);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=BottomTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","LayoutComponent","connect","jsx","_jsx","BottomTabs","render","props","layoutNode","children","map","child","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/BottomTabs.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,UAAU,GAAGH,OAAO,CAC/B,cAAcF,SAAS,CAAiB;EACtCM,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,QAAQ,CAACC,GAAG,CAAEC,KAAK,IAAK;MACnD,oBAAOP,IAAA,CAACH,eAAe;QAAoBO,UAAU,EAAEG;MAAM,GAAhCA,KAAK,CAACC,MAA4B,CAAC;IAClE,CAAC,CAAC;EACJ;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, Image } from 'react-native';
|
|
5
|
+
import { Navigation } from 'react-native-navigation';
|
|
6
|
+
import { VISIBLE_SCREEN_TEST_ID } from "../constants.js";
|
|
7
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
8
|
+
import { connect } from "../connect.js";
|
|
9
|
+
import { TopBar } from "./TopBar.js";
|
|
10
|
+
import { events } from "../Stores/EventsStore.js";
|
|
11
|
+
import _ from 'lodash';
|
|
12
|
+
import { switchTabByIndex } from "../actions/layoutActions.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
function isURISource(src) {
|
|
15
|
+
return !!src && typeof src === 'object' && 'uri' in src;
|
|
16
|
+
}
|
|
17
|
+
export const ComponentScreen = connect(class extends Component {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super(props);
|
|
20
|
+
}
|
|
21
|
+
componentDidMount() {
|
|
22
|
+
this.props.layoutNode.componentDidMount();
|
|
23
|
+
}
|
|
24
|
+
isVisible() {
|
|
25
|
+
const isVisible = LayoutStore.isVisibleLayout(this.props.layoutNode);
|
|
26
|
+
return isVisible;
|
|
27
|
+
}
|
|
28
|
+
renderTabBar() {
|
|
29
|
+
const bottomTabs = this.props.layoutNode.getBottomTabs();
|
|
30
|
+
if (!bottomTabs) return null;
|
|
31
|
+
const bottomTabsOptions = bottomTabs.resolveOptions().bottomTabs;
|
|
32
|
+
if (bottomTabsOptions?.visible === false) return null;
|
|
33
|
+
const buttons = bottomTabs.children.map((child, i) => {
|
|
34
|
+
const bottomTabOptions = child.resolveOptions().bottomTab;
|
|
35
|
+
const icon = bottomTabs.selectedIndex === i ? bottomTabOptions?.selectedIcon : bottomTabOptions?.icon;
|
|
36
|
+
const iconURI = isURISource(icon) ? icon.uri : undefined;
|
|
37
|
+
return /*#__PURE__*/_jsx(View, {
|
|
38
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
39
|
+
style: {
|
|
40
|
+
padding: 10
|
|
41
|
+
},
|
|
42
|
+
testID: bottomTabOptions?.testID,
|
|
43
|
+
onPress: () => {
|
|
44
|
+
events.invokeBottomTabPressed({
|
|
45
|
+
tabIndex: i
|
|
46
|
+
});
|
|
47
|
+
if (_.defaultTo(bottomTabOptions?.selectTabOnPress, true)) switchTabByIndex(this.props.layoutNode.getBottomTabs(), i);
|
|
48
|
+
},
|
|
49
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
50
|
+
style: {
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
alignItems: 'center'
|
|
53
|
+
},
|
|
54
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
55
|
+
children: bottomTabOptions?.badge
|
|
56
|
+
}), iconURI && /*#__PURE__*/_jsx(Image, {
|
|
57
|
+
style: {
|
|
58
|
+
width: 18,
|
|
59
|
+
height: 18,
|
|
60
|
+
marginBottom: 5
|
|
61
|
+
},
|
|
62
|
+
source: {
|
|
63
|
+
uri: iconURI
|
|
64
|
+
}
|
|
65
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
66
|
+
style: {
|
|
67
|
+
fontSize: 12
|
|
68
|
+
},
|
|
69
|
+
children: bottomTabOptions?.text || ''
|
|
70
|
+
})]
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
}, `tab-${i}`);
|
|
74
|
+
});
|
|
75
|
+
return /*#__PURE__*/_jsx(View, {
|
|
76
|
+
testID: bottomTabsOptions?.testID,
|
|
77
|
+
style: {
|
|
78
|
+
flexDirection: 'row',
|
|
79
|
+
justifyContent: 'center',
|
|
80
|
+
width: '100%',
|
|
81
|
+
backgroundColor: '#F0F2F5'
|
|
82
|
+
},
|
|
83
|
+
children: buttons
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const Component = Navigation.mock.store.getWrappedComponent(this.props.layoutNode.data.name);
|
|
88
|
+
if (!Component) throw new Error(`${this.props.layoutNode.data.name} has not been registered.`);
|
|
89
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
90
|
+
testID: this.isVisible() ? VISIBLE_SCREEN_TEST_ID : undefined,
|
|
91
|
+
children: [this.props.layoutNode.getStack() && /*#__PURE__*/_jsx(TopBar, {
|
|
92
|
+
layoutNode: this.props.layoutNode,
|
|
93
|
+
topBarOptions: this.props.layoutNode.resolveOptions().topBar,
|
|
94
|
+
backButtonOptions: this.props.layoutNode.resolveOptions().topBar?.backButton
|
|
95
|
+
}), /*#__PURE__*/_jsx(Component, {
|
|
96
|
+
componentId: this.props.layoutNode.nodeId
|
|
97
|
+
}), this.renderTabBar()]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=ComponentScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","Text","TouchableOpacity","Image","Navigation","VISIBLE_SCREEN_TEST_ID","LayoutStore","connect","TopBar","events","_","switchTabByIndex","jsx","_jsx","jsxs","_jsxs","isURISource","src","ComponentScreen","constructor","props","componentDidMount","layoutNode","isVisible","isVisibleLayout","renderTabBar","bottomTabs","getBottomTabs","bottomTabsOptions","resolveOptions","visible","buttons","children","map","child","i","bottomTabOptions","bottomTab","icon","selectedIndex","selectedIcon","iconURI","uri","undefined","style","padding","testID","onPress","invokeBottomTabPressed","tabIndex","defaultTo","selectTabOnPress","justifyContent","alignItems","badge","width","height","marginBottom","source","fontSize","text","flexDirection","backgroundColor","render","mock","store","getWrappedComponent","data","name","Error","getStack","topBarOptions","topBar","backButtonOptions","backButton","componentId","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/ComponentScreen.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { BottomTabs } from "./BottomTabs.js";
|
|
6
|
+
import { ComponentScreen } from "./ComponentScreen.js";
|
|
7
|
+
import { Stack } from "./Stack.js";
|
|
8
|
+
import { SideMenuRoot, SideMenuCenter, SideMenuLeft, SideMenuRight } from "./SideMenu.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export const LayoutComponent = class extends Component {
|
|
11
|
+
render() {
|
|
12
|
+
switch (this.props.layoutNode.type) {
|
|
13
|
+
case 'BottomTabs':
|
|
14
|
+
return /*#__PURE__*/_jsx(BottomTabs, {
|
|
15
|
+
layoutNode: this.props.layoutNode
|
|
16
|
+
});
|
|
17
|
+
case 'Stack':
|
|
18
|
+
return /*#__PURE__*/_jsx(Stack, {
|
|
19
|
+
layoutNode: this.props.layoutNode
|
|
20
|
+
});
|
|
21
|
+
case 'Component':
|
|
22
|
+
return /*#__PURE__*/_jsx(ComponentScreen, {
|
|
23
|
+
layoutNode: this.props.layoutNode
|
|
24
|
+
});
|
|
25
|
+
case 'SideMenuRoot':
|
|
26
|
+
return /*#__PURE__*/_jsx(SideMenuRoot, {
|
|
27
|
+
layoutNode: this.props.layoutNode
|
|
28
|
+
});
|
|
29
|
+
case 'SideMenuLeft':
|
|
30
|
+
return /*#__PURE__*/_jsx(SideMenuLeft, {
|
|
31
|
+
layoutNode: this.props.layoutNode
|
|
32
|
+
});
|
|
33
|
+
case 'SideMenuCenter':
|
|
34
|
+
return /*#__PURE__*/_jsx(SideMenuCenter, {
|
|
35
|
+
layoutNode: this.props.layoutNode
|
|
36
|
+
});
|
|
37
|
+
case 'SideMenuRight':
|
|
38
|
+
return /*#__PURE__*/_jsx(SideMenuRight, {
|
|
39
|
+
layoutNode: this.props.layoutNode
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return /*#__PURE__*/_jsx(View, {});
|
|
43
|
+
}
|
|
44
|
+
componentDidCatch(error, errorInfo) {
|
|
45
|
+
const err = new Error(`Error while trying to render layout ${this.props.layoutNode.nodeId} of type ${this.props.layoutNode.type}: ${error}\n${errorInfo?.componentStack}`);
|
|
46
|
+
err.cause = error;
|
|
47
|
+
throw err;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=LayoutComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","BottomTabs","ComponentScreen","Stack","SideMenuRoot","SideMenuCenter","SideMenuLeft","SideMenuRight","jsx","_jsx","LayoutComponent","render","props","layoutNode","type","componentDidCatch","error","errorInfo","err","Error","nodeId","componentStack","cause"],"sourceRoot":"../../../../src","sources":["Mock/Components/LayoutComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,UAAU,QAAQ,iBAAc;AAEzC,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,KAAK,QAAQ,YAAS;AAC/B,SAASC,YAAY,EAAEC,cAAc,EAAEC,YAAY,EAAEC,aAAa,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvF,OAAO,MAAMC,eAAe,GAAG,cAAcX,SAAS,CAAiB;EACrEY,MAAMA,CAAA,EAAG;IACP,QAAQ,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,IAAI;MAChC,KAAK,YAAY;QACf,oBAAOL,IAAA,CAACR,UAAU;UAACY,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC1D,KAAK,OAAO;QACV,oBAAOJ,IAAA,CAACN,KAAK;UAACU,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MACrD,KAAK,WAAW;QACd,oBAAOJ,IAAA,CAACP,eAAe;UAACW,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC/D,KAAK,cAAc;QACjB,oBAAOJ,IAAA,CAACL,YAAY;UAACS,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC5D,KAAK,cAAc;QACjB,oBAAOJ,IAAA,CAACH,YAAY;UAACO,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC5D,KAAK,gBAAgB;QACnB,oBAAOJ,IAAA,CAACJ,cAAc;UAACQ,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC9D,KAAK,eAAe;QAClB,oBAAOJ,IAAA,CAACF,aAAa;UAACM,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;IAC/D;IAEA,oBAAOJ,IAAA,CAACT,IAAI,IAAE,CAAC;EACjB;EACAe,iBAAiBA,CAACC,KAAY,EAAEC,SAA0B,EAAE;IAC1D,MAAMC,GAAG,GAAG,IAAIC,KAAK,CACnB,uCAAuC,IAAI,CAACP,KAAK,CAACC,UAAU,CAACO,MAAM,YAAY,IAAI,CAACR,KAAK,CAACC,UAAU,CAACC,IAAI,KAAKE,KAAK,KAAKC,SAAS,EAAEI,cAAc,EACnJ,CAAC;IACAH,GAAG,CAASI,KAAK,GAAGN,KAAK;IAC1B,MAAME,GAAG;EACX;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
6
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
7
|
+
import { connect } from "../connect.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export const Modals = connect(class extends Component {
|
|
10
|
+
render() {
|
|
11
|
+
const children = LayoutStore.getModals();
|
|
12
|
+
return /*#__PURE__*/_jsx(View, {
|
|
13
|
+
testID: 'MODALS',
|
|
14
|
+
children: children.map(child => {
|
|
15
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
16
|
+
layoutNode: child
|
|
17
|
+
}, child.nodeId);
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=Modals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","LayoutComponent","LayoutStore","connect","jsx","_jsx","Modals","render","children","getModals","testID","map","child","layoutNode","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/Modals.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,WAAW,QAAQ,0BAAuB;AACnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,MAAM,GAAGH,OAAO,CAC3B,cAAcJ,SAAS,CAAiB;EACtCQ,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAGN,WAAW,CAACO,SAAS,CAAC,CAAC;IACxC,oBACEJ,IAAA,CAACL,IAAI;MAACU,MAAM,EAAE,QAAS;MAAAF,QAAA,EACpBA,QAAQ,CAACG,GAAG,CAAEC,KAAiB,IAAK;QACnC,oBAAOP,IAAA,CAACJ,eAAe;UAAoBY,UAAU,EAAED;QAAM,GAAhCA,KAAK,CAACE,MAA4B,CAAC;MAClE,CAAC;IAAC,CACE,CAAC;EAEX;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { Button, TouchableOpacity } from 'react-native';
|
|
5
|
+
import { Navigation } from 'react-native-navigation';
|
|
6
|
+
import { events } from "../Stores/EventsStore.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export const NavigationButton = class extends Component {
|
|
9
|
+
ref = undefined;
|
|
10
|
+
render() {
|
|
11
|
+
const {
|
|
12
|
+
button,
|
|
13
|
+
componentId
|
|
14
|
+
} = this.props;
|
|
15
|
+
if (button.component) return this.renderButtonComponent();
|
|
16
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
17
|
+
testID: button.testID,
|
|
18
|
+
title: button.text || '',
|
|
19
|
+
disabled: button.enabled === false,
|
|
20
|
+
onPress: () => button.enabled !== false && events.invokeNavigationButtonPressed({
|
|
21
|
+
buttonId: button.id,
|
|
22
|
+
componentId
|
|
23
|
+
})
|
|
24
|
+
}, button.id);
|
|
25
|
+
}
|
|
26
|
+
renderButtonComponent() {
|
|
27
|
+
const {
|
|
28
|
+
button,
|
|
29
|
+
componentId
|
|
30
|
+
} = this.props;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const buttonComponentId = button.component.componentId;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const ComponentClass = Navigation.mock.store.getComponentClassForName(button.component.name);
|
|
35
|
+
if (!ComponentClass) {
|
|
36
|
+
throw new Error(`Cannot find registered component for: ${button.component?.name}`);
|
|
37
|
+
}
|
|
38
|
+
const ButtonComponent = ComponentClass();
|
|
39
|
+
const props = Navigation.mock.store.getPropsForId(buttonComponentId);
|
|
40
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
41
|
+
onPress: () => {
|
|
42
|
+
if (this.ref) {
|
|
43
|
+
this.invokeOnClick(
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
(this.ref._reactInternalFiber || this.ref._reactInternals).return.stateNode);
|
|
46
|
+
}
|
|
47
|
+
events.invokeNavigationButtonPressed({
|
|
48
|
+
buttonId: button.id,
|
|
49
|
+
componentId: componentId
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
testID: button.testID,
|
|
53
|
+
children: /*#__PURE__*/_jsx(ButtonComponent, {
|
|
54
|
+
...props,
|
|
55
|
+
componentId: buttonComponentId,
|
|
56
|
+
ref: ref => this.ref = ref
|
|
57
|
+
}, buttonComponentId)
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
invokeOnClick(stateNode) {
|
|
61
|
+
if (stateNode.children) {
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
stateNode.children.forEach(instance => {
|
|
64
|
+
if (instance.internalInstanceHandle && instance.internalInstanceHandle.stateNode.props.onClick) {
|
|
65
|
+
instance.internalInstanceHandle.stateNode.props.onClick();
|
|
66
|
+
}
|
|
67
|
+
this.invokeOnClick(instance);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=NavigationButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","Button","TouchableOpacity","Navigation","events","jsx","_jsx","NavigationButton","ref","undefined","render","button","componentId","props","component","renderButtonComponent","testID","title","text","disabled","enabled","onPress","invokeNavigationButtonPressed","buttonId","id","buttonComponentId","ComponentClass","mock","store","getComponentClassForName","name","Error","ButtonComponent","getPropsForId","invokeOnClick","_reactInternalFiber","_reactInternals","return","stateNode","children","forEach","instance","internalInstanceHandle","onClick"],"sourceRoot":"../../../../src","sources":["Mock/Components/NavigationButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,cAAc;AACvD,SAASC,UAAU,QAA6B,yBAAyB;AACzE,SAASC,MAAM,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO/C,OAAO,MAAMC,gBAAgB,GAAG,cAAcP,SAAS,CAAc;EACnEQ,GAAG,GAAGC,SAAS;EACfC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,MAAM;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACC,KAAK;IAC1C,IAAIF,MAAM,CAACG,SAAS,EAAE,OAAO,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACzD,oBACET,IAAA,CAACL,MAAM;MACLe,MAAM,EAAEL,MAAM,CAACK,MAAO;MAEtBC,KAAK,EAAEN,MAAM,CAACO,IAAI,IAAI,EAAG;MACzBC,QAAQ,EAAER,MAAM,CAACS,OAAO,KAAK,KAAM;MACnCC,OAAO,EAAEA,CAAA,KACPV,MAAM,CAACS,OAAO,KAAK,KAAK,IACxBhB,MAAM,CAACkB,6BAA6B,CAAC;QACnCC,QAAQ,EAAEZ,MAAM,CAACa,EAAE;QACnBZ;MACF,CAAC;IACF,GATID,MAAM,CAACa,EAUb,CAAC;EAEN;EAEAT,qBAAqBA,CAAA,EAAG;IACtB,MAAM;MAAEJ,MAAM;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACC,KAAK;IAC1C;IACA,MAAMY,iBAAiB,GAAGd,MAAM,CAACG,SAAS,CAAEF,WAAW;IACvD;IACA,MAAMc,cAAc,GAAGvB,UAAU,CAACwB,IAAI,CAACC,KAAK,CAACC,wBAAwB,CAAClB,MAAM,CAACG,SAAS,CAACgB,IAAI,CAAC;IAC5F,IAAI,CAACJ,cAAc,EAAE;MACnB,MAAM,IAAIK,KAAK,CAAC,yCAAyCpB,MAAM,CAACG,SAAS,EAAEgB,IAAI,EAAE,CAAC;IACpF;IACA,MAAME,eAAe,GAAGN,cAAc,CAAC,CAAC;IACxC,MAAMb,KAAK,GAAGV,UAAU,CAACwB,IAAI,CAACC,KAAK,CAACK,aAAa,CAACR,iBAAiB,CAAC;IACpE,oBACEnB,IAAA,CAACJ,gBAAgB;MACfmB,OAAO,EAAEA,CAAA,KAAM;QACb,IAAI,IAAI,CAACb,GAAG,EAAE;UACZ,IAAI,CAAC0B,aAAa;UAChB;UACA,CAAC,IAAI,CAAC1B,GAAG,CAAE2B,mBAAmB,IAAI,IAAI,CAAC3B,GAAG,CAAE4B,eAAe,EAAEC,MAAM,CAACC,SACtE,CAAC;QACH;QAEAlC,MAAM,CAACkB,6BAA6B,CAAC;UACnCC,QAAQ,EAAEZ,MAAM,CAACa,EAAE;UACnBZ,WAAW,EAAEA;QACf,CAAC,CAAC;MACJ,CAAE;MACFI,MAAM,EAAEL,MAAM,CAACK,MAAO;MAAAuB,QAAA,eAEtBjC,IAAA,CAAC0B,eAAe;QAAA,GAEVnB,KAAK;QACTD,WAAW,EAAEa,iBAAkB;QAC/BjB,GAAG,EAAGA,GAAQ,IAAM,IAAI,CAACA,GAAG,GAAGA;MAAK,GAH/BiB,iBAIN;IAAC,CACc,CAAC;EAEvB;EAEAS,aAAaA,CAACI,SAAc,EAAE;IAC5B,IAAIA,SAAS,CAACC,QAAQ,EAAE;MACtB;MACAD,SAAS,CAACC,QAAQ,CAACC,OAAO,CAAEC,QAAQ,IAAK;QACvC,IACEA,QAAQ,CAACC,sBAAsB,IAC/BD,QAAQ,CAACC,sBAAsB,CAACJ,SAAS,CAACzB,KAAK,CAAC8B,OAAO,EACvD;UACAF,QAAQ,CAACC,sBAAsB,CAACJ,SAAS,CAACzB,KAAK,CAAC8B,OAAO,CAAC,CAAC;QAC3D;QAEA,IAAI,CAACT,aAAa,CAACO,QAAQ,CAAC;MAC9B,CAAC,CAAC;IACJ;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { VISIBLE_OVERLAY_TEST_ID } from "../constants.js";
|
|
6
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
7
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
8
|
+
import { connect } from "../connect.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export const Overlays = connect(class extends Component {
|
|
11
|
+
render() {
|
|
12
|
+
const children = LayoutStore.getOverlays();
|
|
13
|
+
return /*#__PURE__*/_jsx(View, {
|
|
14
|
+
testID: VISIBLE_OVERLAY_TEST_ID,
|
|
15
|
+
children: children.map(child => {
|
|
16
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
17
|
+
layoutNode: child
|
|
18
|
+
}, child.nodeId);
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=Overlays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","VISIBLE_OVERLAY_TEST_ID","LayoutComponent","LayoutStore","connect","jsx","_jsx","Overlays","render","children","getOverlays","testID","map","child","layoutNode","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/Overlays.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,uBAAuB,QAAQ,iBAAc;AACtD,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,WAAW,QAAQ,0BAAuB;AACnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,QAAQ,GAAGH,OAAO,CAC7B,cAAcL,SAAS,CAAiB;EACtCS,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAGN,WAAW,CAACO,WAAW,CAAC,CAAC;IAC1C,oBACEJ,IAAA,CAACN,IAAI;MAACW,MAAM,EAAEV,uBAAwB;MAAAQ,QAAA,EACnCA,QAAQ,CAACG,GAAG,CAAEC,KAAiB,IAAK;QACnC,oBAAOP,IAAA,CAACJ,eAAe;UAAoBY,UAAU,EAAED;QAAM,GAAhCA,KAAK,CAACE,MAA4B,CAAC;MAClE,CAAC;IAAC,CACE,CAAC;EAEX;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { connect } from "../connect.js";
|
|
5
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const SideMenuRoot = connect(class extends Component {
|
|
8
|
+
render() {
|
|
9
|
+
const children = this.props.layoutNode.children;
|
|
10
|
+
return children.map(child => {
|
|
11
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
12
|
+
layoutNode: child
|
|
13
|
+
}, child.nodeId);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const SideMenuComponent = connect(class extends Component {
|
|
18
|
+
render() {
|
|
19
|
+
const children = this.props.layoutNode.children;
|
|
20
|
+
const component = children[0];
|
|
21
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
22
|
+
layoutNode: component
|
|
23
|
+
}, component.nodeId);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export const SideMenuLeft = SideMenuComponent;
|
|
27
|
+
export const SideMenuCenter = SideMenuComponent;
|
|
28
|
+
export const SideMenuRight = SideMenuComponent;
|
|
29
|
+
//# sourceMappingURL=SideMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","connect","LayoutComponent","jsx","_jsx","SideMenuRoot","render","children","props","layoutNode","map","child","nodeId","SideMenuComponent","component","SideMenuLeft","SideMenuCenter","SideMenuRight"],"sourceRoot":"../../../../src","sources":["Mock/Components/SideMenu.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,OAAO,QAAQ,eAAY;AAEpC,SAASC,eAAe,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpD,OAAO,MAAMC,YAAY,GAAGJ,OAAO,CACjC,cAAcD,SAAS,CAAiB;EACtCM,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAACF,QAAQ;IAC/C,OAAOA,QAAQ,CAACG,GAAG,CAAEC,KAAiB,IAAK;MACzC,oBAAOP,IAAA,CAACF,eAAe;QAAoBO,UAAU,EAAEE;MAAM,GAAhCA,KAAK,CAACC,MAA4B,CAAC;IAClE,CAAC,CAAC;EACJ;AACF,CACF,CAAC;AAED,MAAMC,iBAAiB,GAAGZ,OAAO,CAAC,cAAcD,SAAS,CAAiB;EACxEM,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAACF,QAAQ;IAC/C,MAAMO,SAAS,GAAGP,QAAQ,CAAC,CAAC,CAAC;IAC7B,oBAAOH,IAAA,CAACF,eAAe;MAAwBO,UAAU,EAAEK;IAAU,GAAxCA,SAAS,CAACF,MAAgC,CAAC;EAC1E;AACF,CAAC,CAAC;AACF,OAAO,MAAMG,YAAY,GAAGF,iBAAiB;AAC7C,OAAO,MAAMG,cAAc,GAAGH,iBAAiB;AAC/C,OAAO,MAAMI,aAAa,GAAGJ,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
5
|
+
import { connect } from "../connect.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const Stack = connect(class extends Component {
|
|
8
|
+
render() {
|
|
9
|
+
const children = this.props.layoutNode.children;
|
|
10
|
+
return children.map((child, i) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
12
|
+
layoutNode: child,
|
|
13
|
+
backButton: i > 0
|
|
14
|
+
}, child.nodeId);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","LayoutComponent","connect","jsx","_jsx","Stack","render","children","props","layoutNode","map","child","i","backButton","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/Stack.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,KAAK,GAAGH,OAAO,CAC1B,cAAcF,SAAS,CAAiB;EACtCM,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAG,IAAI,CAACC,KAAK,CAACC,UAAU,CAACF,QAAQ;IAC/C,OAAOA,QAAQ,CAACG,GAAG,CAAC,CAACC,KAAiB,EAAEC,CAAS,KAAK;MACpD,oBAAOR,IAAA,CAACH,eAAe;QAAoBQ,UAAU,EAAEE,KAAM;QAACE,UAAU,EAAED,CAAC,GAAG;MAAE,GAAnDD,KAAK,CAACG,MAA+C,CAAC;IACrF,CAAC,CAAC;EACJ;AACF,CACF,CAAC","ignoreList":[]}
|