@admin-layout/gluestack-ui-mobile 11.0.4-alpha.0 → 12.0.16-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -4
- package/lib/__tests__/prolayout-layout-feature.test.js +1 -1
- package/lib/__tests__/prolayout-layout-feature.test.js.map +1 -1
- package/lib/components/AuthWrapper.js +5 -3
- package/lib/components/AuthWrapper.js.map +1 -1
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/NavigationComponent.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.js.map +1 -1
- package/lib/components/WithConfiguration.js +4 -4
- package/lib/components/WithConfiguration.js.map +1 -1
- package/lib/components/WithPermission.js +1 -1
- package/lib/components/WithPermission.js.map +1 -1
- package/lib/components/WithPolicy.js +2 -2
- package/lib/components/WithPolicy.js.map +1 -1
- package/lib/components/ui/accordion/index.web.d.ts +209 -0
- package/lib/components/ui/accordion/index.web.js +156 -0
- package/lib/components/ui/accordion/index.web.js.map +1 -0
- package/lib/components/ui/actionsheet/index.web.d.ts +872 -0
- package/lib/components/ui/actionsheet/index.web.js +286 -0
- package/lib/components/ui/actionsheet/index.web.js.map +1 -0
- package/lib/components/ui/alert/index.web.d.ts +135 -0
- package/lib/components/ui/alert/index.web.js +38 -0
- package/lib/components/ui/alert/index.web.js.map +1 -0
- package/lib/components/ui/alert-dialog/index.web.d.ts +64 -0
- package/lib/components/ui/alert-dialog/index.web.js +139 -0
- package/lib/components/ui/alert-dialog/index.web.js.map +1 -0
- package/lib/components/ui/avatar/index.web.d.ts +21 -0
- package/lib/components/ui/avatar/index.web.js +92 -0
- package/lib/components/ui/avatar/index.web.js.map +1 -0
- package/lib/components/ui/badge/index.web.d.ts +382 -0
- package/lib/components/ui/badge/index.web.js +138 -0
- package/lib/components/ui/badge/index.web.js.map +1 -0
- package/lib/components/ui/button/index.web.d.ts +247 -0
- package/lib/components/ui/button/index.web.js +57 -0
- package/lib/components/ui/button/index.web.js.map +1 -0
- package/lib/components/ui/checkbox/index.web.d.ts +265 -0
- package/lib/components/ui/checkbox/index.web.js +77 -0
- package/lib/components/ui/checkbox/index.web.js.map +1 -0
- package/lib/components/ui/divider/index.web.d.ts +53 -0
- package/lib/components/ui/divider/index.web.js +21 -0
- package/lib/components/ui/divider/index.web.js.map +1 -0
- package/lib/components/ui/drawer/index.web.d.ts +174 -0
- package/lib/components/ui/drawer/index.web.js +65 -0
- package/lib/components/ui/drawer/index.web.js.map +1 -0
- package/lib/components/ui/fab/index.web.d.ts +520 -0
- package/lib/components/ui/fab/index.web.js +146 -0
- package/lib/components/ui/fab/index.web.js.map +1 -0
- package/lib/components/ui/flat-list/index.web.d.ts +21 -0
- package/lib/components/ui/flat-list/index.web.js +41 -0
- package/lib/components/ui/flat-list/index.web.js.map +1 -0
- package/lib/components/ui/form-control/index.web.d.ts +2071 -0
- package/lib/components/ui/form-control/index.web.js +290 -0
- package/lib/components/ui/form-control/index.web.js.map +1 -0
- package/lib/components/ui/image/index.web.d.ts +142 -0
- package/lib/components/ui/image/index.web.js +29 -0
- package/lib/components/ui/image/index.web.js.map +1 -0
- package/lib/components/ui/image-background/index.web.d.ts +8 -0
- package/lib/components/ui/image-background/index.web.js +23 -0
- package/lib/components/ui/image-background/index.web.js.map +1 -0
- package/lib/components/ui/input/index.web.d.ts +163 -0
- package/lib/components/ui/input/index.web.js +50 -0
- package/lib/components/ui/input/index.web.js.map +1 -0
- package/lib/components/ui/input-accessory-view/index.web.d.ts +9 -0
- package/lib/components/ui/input-accessory-view/index.web.js +16 -0
- package/lib/components/ui/input-accessory-view/index.web.js.map +1 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +9 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.js +8 -0
- package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +1 -0
- package/lib/components/ui/link/index.web.d.ts +365 -0
- package/lib/components/ui/link/index.web.js +70 -0
- package/lib/components/ui/link/index.web.js.map +1 -0
- package/lib/components/ui/menu/index.web.d.ts +142 -0
- package/lib/components/ui/menu/index.web.js +83 -0
- package/lib/components/ui/menu/index.web.js.map +1 -0
- package/lib/components/ui/modal/index.web.d.ts +111 -0
- package/lib/components/ui/modal/index.web.js +58 -0
- package/lib/components/ui/modal/index.web.js.map +1 -0
- package/lib/components/ui/popover/index.web.d.ts +309 -0
- package/lib/components/ui/popover/index.web.js +184 -0
- package/lib/components/ui/popover/index.web.js.map +1 -0
- package/lib/components/ui/portal/index.web.d.ts +9 -0
- package/lib/components/ui/portal/index.web.js +16 -0
- package/lib/components/ui/portal/index.web.js.map +1 -0
- package/lib/components/ui/pressable/index.web.d.ts +8 -0
- package/lib/components/ui/pressable/index.web.js +44 -0
- package/lib/components/ui/pressable/index.web.js.map +1 -0
- package/lib/components/ui/progress/index.web.d.ts +237 -0
- package/lib/components/ui/progress/index.web.js +73 -0
- package/lib/components/ui/progress/index.web.js.map +1 -0
- package/lib/components/ui/radio/index.web.d.ts +224 -0
- package/lib/components/ui/radio/index.web.js +69 -0
- package/lib/components/ui/radio/index.web.js.map +1 -0
- package/lib/components/ui/refresh-control/index.web.d.ts +14 -0
- package/lib/components/ui/refresh-control/index.web.js +69 -0
- package/lib/components/ui/refresh-control/index.web.js.map +1 -0
- package/lib/components/ui/safe-area-view/index.web.d.ts +6 -0
- package/lib/components/ui/safe-area-view/index.web.js +10 -0
- package/lib/components/ui/safe-area-view/index.web.js.map +1 -0
- package/lib/components/ui/scroll-view/index.web.d.ts +44 -0
- package/lib/components/ui/scroll-view/index.web.js +41 -0
- package/lib/components/ui/scroll-view/index.web.js.map +1 -0
- package/lib/components/ui/section-list/index.web.d.ts +26 -0
- package/lib/components/ui/section-list/index.web.js +35 -0
- package/lib/components/ui/section-list/index.web.js.map +1 -0
- package/lib/components/ui/select/index.web.d.ts +162 -0
- package/lib/components/ui/select/index.web.js +51 -0
- package/lib/components/ui/select/index.web.js.map +1 -0
- package/lib/components/ui/slider/index.web.d.ts +223 -0
- package/lib/components/ui/slider/index.web.js +189 -0
- package/lib/components/ui/slider/index.web.js.map +1 -0
- package/lib/components/ui/spinner/index.web.d.ts +176 -0
- package/lib/components/ui/spinner/index.web.js +55 -0
- package/lib/components/ui/spinner/index.web.js.map +1 -0
- package/lib/components/ui/status-bar/index.web.d.ts +14 -0
- package/lib/components/ui/status-bar/index.web.js +7 -0
- package/lib/components/ui/status-bar/index.web.js.map +1 -0
- package/lib/components/ui/switch/index.web.d.ts +71 -0
- package/lib/components/ui/switch/index.web.js +27 -0
- package/lib/components/ui/switch/index.web.js.map +1 -0
- package/lib/components/ui/tabs/index.web.d.ts +351 -0
- package/lib/components/ui/tabs/index.web.js +120 -0
- package/lib/components/ui/tabs/index.web.js.map +1 -0
- package/lib/components/ui/textarea/index.web.d.ts +162 -0
- package/lib/components/ui/textarea/index.web.js +50 -0
- package/lib/components/ui/textarea/index.web.js.map +1 -0
- package/lib/components/ui/toast/index.web.d.ts +225 -0
- package/lib/components/ui/toast/index.web.js +80 -0
- package/lib/components/ui/toast/index.web.js.map +1 -0
- package/lib/components/ui/tooltip/index.web.d.ts +86 -0
- package/lib/components/ui/tooltip/index.web.js +110 -0
- package/lib/components/ui/tooltip/index.web.js.map +1 -0
- package/lib/components/ui/view/index.web.d.ts +2 -0
- package/lib/components/ui/view/index.web.js +7 -0
- package/lib/components/ui/view/index.web.js.map +1 -0
- package/lib/components/ui/virtualized-list/index.web.d.ts +19 -0
- package/lib/components/ui/virtualized-list/index.web.js +30 -0
- package/lib/components/ui/virtualized-list/index.web.js.map +1 -0
- package/lib/components/usePermissionAutoFetch.d.ts +7 -19
- package/lib/components/with-interactions-lifecycle-managed.js.map +1 -1
- package/lib/components/with-interactions-managed.js +2 -3
- package/lib/components/with-interactions-managed.js.map +1 -1
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +47 -47
- package/lib/containers/layout/DrawerConfig.d.ts +31 -31
- package/lib/containers/layout/module.js +1 -1
- package/lib/containers/layout/module.js.map +1 -1
- package/lib/interfaces/settings.d.ts +1 -0
- package/lib/redux/settings.d.ts +4 -9
- package/lib/utils/routeConfigKeyReplace.test.js +1 -1
- package/lib/utils/routeConfigKeyReplace.test.js.map +1 -1
- package/package.json +7 -4
- package/src/__tests__/prolayout-layout-feature.test.tsx +2 -2
- package/src/components/AuthWrapper.tsx +6 -3
- package/src/components/ErrorBounday.tsx +18 -19
- package/src/components/NavigationComponent.tsx +1 -1
- package/src/components/UnAuthenticatedComponent.tsx +1 -3
- package/src/components/WithConfiguration.tsx +5 -8
- package/src/components/WithPermission.tsx +1 -1
- package/src/components/WithPolicy.tsx +4 -3
- package/src/components/ui/accordion/index.web.tsx +294 -0
- package/src/components/ui/actionsheet/index.web.tsx +555 -0
- package/src/components/ui/alert/index.web.tsx +71 -0
- package/src/components/ui/alert-dialog/index.web.tsx +241 -0
- package/src/components/ui/avatar/index.web.tsx +150 -0
- package/src/components/ui/badge/index.web.tsx +188 -0
- package/src/components/ui/button/index.web.tsx +86 -0
- package/src/components/ui/checkbox/index.web.tsx +151 -0
- package/src/components/ui/divider/index.web.tsx +37 -0
- package/src/components/ui/drawer/index.web.tsx +144 -0
- package/src/components/ui/fab/index.web.tsx +201 -0
- package/src/components/ui/flat-list/index.web.tsx +89 -0
- package/src/components/ui/form-control/index.web.tsx +451 -0
- package/src/components/ui/image/index.web.tsx +43 -0
- package/src/components/ui/image-background/index.web.tsx +43 -0
- package/src/components/ui/input/index.web.tsx +80 -0
- package/src/components/ui/input-accessory-view/index.web.tsx +31 -0
- package/src/components/ui/keyboard-avoiding-view/index.web.tsx +23 -0
- package/src/components/ui/link/index.web.tsx +103 -0
- package/src/components/ui/menu/index.web.tsx +159 -0
- package/src/components/ui/modal/index.web.tsx +135 -0
- package/src/components/ui/popover/index.web.tsx +326 -0
- package/src/components/ui/portal/index.web.tsx +34 -0
- package/src/components/ui/pressable/index.web.tsx +73 -0
- package/src/components/ui/progress/index.web.tsx +123 -0
- package/src/components/ui/radio/index.web.tsx +130 -0
- package/src/components/ui/refresh-control/index.web.tsx +104 -0
- package/src/components/ui/safe-area-view/index.web.tsx +24 -0
- package/src/components/ui/scroll-view/index.web.tsx +142 -0
- package/src/components/ui/section-list/index.web.tsx +93 -0
- package/src/components/ui/select/index.web.tsx +83 -0
- package/src/components/ui/slider/index.web.tsx +283 -0
- package/src/components/ui/spinner/index.web.tsx +81 -0
- package/src/components/ui/status-bar/index.web.tsx +20 -0
- package/src/components/ui/switch/index.web.tsx +44 -0
- package/src/components/ui/tabs/index.web.tsx +205 -0
- package/src/components/ui/textarea/index.web.tsx +86 -0
- package/src/components/ui/toast/index.web.tsx +132 -0
- package/src/components/ui/tooltip/index.web.tsx +155 -0
- package/src/components/ui/view/index.web.tsx +15 -0
- package/src/components/ui/virtualized-list/index.web.tsx +84 -0
- package/src/components/with-interactions-lifecycle-managed.tsx +0 -4
- package/src/components/with-interactions-managed.tsx +3 -4
- package/src/containers/layout/module.ts +1 -1
- package/src/interfaces/settings.ts +1 -0
- package/src/utils/routeConfigKeyReplace.test.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-interactions-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"with-interactions-managed.js","sourceRoot":"","sources":["../../src/components/with-interactions-managed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,MAAM,UAAU,uBAAuB,CACnC,SAA+B,EAC/B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,+BAA+B;AAC/B,8CAA8C;AAC9C,6DAA6D;AAC7D,uBAAuB;AACvB,gBAAgB;AAChB,2HAA2H;AAC3H,+BAA+B;AAC/B,aAAa;AACb,SAAS;AAET,gDAAgD;AAChD,sBAAsB;AACtB,IAAI;AAEJ,kDAAkD;AAClD,uCAAuC;AACvC,gDAAgD;AAChD,MAAM;AACN,0CAA0C;AAC1C,kFAAkF;AAClF,+FAA+F;AAC/F,qEAAqE;AACrE,mBAAmB;AACnB,kCAAkC;AAClC,+BAA+B;AAC/B,4CAA4C;AAC5C,0EAA0E;AAC1E,wDAAwD;AACxD,6CAA6C;AAC7C,oBAAoB;AACpB,sCAAsC;AACtC,sCAAsC;AACtC,gBAAgB;AAChB,2HAA2H;AAC3H,oCAAoC;AACpC,aAAa;AACb,SAAS;AAET,gDAAgD;AAChD,sBAAsB;AACtB,IAAI"}
|
|
@@ -40,16 +40,16 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
40
40
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
41
41
|
theme: ReactNavigation.Theme;
|
|
42
42
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
43
|
-
screenLayout?: (props:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
44
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
45
|
+
type: string;
|
|
46
|
+
payload?: object;
|
|
47
|
+
source?: string;
|
|
48
|
+
target?: string;
|
|
49
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
50
50
|
} & {
|
|
51
51
|
id: string;
|
|
52
|
-
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
52
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
53
53
|
children: React.ReactNode;
|
|
54
54
|
layout?: (props: {
|
|
55
55
|
state: import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -86,13 +86,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
86
86
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
87
87
|
theme: ReactNavigation.Theme;
|
|
88
88
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
89
|
-
screenLayout?: (props:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
90
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
91
|
+
type: string;
|
|
92
|
+
payload?: object;
|
|
93
|
+
source?: string;
|
|
94
|
+
target?: string;
|
|
95
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
96
96
|
} & {
|
|
97
97
|
id: undefined;
|
|
98
98
|
}>;
|
|
@@ -149,20 +149,20 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
149
149
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
150
150
|
theme: ReactNavigation.Theme;
|
|
151
151
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
152
|
-
screenLayout?: (props:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
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, undefined>>) => React.ReactElement;
|
|
153
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
154
|
+
type: string;
|
|
155
|
+
payload?: object;
|
|
156
|
+
source?: string;
|
|
157
|
+
target?: string;
|
|
158
|
+
}>>(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>>;
|
|
159
159
|
} & {
|
|
160
160
|
id: string;
|
|
161
161
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
162
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
162
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
163
163
|
} & {
|
|
164
164
|
defaultStatus?: import("@react-navigation/routers").DrawerStatus;
|
|
165
|
-
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
165
|
+
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
166
166
|
children: React.ReactNode;
|
|
167
167
|
layout?: (props: {
|
|
168
168
|
state: import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -201,13 +201,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
201
201
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
202
202
|
theme: ReactNavigation.Theme;
|
|
203
203
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
204
|
-
screenLayout?: (props:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
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, undefined>>) => React.ReactElement;
|
|
205
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
206
|
+
type: string;
|
|
207
|
+
payload?: object;
|
|
208
|
+
source?: string;
|
|
209
|
+
target?: string;
|
|
210
|
+
}>>(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>>;
|
|
211
211
|
} & {
|
|
212
212
|
id: undefined;
|
|
213
213
|
}>;
|
|
@@ -261,18 +261,18 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
261
261
|
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
262
262
|
theme: ReactNavigation.Theme;
|
|
263
263
|
}) => import("@react-navigation/bottom-tabs").BottomTabNavigationOptions);
|
|
264
|
-
screenLayout?: (props:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
265
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
266
|
+
type: string;
|
|
267
|
+
payload?: object;
|
|
268
|
+
source?: string;
|
|
269
|
+
target?: string;
|
|
270
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
271
271
|
} & {
|
|
272
272
|
id: string;
|
|
273
273
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
274
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
275
|
-
} & import("@react-navigation/bottom-tabs/lib/typescript/commonjs/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
274
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
275
|
+
} & import("@react-navigation/bottom-tabs/lib/typescript/commonjs/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
276
276
|
children: React.ReactNode;
|
|
277
277
|
layout?: (props: {
|
|
278
278
|
state: import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -307,13 +307,13 @@ export declare const appDrawerBottomNavigationConfig: {
|
|
|
307
307
|
navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
308
308
|
theme: ReactNavigation.Theme;
|
|
309
309
|
}) => import("@react-navigation/bottom-tabs").BottomTabNavigationOptions);
|
|
310
|
-
screenLayout?: (props:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/bottom-tabs").BottomTabNavigationOptions, import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
311
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
312
|
+
type: string;
|
|
313
|
+
payload?: object;
|
|
314
|
+
source?: string;
|
|
315
|
+
target?: string;
|
|
316
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").TabNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
317
317
|
} & {
|
|
318
318
|
id: undefined;
|
|
319
319
|
}>;
|
|
@@ -40,16 +40,16 @@ export declare const appDrawerConfig: {
|
|
|
40
40
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
41
41
|
theme: ReactNavigation.Theme;
|
|
42
42
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
43
|
-
screenLayout?: (props:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
44
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
45
|
+
type: string;
|
|
46
|
+
payload?: object;
|
|
47
|
+
source?: string;
|
|
48
|
+
target?: string;
|
|
49
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
50
50
|
} & {
|
|
51
51
|
id: string;
|
|
52
|
-
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
52
|
+
} & import("@react-navigation/routers").StackRouterOptions & import("@react-navigation/stack/lib/typescript/commonjs/src/types").StackNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
53
53
|
children: React.ReactNode;
|
|
54
54
|
layout?: (props: {
|
|
55
55
|
state: import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -86,13 +86,13 @@ export declare const appDrawerConfig: {
|
|
|
86
86
|
navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
87
87
|
theme: ReactNavigation.Theme;
|
|
88
88
|
}) => import("@react-navigation/stack").StackNavigationOptions);
|
|
89
|
-
screenLayout?: (props:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
screenLayout?: (props: import("@react-navigation/core").ScreenLayoutArgs<import("@react-navigation/routers").ParamListBase, string, import("@react-navigation/stack").StackNavigationOptions, import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>>) => React.ReactElement;
|
|
90
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
91
|
+
type: string;
|
|
92
|
+
payload?: object;
|
|
93
|
+
source?: string;
|
|
94
|
+
target?: string;
|
|
95
|
+
}>>(original: import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>) => Partial<import("@react-navigation/routers").Router<import("@react-navigation/routers").StackNavigationState<import("@react-navigation/routers").ParamListBase>, Action>>;
|
|
96
96
|
} & {
|
|
97
97
|
id: undefined;
|
|
98
98
|
}>;
|
|
@@ -149,20 +149,20 @@ export declare const appDrawerConfig: {
|
|
|
149
149
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
150
150
|
theme: ReactNavigation.Theme;
|
|
151
151
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
152
|
-
screenLayout?: (props:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
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, undefined>>) => React.ReactElement;
|
|
153
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
154
|
+
type: string;
|
|
155
|
+
payload?: object;
|
|
156
|
+
source?: string;
|
|
157
|
+
target?: string;
|
|
158
|
+
}>>(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>>;
|
|
159
159
|
} & {
|
|
160
160
|
id: string;
|
|
161
161
|
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
162
|
-
backBehavior?: import("@react-navigation/routers/lib/typescript/
|
|
162
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior;
|
|
163
163
|
} & {
|
|
164
164
|
defaultStatus?: import("@react-navigation/routers").DrawerStatus;
|
|
165
|
-
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "
|
|
165
|
+
} & import("@react-navigation/drawer/lib/typescript/commonjs/src/types").DrawerNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
166
166
|
children: React.ReactNode;
|
|
167
167
|
layout?: (props: {
|
|
168
168
|
state: import("@react-navigation/routers").DrawerNavigationState<import("@react-navigation/routers").ParamListBase>;
|
|
@@ -201,13 +201,13 @@ export declare const appDrawerConfig: {
|
|
|
201
201
|
navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
|
|
202
202
|
theme: ReactNavigation.Theme;
|
|
203
203
|
}) => import("@react-navigation/drawer").DrawerNavigationOptions);
|
|
204
|
-
screenLayout?: (props:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
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, undefined>>) => React.ReactElement;
|
|
205
|
+
UNSTABLE_router?: <Action extends Readonly<{
|
|
206
|
+
type: string;
|
|
207
|
+
payload?: object;
|
|
208
|
+
source?: string;
|
|
209
|
+
target?: string;
|
|
210
|
+
}>>(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>>;
|
|
211
211
|
} & {
|
|
212
212
|
id: undefined;
|
|
213
213
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/containers/layout/module.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,kEAAkE;AAClE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG;IACjB,CAAC,GAAG,CAAC,EAAE;QACH,KAAK,EAAE,KAAK;QACZ,qCAAqC;QACrC,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE;YACH,gBAAgB,EAAE,yBAAyB;YAC3C,aAAa,EAAE;gBACX,WAAW,EAAE,KAAK;aACrB;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,IAAI,OAAO,CAAC;IACvB,WAAW,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/containers/layout/module.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,kEAAkE;AAClE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG;IACjB,CAAC,GAAG,CAAC,EAAE;QACH,KAAK,EAAE,KAAK;QACZ,qCAAqC;QACrC,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE;YACH,gBAAgB,EAAE,yBAAyB;YAC3C,aAAa,EAAE;gBACX,WAAW,EAAE,KAAK;aACrB;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,IAAI,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,YAAY,CAAC;CAC9B,CAAC,CAAC"}
|
package/lib/redux/settings.d.ts
CHANGED
|
@@ -44,22 +44,17 @@ declare const settingsReducer: (state: {
|
|
|
44
44
|
loading?: boolean;
|
|
45
45
|
};
|
|
46
46
|
title: string | false;
|
|
47
|
+
logo: string | React.ReactNode;
|
|
47
48
|
iconfontUrl: string;
|
|
48
49
|
colorPrimary?: string;
|
|
49
50
|
primaryColor: string;
|
|
50
51
|
colorWeak: boolean;
|
|
51
52
|
splitMenus?: boolean;
|
|
52
53
|
siderMenuType?: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
showFooter?: boolean | any;
|
|
56
|
-
footerRender?: boolean | any;
|
|
57
|
-
searchBarRender?: boolean | any;
|
|
58
|
-
showMenu?: boolean | any;
|
|
59
|
-
menuRender?: false | any;
|
|
60
|
-
menuHeaderRender?: false | any;
|
|
54
|
+
currentRoute?: string;
|
|
55
|
+
routeSettings?: any;
|
|
61
56
|
language: string;
|
|
62
|
-
|
|
57
|
+
extensionName?: string;
|
|
63
58
|
topLeftToggle: boolean;
|
|
64
59
|
topRightSettingToggle: boolean;
|
|
65
60
|
} | {
|
|
@@ -89,7 +89,7 @@ describe('route config key replace', () => {
|
|
|
89
89
|
// For layout 'bottom', keyReplaceWith='/bottom_tab/',appLayout=appBottomTabFeature
|
|
90
90
|
// For layout 'host-bottom', keyReplaceWith='/host_tab/',appLayout=appHostBottomTabFeature
|
|
91
91
|
//*******************************************************************/
|
|
92
|
-
const routeConfigFeature = new Feature({ routeConfig: routerConfig });
|
|
92
|
+
const routeConfigFeature = new Feature({ routeConfig: [routerConfig] });
|
|
93
93
|
let keyReplacedWith = '/bottom_tab/';
|
|
94
94
|
const appLayout = appBottomTabFeature;
|
|
95
95
|
const { appFeatures } = routeConfigKeyReplace(keyReplacedWith, routeConfigFeature, appLayout);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routeConfigKeyReplace.test.js","sourceRoot":"","sources":["../../src/utils/routeConfigKeyReplace.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"routeConfigKeyReplace.test.js","sourceRoot":"","sources":["../../src/utils/routeConfigKeyReplace.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEH,mBAAmB,GAItB,MAAM,mCAAmC,CAAC;AAE3C,MAAM,WAAW,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;AAE7B,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACtC,MAAM,YAAY,GAAG;QACjB,CAAC,GAAG,CAAC,EAAE;YACH,KAAK,EAAE,KAAK;YACZ,SAAS,EAAE,oBAAoB,EAAE;YACjC,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE;gBACH,gBAAgB,EAAE,yBAAyB;gBAC3C,aAAa,EAAE;oBACX,WAAW,EAAE,KAAK;iBACrB;aACJ;SACJ;QACD,oBAAoB;QACpB,oBAAoB;QACpB,2CAA2C;QAC3C,4BAA4B;QAC5B,eAAe;QACf,iEAAiE;QACjE,kCAAkC;QAClC,2BAA2B;QAC3B,kCAAkC;QAClC,aAAa;QACb,SAAS;QACT,KAAK;QACL,CAAC,UAAU,CAAC,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACH,QAAQ,EAAE,CAAC;gBACX,aAAa,EA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IAAI,eAAe,GAAG,cAAc,CAAC;QACrC,MAAM,SAAS,GAAG,mBAAmB,CAAC;QAEtC,MAAM,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,eAAe,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAC;QAC9F,uEAAuE;QACvE,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QACxD,MAAM,eAAe,GAAG,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;QAC9D,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/gluestack-ui-mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.16-alpha.0",
|
|
4
4
|
"description": "Glustack-ui for mobile component layout",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"watch": "npm run build:lib:watch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@admin-layout/client": "
|
|
27
|
+
"@admin-layout/client": "12.0.16-alpha.0",
|
|
28
28
|
"@expo/html-elements": "^0.11.2",
|
|
29
29
|
"@gluestack-ui/accordion": "^1.0.12",
|
|
30
30
|
"@gluestack-ui/actionsheet": "^0.2.50",
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
"nativewind": "^4.1.23",
|
|
61
61
|
"react-native-css-interop": "0.1.22",
|
|
62
62
|
"react-native-toast-message": "^2.1.5",
|
|
63
|
-
"
|
|
63
|
+
"react-window": "^1.8.11"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@types/react-window": "^1.8.8"
|
|
64
67
|
},
|
|
65
68
|
"peerDependencies": {
|
|
66
69
|
"@common-stack/remix-router-redux": "^6.0.2-alpha.2",
|
|
@@ -74,5 +77,5 @@
|
|
|
74
77
|
"typescript": {
|
|
75
78
|
"definition": "lib/index.d.ts"
|
|
76
79
|
},
|
|
77
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "13b6399435ba738671b6feea9adf84a12c256d69"
|
|
78
81
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderer from 'react-test-renderer';
|
|
3
3
|
import { ProLayout } from '../containers/layout/ProLayout';
|
|
4
|
-
import { Feature
|
|
4
|
+
import { Feature } from '@common-stack/client-react';
|
|
5
5
|
import { createStackNavigator } from '@react-navigation/stack';
|
|
6
6
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
7
7
|
import { createDrawerNavigator } from '@react-navigation/drawer';
|
|
@@ -93,7 +93,7 @@ const MyComponent = () => {
|
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
const feature = new Feature({ routeConfig: routerConfig });
|
|
96
|
+
const feature = new Feature({ routeConfig: [routerConfig] });
|
|
97
97
|
return <ProLayout features={feature} />;
|
|
98
98
|
};
|
|
99
99
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isUserAuthenticated } from '@adminide-stack/user-auth0-client';
|
|
3
|
-
import { useNavigation } from '@react-navigation/native';
|
|
3
|
+
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
4
4
|
import { useSelector } from 'react-redux';
|
|
5
5
|
import DefaultAuthComponent from './UnAuthenticatedComponent';
|
|
6
6
|
import {
|
|
@@ -22,10 +22,13 @@ export const AuthWrapper = ({
|
|
|
22
22
|
const user = useSelector((state: any) => state.user);
|
|
23
23
|
const { authenticated } = isUserAuthenticated();
|
|
24
24
|
const navigation = useNavigation<any>();
|
|
25
|
+
const route = useRoute<any>();
|
|
25
26
|
|
|
26
27
|
React.useEffect(() => {
|
|
27
|
-
if (auth && !user?.profile)
|
|
28
|
-
|
|
28
|
+
if ((auth === true || route?.params?.auth === true) && !user?.profile) {
|
|
29
|
+
navigation.navigate('MainStack.Login');
|
|
30
|
+
}
|
|
31
|
+
}, [auth, route.params.auth]);
|
|
29
32
|
|
|
30
33
|
const wrapperComponent = withLifeCycle
|
|
31
34
|
? withLifeCycleManaged(component, authority)
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { FallbackComponent } from './Fallback';
|
|
3
3
|
import { logger } from '@cdm-logger/client';
|
|
4
|
-
import { useDispatch } from 'react-redux'
|
|
5
4
|
|
|
6
|
-
type IErrorBoundryState = { hasError: boolean
|
|
5
|
+
type IErrorBoundryState = { hasError: boolean; error: Error | null };
|
|
7
6
|
type IErrorBoundryProps = {
|
|
8
|
-
|
|
7
|
+
children: ReactElement;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
export class ErrorBoundary extends React.Component<IErrorBoundryProps, IErrorBoundryState> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
constructor(props: IErrorBoundryProps) {
|
|
12
|
+
super(props);
|
|
13
|
+
this.state = { hasError: false, error: null };
|
|
14
|
+
}
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
static getDerivedStateFromError(error: Error) {
|
|
17
|
+
return { hasError: true, error };
|
|
18
|
+
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
componentDidCatch(error: Error) {
|
|
21
|
+
logger.debug(error);
|
|
22
|
+
}
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
render() {
|
|
25
|
+
if (this.state.hasError) {
|
|
26
|
+
return <FallbackComponent error={this.state.error as Error} />;
|
|
27
|
+
}
|
|
28
|
+
return this.props.children;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
30
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LOCATION_CHANGE as LOCATION_CHANGE_SUCCESS } from '@common-stack/remix-router-redux';
|
|
2
2
|
import { NavigationContainer, LinkingOptions } from '@react-navigation/native';
|
|
3
|
-
import { cloneDeep
|
|
3
|
+
import { cloneDeep } from 'lodash-es';
|
|
4
4
|
import React, { MutableRefObject, ReactElement, useRef } from 'react';
|
|
5
5
|
import { useDispatch, useSelector } from 'react-redux';
|
|
6
6
|
import { navigationRef } from '@common-stack/client-react';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Button, Heading, Text,
|
|
2
|
+
import { Box, Button, Heading, Text, Divider, ButtonText, StyledSafeAreaView } from './ui';
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
5
|
-
import { Linking } from 'react-native';
|
|
6
4
|
|
|
7
5
|
const UnAuthenticatedComponent = () => {
|
|
8
6
|
const navigation = useNavigation<any>();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { PermissionType, Visibility } from 'common';
|
|
2
|
+
import { IConfigurationsFlattenedKeys, PermissionType, Visibility } from 'common';
|
|
4
3
|
import { IPreDefinedPermissions } from '@adminide-stack/core';
|
|
5
4
|
import { useSetting, usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
6
5
|
import { get } from 'lodash-es';
|
|
7
6
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
|
7
|
+
import { Spinner, Box, Text, Heading } from './ui';
|
|
8
8
|
|
|
9
9
|
export interface IWithConfigurationProps {
|
|
10
10
|
children?: React.ReactElement;
|
|
@@ -19,20 +19,17 @@ export const WithConfiguration = (props: IWithConfigurationProps) => {
|
|
|
19
19
|
const { configKey, children, permissionKeys, resourceName, permissionTypes } = props;
|
|
20
20
|
|
|
21
21
|
const {
|
|
22
|
-
data,
|
|
22
|
+
data: config,
|
|
23
23
|
loading: settingsLoading,
|
|
24
24
|
updateConfiguration: _,
|
|
25
25
|
} = useSetting({
|
|
26
|
-
configKey,
|
|
26
|
+
configKey: configKey as IConfigurationsFlattenedKeys,
|
|
27
27
|
overrides: { resource: props.settingsUri },
|
|
28
28
|
});
|
|
29
29
|
// const { data: permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
30
30
|
const { permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
31
31
|
|
|
32
|
-
const isPrivate = React.useMemo(
|
|
33
|
-
() => Visibility.Private === data?.resolveConfiguration,
|
|
34
|
-
[data?.resolveConfiguration],
|
|
35
|
-
);
|
|
32
|
+
const isPrivate = React.useMemo(() => Visibility.Private === config, [config]);
|
|
36
33
|
|
|
37
34
|
const hasPermission = React.useMemo(() => {
|
|
38
35
|
if (isPrivate && permissions && Array.isArray(permissionKeys)) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Spinner, Box, Text, Heading } from './ui';
|
|
3
2
|
import { PermissionType } from 'common';
|
|
4
3
|
import { IPreDefinedPermissions } from '@adminide-stack/core';
|
|
5
4
|
import { get } from 'lodash-es';
|
|
6
5
|
import { usePermissionAutoFetch } from '@adminide-stack/platform-client';
|
|
6
|
+
import { Spinner, Box, Text, Heading } from './ui';
|
|
7
7
|
|
|
8
8
|
export enum WithPermissionBehaviour {
|
|
9
9
|
hide,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import { Spinner } from './ui';
|
|
4
3
|
import { logger } from '@cdm-logger/client';
|
|
5
4
|
import { useSetting } from '@adminide-stack/platform-client';
|
|
5
|
+
import { IConfigurationsFlattenedKeys } from 'common';
|
|
6
|
+
import { Spinner } from './ui';
|
|
6
7
|
|
|
7
8
|
interface IProps {
|
|
8
9
|
policyKey: string;
|
|
@@ -19,7 +20,7 @@ export const WithPolicy = (props: IProps): ReactElement => {
|
|
|
19
20
|
loading,
|
|
20
21
|
error,
|
|
21
22
|
} = useSetting({
|
|
22
|
-
configKey: policyKey,
|
|
23
|
+
configKey: policyKey as IConfigurationsFlattenedKeys,
|
|
23
24
|
});
|
|
24
25
|
if (error) {
|
|
25
26
|
logger.error(error, `WithPolicy.name`);
|
|
@@ -28,5 +29,5 @@ export const WithPolicy = (props: IProps): ReactElement => {
|
|
|
28
29
|
return <Spinner color={'#ff5a00'} />;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
return <Child {...childProps} value={policy
|
|
32
|
+
return <Child {...childProps} value={policy} />;
|
|
32
33
|
};
|