@admin-layout/gluestack-ui-mobile 12.2.4-alpha.1 → 12.2.4-alpha.25
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 +32 -8
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/Fallback.js +11 -11
- package/lib/components/Fallback.js.map +1 -1
- package/lib/components/InputToolBar/InputToolBar.d.ts +8 -0
- package/lib/components/InputToolBar/InputToolBar.js +219 -0
- package/lib/components/InputToolBar/InputToolBar.js.map +1 -0
- package/lib/components/InputToolBar/defaults.d.ts +14 -0
- package/lib/components/InputToolBar/defaults.js +60 -0
- package/lib/components/InputToolBar/defaults.js.map +1 -0
- package/lib/components/InputToolBar/index.d.ts +4 -0
- package/lib/components/InputToolBar/index.js +3 -0
- package/lib/components/InputToolBar/index.js.map +1 -0
- package/lib/components/InputToolBar/types.d.ts +153 -0
- package/lib/components/InputToolBar/types.js +2 -0
- package/lib/components/InputToolBar/types.js.map +1 -0
- package/lib/components/Layout/components/BottomTabBar.js +2 -2
- package/lib/components/Layout/components/BottomTabBar.js.map +1 -1
- package/lib/components/Layout/components/Sample.js.map +1 -1
- package/lib/components/ToastAlert.d.ts +1 -1
- package/lib/components/ToastAlert.js +2 -2
- package/lib/components/ToastAlert.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.js +1 -1
- package/lib/components/UnAuthenticatedComponent.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +6 -6
- package/lib/containers/layout/DrawerConfig.d.ts +6 -6
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/generateMobileNavigations.js +7 -7
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +4 -4
- package/src/components/ErrorBounday.tsx +19 -19
- package/src/components/Fallback.tsx +54 -58
- package/src/components/InputToolBar/InputToolBar.tsx +666 -0
- package/src/components/InputToolBar/README.md +239 -0
- package/src/components/InputToolBar/defaults.ts +72 -0
- package/src/components/InputToolBar/index.ts +18 -0
- package/src/components/InputToolBar/types.ts +166 -0
- package/src/components/Layout/components/BottomTabBar.tsx +98 -99
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/ToastAlert.tsx +11 -11
- package/src/components/UnAuthenticatedComponent.tsx +16 -26
- package/src/components/index.ts +1 -0
- package/src/containers/layout/ProLayout.tsx +1 -1
- package/src/index.ts +1 -2
- package/src/utils/generateMobileNavigations.ts +7 -7
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { NativeSyntheticEvent, TextInputChangeEventData } from 'react-native';
|
|
3
|
+
/** Data-only config for built-in textarea. When provided, InputToolBar renders the textarea with default styling. */
|
|
4
|
+
export interface InputConfig {
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (e: NativeSyntheticEvent<TextInputChangeEventData>) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onKeyDown?: (e: any) => void;
|
|
10
|
+
onPaste?: (e: any) => void;
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Optional ref for the textarea (e.g. for focus / height adjustment) */
|
|
14
|
+
inputRef?: React.RefObject<any>;
|
|
15
|
+
}
|
|
16
|
+
/** Predefined toolbar action ids for left section (mode toggles, template) */
|
|
17
|
+
export type LeftToolbarItemId = 'search' | 'zap' | 'lightbulb' | 'template';
|
|
18
|
+
/** Predefined toolbar action ids for right section. projectSettings = first item, disabled by default; enable via overrides. tag = enhance prompt, chip = configure model; both support enabled/disable and custom label, icon, onClick for app-specific use. */
|
|
19
|
+
export type RightToolbarItemId = 'projectSettings' | 'tag' | 'chip' | 'camera' | 'image' | 'attach' | 'mic';
|
|
20
|
+
/** Single toolbar button/item configuration */
|
|
21
|
+
export interface ToolbarItemConfig<TId extends string = string> {
|
|
22
|
+
/** Unique id for the item (used for enable/disable and callbacks) */
|
|
23
|
+
id: TId;
|
|
24
|
+
/** Icon (React node) or custom content for the button */
|
|
25
|
+
icon?: ReactNode;
|
|
26
|
+
/** Accessible label / title (e.g. "Enhance your prompt with AI" when enabled, "Type something to enhance" when disabled) */
|
|
27
|
+
label: string;
|
|
28
|
+
/** Whether the item is enabled (default true). When false, item is hidden. */
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
/** When true, button is visible but disabled (greyed out, not clickable). Use for e.g. "enhance" when input is empty. */
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** When true, show loading spinner and treat as disabled. Use for e.g. "enhance" while request is in flight. */
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
/** Whether the item is in active/selected state (e.g. primary color + hover style for right items) */
|
|
35
|
+
active?: boolean;
|
|
36
|
+
/** Click handler */
|
|
37
|
+
onClick?: () => void;
|
|
38
|
+
/** Optional custom button element; when set, icon/label are ignored and this is rendered */
|
|
39
|
+
customButton?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
/** When provided, the rightmost button shows Stop when loading, Send when hasContent, else Mic. Replaces any "mic" item in rightItems. */
|
|
42
|
+
export interface MicSendButtonConfig {
|
|
43
|
+
/** True when input has content – show send icon; otherwise show mic icon (unless loading). */
|
|
44
|
+
hasContent: boolean;
|
|
45
|
+
onSend: () => void;
|
|
46
|
+
onMic: () => void;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/** When true, show stop icon and call onStop on click. */
|
|
49
|
+
isLoading?: boolean;
|
|
50
|
+
onStop?: () => void;
|
|
51
|
+
}
|
|
52
|
+
/** Configuration for the optional template pill: either "+ Template (N)" or selected template name with remove/change */
|
|
53
|
+
export interface TemplateButtonConfig {
|
|
54
|
+
/** Button label prefix when no selection, e.g. "+ Template" */
|
|
55
|
+
label: string;
|
|
56
|
+
/** Count to show in parentheses when no selection, e.g. (1) */
|
|
57
|
+
count?: number;
|
|
58
|
+
/** When set, show selected template pill (name + remove + change) instead of "+ Template (N)" */
|
|
59
|
+
selectedLabel?: string | null;
|
|
60
|
+
/** Open template modal / change template (used for main pill click and for "change" when selected) */
|
|
61
|
+
onClick?: () => void;
|
|
62
|
+
/** When template is selected, called when user clicks remove (X) */
|
|
63
|
+
onClearTemplate?: () => void;
|
|
64
|
+
/** Disabled state */
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/** Minimal template item for the default template selection modal. Map your app's template type to this shape. */
|
|
68
|
+
export interface TemplateModalItem {
|
|
69
|
+
id: string;
|
|
70
|
+
label: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
category?: string;
|
|
73
|
+
}
|
|
74
|
+
/** Config for the template selection modal. Pass data from props; InputToolBar renders default modal or custom via templateModalRender. */
|
|
75
|
+
export interface TemplateModalConfig {
|
|
76
|
+
isOpen: boolean;
|
|
77
|
+
onClose: () => void;
|
|
78
|
+
templates: TemplateModalItem[];
|
|
79
|
+
selectedId: string | null;
|
|
80
|
+
onSelect: (id: string) => void;
|
|
81
|
+
suggestedId?: string | null;
|
|
82
|
+
title?: string;
|
|
83
|
+
/** Optional class for the modal content box (inner container). Use to standardize width/size, e.g. `max-w-md` or `max-w-xl`. */
|
|
84
|
+
modalClassName?: string;
|
|
85
|
+
}
|
|
86
|
+
/** Render prop for custom template modal. When provided, used instead of the default modal UI. */
|
|
87
|
+
export type TemplateModalRender = (config: TemplateModalConfig) => ReactNode;
|
|
88
|
+
/** Props passed to the project settings modal render function. Values are updated via the parent's callback (e.g. onModelConfigChange). */
|
|
89
|
+
export interface ProjectSettingsModalRenderProps {
|
|
90
|
+
onClose: () => void;
|
|
91
|
+
}
|
|
92
|
+
/** Render prop for project settings modal content. When projectSettings is clicked, parent opens modal (sets projectSettingsModalOpen). Modal content receives onClose; parent passes config and onChange from props so values update via parent. */
|
|
93
|
+
export type ProjectSettingsModalRender = (props: ProjectSettingsModalRenderProps) => ReactNode;
|
|
94
|
+
/** Optional class overrides for InputToolBar sections. Use to adapt to light/dark theme or custom styling. */
|
|
95
|
+
export interface InputToolBarClassNames {
|
|
96
|
+
/** Root section (default: rounded border bg-card shadow) */
|
|
97
|
+
container?: string;
|
|
98
|
+
/** Left toolbar group wrapper */
|
|
99
|
+
leftGroup?: string;
|
|
100
|
+
/** Template pill when no selection (e.g. "+ Template (N)") */
|
|
101
|
+
templatePill?: string;
|
|
102
|
+
/** Template pill when selected/suggested (name + remove + change) */
|
|
103
|
+
templatePillSelected?: string;
|
|
104
|
+
/** Left mode buttons – active state (filled) */
|
|
105
|
+
leftButtonActive?: string;
|
|
106
|
+
/** Left mode buttons – inactive state (outline) */
|
|
107
|
+
leftButtonInactive?: string;
|
|
108
|
+
/** Right toolbar buttons – default state */
|
|
109
|
+
rightButton?: string;
|
|
110
|
+
/** Right toolbar buttons – active state */
|
|
111
|
+
rightButtonActive?: string;
|
|
112
|
+
/** Right toolbar buttons – disabled state */
|
|
113
|
+
rightButtonDisabled?: string;
|
|
114
|
+
/** Mic/Send button (primary action) */
|
|
115
|
+
micSendButton?: string;
|
|
116
|
+
}
|
|
117
|
+
/** Props for the InputToolBar container. UI only: all data and behavior come from props. */
|
|
118
|
+
export interface InputToolBarProps {
|
|
119
|
+
/** Optional class name for the toolbar container (merged with container in classNames) */
|
|
120
|
+
className?: string;
|
|
121
|
+
/** Optional class overrides for toolbar sections (works in both light and dark theme) */
|
|
122
|
+
classNames?: InputToolBarClassNames;
|
|
123
|
+
/** When provided, InputToolBar renders a built-in textarea; pass only data (value, onChange, etc.). */
|
|
124
|
+
inputConfig?: InputConfig | null;
|
|
125
|
+
/** Optional content above the input when inputConfig is set (e.g. panels, banners). */
|
|
126
|
+
topContent?: ReactNode;
|
|
127
|
+
/** Left section: items and template pill. All data (active, onClick, etc.) from parent. */
|
|
128
|
+
leftItems?: Array<ToolbarItemConfig<LeftToolbarItemId>>;
|
|
129
|
+
/** Right section: items. All data (onClick, etc.) from parent. */
|
|
130
|
+
rightItems?: Array<ToolbarItemConfig<RightToolbarItemId>>;
|
|
131
|
+
/** Optional template pill (e.g. "+ Template (1)"). Data from parent. */
|
|
132
|
+
templateButton?: TemplateButtonConfig | null;
|
|
133
|
+
/** Template selection modal: pass data from props. When set, InputToolBar renders the modal (default UI or custom). */
|
|
134
|
+
templateModalConfig?: TemplateModalConfig | null;
|
|
135
|
+
/** When provided, used instead of the default template modal UI. Receives templateModalConfig. */
|
|
136
|
+
templateModalRender?: TemplateModalRender | null;
|
|
137
|
+
/** Custom content for the left section (overrides leftItems) */
|
|
138
|
+
leftCustomRender?: ReactNode;
|
|
139
|
+
/** Custom content for the right section (overrides rightItems and micSendButton) */
|
|
140
|
+
rightCustomRender?: ReactNode;
|
|
141
|
+
/** When set, rightmost button: Stop/Send/Mic; all data and handlers from parent. */
|
|
142
|
+
micSendButton?: MicSendButtonConfig | null;
|
|
143
|
+
/** When true, the project settings modal (from projectSettingsModalRender) is shown. Set by parent when projectSettings is clicked. */
|
|
144
|
+
projectSettingsModalOpen?: boolean;
|
|
145
|
+
/** Called when the project settings modal should close (e.g. overlay click or close button). */
|
|
146
|
+
onProjectSettingsModalClose?: () => void;
|
|
147
|
+
/** Renders the project settings modal content (e.g. Configuration / Other Settings / Secret tabs). Parent passes config and onChange so values update via parent (same pattern as ModelConfigPanel). */
|
|
148
|
+
projectSettingsModalRender?: ProjectSettingsModalRender | null;
|
|
149
|
+
/** Optional content in the middle when not using inputConfig */
|
|
150
|
+
children?: ReactNode;
|
|
151
|
+
/** Click on container (e.g. to focus input) */
|
|
152
|
+
onContainerClick?: (e: any) => void;
|
|
153
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/InputToolBar/types.ts"],"names":[],"mappings":""}
|
|
@@ -43,7 +43,7 @@ export const BottomTabBar = ({ state, descriptors, navigation, ...props }) => {
|
|
|
43
43
|
}
|
|
44
44
|
}, []);
|
|
45
45
|
return (React.createElement(SafeAreaView, null,
|
|
46
|
-
React.createElement(Box, { flexDirection: "row", width: "100%", alignSelf: "center", bg: '$white', borderTopWidth:
|
|
46
|
+
React.createElement(Box, { flexDirection: "row", width: "100%", alignSelf: "center", bg: '$white', borderTopWidth: '$1', borderTopColor: '#d3d3d3', py: '$4', ...tabBarProps }, appRoutes.map((route, index) => {
|
|
47
47
|
const options = route.options;
|
|
48
48
|
const label = options.tabBarLabel !== undefined
|
|
49
49
|
? options.tabBarLabel
|
|
@@ -72,7 +72,7 @@ export const BottomTabBar = ({ state, descriptors, navigation, ...props }) => {
|
|
|
72
72
|
// target: route.route.key,
|
|
73
73
|
// });
|
|
74
74
|
// };
|
|
75
|
-
return (React.createElement(Pressable, { key: index, opacity: isFocused ?
|
|
75
|
+
return (React.createElement(Pressable, { key: index, opacity: isFocused ? '$100' : '$50',
|
|
76
76
|
// pb="$8"
|
|
77
77
|
// pt={"$3"}
|
|
78
78
|
flex: 1, onPress: () => onPress(route, navigation, isFocused), onLongPress: () => onLongPress(route, navigation, isFocused), testID: options.tabBarTestID, accessibilityState: isFocused ? { selected: true } : {}, accessibilityLabel: options.tabBarAccessibilityLabel },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BottomTabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomTabBar.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/BottomTabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,C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kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EACvD,kBAAkB,EAAE,OAAO,CAAC,wBAAwB;gBAEpD,oBAAC,MAAM;oBACF,OAAO,EAAE,UAAU;wBAChB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;4BACf,KAAK,EAAE,SAAS;gCACZ,CAAC,CAAC,OAAO,CAAC,qBAAqB;gCAC/B,CAAC,CAAC,OAAO,CAAC,uBAAuB;4BACrC,IAAI,EAAE,EAAE;yBACX,CAAC;wBACJ,CAAC,CAAC,IAAI;oBAEV,oBAAC,IAAI,IACD,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,EAClF,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,IAEtB,KAAK,CACH,CACF,CACD,CACf,CAAC;QACN,CAAC,CAAC,CACA,CACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Sample.js","sourceRoot":"","sources":["../../../../src/components/Layout/components/Sample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACvB,OAAO,CACH,oBAAC,GAAG;QACA,oBAAC,IAAI,iBAAc,CACjB,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -8,5 +8,5 @@ interface IToast {
|
|
|
8
8
|
toast?: any;
|
|
9
9
|
variant?: any;
|
|
10
10
|
}
|
|
11
|
-
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast }: IToast) => React.JSX.Element;
|
|
11
|
+
export declare const ToastAlert: ({ id, status, title, description, variant, isClosable, toast, }: IToast) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon
|
|
2
|
+
import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from '@gluestack-ui/themed';
|
|
3
3
|
// variants:
|
|
4
4
|
// accent,
|
|
5
5
|
// solid,
|
|
6
6
|
// outline
|
|
7
|
-
export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null }) => {
|
|
7
|
+
export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null, }) => {
|
|
8
8
|
const toastId = 'toast-' + id;
|
|
9
9
|
const actionType = status || 'info';
|
|
10
10
|
return (React.createElement(Toast, { nativeID: toastId, variant: variant, action: actionType },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastAlert.js","sourceRoot":"","sources":["../../src/components/ToastAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ToastAlert.js","sourceRoot":"","sources":["../../src/components/ToastAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAY/G,YAAY;AACZ,UAAU;AACV,SAAS;AACT,UAAU;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACvB,EAAE,EACF,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,OAAO,EACjB,UAAU,EACV,KAAK,GAAG,IAAI,GACP,EAAE,EAAE;IACT,MAAM,OAAO,GAAG,QAAQ,GAAG,EAAE,CAAC;IAC9B,MAAM,UAAU,GAAG,MAAM,IAAI,MAAM,CAAC;IACpC,OAAO,CACH,oBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU;QAC1D,oBAAC,MAAM,IAAC,KAAK,EAAC,IAAI;YACd,oBAAC,UAAU,QAAE,KAAK,CAAc;YAC/B,WAAW,IAAI,oBAAC,gBAAgB,QAAE,WAAW,CAAoB,CAC7D;QACR,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,CACnB,oBAAC,SAAS,IAAC,EAAE,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;YAC9C,oBAAC,IAAI,IAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAC,aAAa,GAAG,CACnC,CACf,CAAC,CAAC,CAAC,IAAI,CACJ,CACX,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Button, Heading, Text, Divider, ButtonText, SafeAreaView
|
|
2
|
+
import { Box, Button, Heading, Text, Divider, ButtonText, SafeAreaView } from '@gluestack-ui/themed';
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
4
|
const UnAuthenticatedComponent = () => {
|
|
5
5
|
const navigation = useNavigation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnAuthenticatedComponent.js","sourceRoot":"","sources":["../../src/components/UnAuthenticatedComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"UnAuthenticatedComponent.js","sourceRoot":"","sources":["../../src/components/UnAuthenticatedComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAqB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,aAAa,EAAO,CAAC;IACxC,OAAO,CACH,oBAAC,YAAY,IAAC,IAAI,EAAE,CAAC;QACjB,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc;YAE9D,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAC,QAAQ,EAAC,cAAc,EAAE,QAAQ;gBACvD,oBAAC,OAAO,IAAC,EAAE,EAAE,IAAI,YAAiB;gBAClC,oBAAC,IAAI,IAAC,QAAQ,EAAC,KAAK,EAAC,EAAE,EAAE,IAAI,0BAEtB;gBACP,oBAAC,MAAM,IAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC;oBAC7F,oBAAC,UAAU,IAAC,KAAK,EAAC,QAAQ,YAAmB,CACxC;gBACT,oBAAC,OAAO,IAAC,EAAE,EAAE,IAAI,GAAI,CACnB,CACJ,CACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
|
|
@@ -186,7 +186,7 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
186
186
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "beforeRemove", true>;
|
|
187
187
|
}> | ((props: {
|
|
188
188
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
189
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
189
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
190
190
|
}) => Partial<{
|
|
191
191
|
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "drawerItemPress", true>;
|
|
192
192
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "transitionStart", unknown>;
|
|
@@ -201,10 +201,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
201
201
|
}>);
|
|
202
202
|
screenOptions?: import("@react-navigation/drawer").DrawerNavigationOptions | ((props: {
|
|
203
203
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
204
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
204
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
205
205
|
theme: ReactNavigation.Theme;
|
|
206
206
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
207
|
-
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
207
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => React.ReactElement;
|
|
208
208
|
UNSTABLE_router?: <Action extends Readonly<{
|
|
209
209
|
type: string;
|
|
210
210
|
payload?: object;
|
|
@@ -213,10 +213,10 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
213
213
|
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
214
214
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
215
215
|
} & {
|
|
216
|
-
id:
|
|
216
|
+
id: string;
|
|
217
217
|
}>;
|
|
218
|
-
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
219
|
-
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
218
|
+
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>>;
|
|
219
|
+
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => null;
|
|
220
220
|
};
|
|
221
221
|
name: string;
|
|
222
222
|
props: {
|
|
@@ -186,7 +186,7 @@ export declare const appDrawerConfig: {
|
|
|
186
186
|
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "beforeRemove", true>;
|
|
187
187
|
}> | ((props: {
|
|
188
188
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
189
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
189
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
190
190
|
}) => Partial<{
|
|
191
191
|
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "drawerItemPress", true>;
|
|
192
192
|
transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap & import("@react-navigation/core").EventMapCore<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>>, "transitionStart", unknown>;
|
|
@@ -201,10 +201,10 @@ export declare const appDrawerConfig: {
|
|
|
201
201
|
}>);
|
|
202
202
|
screenOptions?: import("@react-navigation/drawer").DrawerNavigationOptions | ((props: {
|
|
203
203
|
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
204
|
-
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
204
|
+
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>;
|
|
205
205
|
theme: ReactNavigation.Theme;
|
|
206
206
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
207
|
-
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
207
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => React.ReactElement;
|
|
208
208
|
UNSTABLE_router?: <Action extends Readonly<{
|
|
209
209
|
type: string;
|
|
210
210
|
payload?: object;
|
|
@@ -213,10 +213,10 @@ export declare const appDrawerConfig: {
|
|
|
213
213
|
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
214
214
|
UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
|
|
215
215
|
} & {
|
|
216
|
-
id:
|
|
216
|
+
id: string;
|
|
217
217
|
}>;
|
|
218
|
-
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
219
|
-
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string,
|
|
218
|
+
Group: React.ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/routers").ParamListBase, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>>;
|
|
219
|
+
Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/routers").ParamListBase, RouteName, import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>, import("@react-navigation/drawer").DrawerNavigationOptions, import("@react-navigation/drawer").DrawerNavigationEventMap, import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, string>>) => null;
|
|
220
220
|
};
|
|
221
221
|
name: string;
|
|
222
222
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProLayout.js","sourceRoot":"","sources":["../../../src/containers/layout/ProLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,IAAI,WAAgB,CAAC;AACrB,IAAI,SAAc,CAAC;AAEnB,MAAM,SAAS,GAAkB,CAAC,KAAK,EAAE,EAAE;IACvC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAM,EAAE,CAAC,CAAC;IAC1D,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACvD,SAAS,GAAG,SAAS,CAAC;IACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"ProLayout.js","source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oBAAC,OAAO,OAAG,CAAO,CAAC;IAEjE,IAAI,OAAO,GAAG,WAAW,EAAE,uBAAuB,EAAE,IAAI,KAAK,CAAC,QAAQ,CAAC;IACvE,IAAI,gBAAgB,GAAG,WAAW,EAAE,oBAAoB,CAAC,GAAG,CAAC,IAAI,KAAK,EAAE,QAAQ,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC5G,IAAI,CAAC,SAAS;QAAE,OAAO,gBAAgB,EAAE,CAAC;IAC1C,OAAO,CACH,oBAAC,aAAa;QACV,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI;YAChF,SAAS;YACV,oBAAC,UAAU,OAAG;YACd,oBAAC,uBAAuB,IAAC,OAAO,EAAE,OAAO,GAAI,CAClB,CACnB,CACnB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,aAAa,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAsB,MAAM,0BAA0B,CAAC;AAChF,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,iBAAiB,MAAM,eAAe,CAAC;AAE9C,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAE9C,uDAAuD;AACvD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,iDAAiD;AAEjD,OAAO,EACH,gBAAgB,EAEhB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,YAAY,GACf,CAAC;AAEF,eAAe,IAAI,OAAO,CAAC;IACvB,OAAO,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE;IACzD,iBAAiB,EAAE;QACf,YAAY,EAAE,CAAC,cAAc,CAAC;KACjC;CACJ,CAAC,CAAC"}
|
|
@@ -381,7 +381,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
381
381
|
export default features;
|
|
382
382
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
383
383
|
// Use Prettier to format the code
|
|
384
|
-
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
384
|
+
classStructure = await prettier.format(classStructure, { parser: 'babel' });
|
|
385
385
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
386
386
|
return { appFeatures };
|
|
387
387
|
}
|
|
@@ -525,7 +525,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
525
525
|
export default features;
|
|
526
526
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
527
527
|
// Use Prettier to format the code
|
|
528
|
-
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
528
|
+
classStructure = await prettier.format(classStructure, { parser: 'babel' });
|
|
529
529
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
530
530
|
return { appFeatures };
|
|
531
531
|
}
|
|
@@ -589,7 +589,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
589
589
|
export default App;
|
|
590
590
|
`.replace(/,(\s*)$/, ''); // Removes trailing comma
|
|
591
591
|
// Use Prettier to format the code
|
|
592
|
-
classStructure = prettier.format(classStructure, { parser: 'babel' });
|
|
592
|
+
classStructure = await prettier.format(classStructure, { parser: 'babel' });
|
|
593
593
|
const appFeatures = importStatements + '\n' + classStructure;
|
|
594
594
|
return { appFeatures };
|
|
595
595
|
}
|
|
@@ -735,7 +735,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
735
735
|
}
|
|
736
736
|
stackNavigator = importStatements + '\n' + moduleRender;
|
|
737
737
|
let stackNavigation = stackNavigator;
|
|
738
|
-
stackNavigation = prettier.format(stackNavigation, { parser: 'babel' });
|
|
738
|
+
stackNavigation = await prettier.format(stackNavigation, { parser: 'babel' });
|
|
739
739
|
const stackDirName = path.dirname(stackDirPath);
|
|
740
740
|
try {
|
|
741
741
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, stackDirName);
|
|
@@ -870,7 +870,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
870
870
|
moduleNavigation = importStatements + '\n' + moduleRender;
|
|
871
871
|
const drawerNavigator = moduleNavigation;
|
|
872
872
|
let drawerNavigation = drawerNavigator;
|
|
873
|
-
drawerNavigation = prettier.format(drawerNavigation, { parser: 'babel' });
|
|
873
|
+
drawerNavigation = await prettier.format(drawerNavigation, { parser: 'babel' });
|
|
874
874
|
const drawerDirName = path.dirname(drawerDirPath);
|
|
875
875
|
try {
|
|
876
876
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, drawerDirName);
|
|
@@ -1083,7 +1083,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
1083
1083
|
moduleNavigation = importStatements + '\n' + moduleRender;
|
|
1084
1084
|
const bottomTabNavigator = moduleNavigation;
|
|
1085
1085
|
let bottomTabNavigation = bottomTabNavigator;
|
|
1086
|
-
bottomTabNavigation = prettier.format(bottomTabNavigation, { parser: 'babel' });
|
|
1086
|
+
bottomTabNavigation = await prettier.format(bottomTabNavigation, { parser: 'babel' });
|
|
1087
1087
|
const bottomDirName = path.dirname(bottomDirPath);
|
|
1088
1088
|
try {
|
|
1089
1089
|
const isDirCreated = await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_makeDir).call(this, bottomDirName);
|
|
@@ -1482,7 +1482,7 @@ _GenerateMobileNavigations_configFileData = new WeakMap(), _GenerateMobileNaviga
|
|
|
1482
1482
|
export default AppNavigations;
|
|
1483
1483
|
`;
|
|
1484
1484
|
appNavigation = importStatements + '\n' + rootComponent + '\n' + appComponent;
|
|
1485
|
-
appNavigation = prettier.format(appNavigation, { parser: 'babel' });
|
|
1485
|
+
appNavigation = await prettier.format(appNavigation, { parser: 'babel' });
|
|
1486
1486
|
try {
|
|
1487
1487
|
await __classPrivateFieldGet(this, _GenerateMobileNavigations_instances, "m", _GenerateMobileNavigations_writeFile).call(this, navigationDirPath, appNavigation);
|
|
1488
1488
|
}
|