@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.
Files changed (204) hide show
  1. package/CHANGELOG.md +60 -4
  2. package/lib/__tests__/prolayout-layout-feature.test.js +1 -1
  3. package/lib/__tests__/prolayout-layout-feature.test.js.map +1 -1
  4. package/lib/components/AuthWrapper.js +5 -3
  5. package/lib/components/AuthWrapper.js.map +1 -1
  6. package/lib/components/ErrorBounday.js.map +1 -1
  7. package/lib/components/NavigationComponent.js.map +1 -1
  8. package/lib/components/UnAuthenticatedComponent.js.map +1 -1
  9. package/lib/components/WithConfiguration.js +4 -4
  10. package/lib/components/WithConfiguration.js.map +1 -1
  11. package/lib/components/WithPermission.js +1 -1
  12. package/lib/components/WithPermission.js.map +1 -1
  13. package/lib/components/WithPolicy.js +2 -2
  14. package/lib/components/WithPolicy.js.map +1 -1
  15. package/lib/components/ui/accordion/index.web.d.ts +209 -0
  16. package/lib/components/ui/accordion/index.web.js +156 -0
  17. package/lib/components/ui/accordion/index.web.js.map +1 -0
  18. package/lib/components/ui/actionsheet/index.web.d.ts +872 -0
  19. package/lib/components/ui/actionsheet/index.web.js +286 -0
  20. package/lib/components/ui/actionsheet/index.web.js.map +1 -0
  21. package/lib/components/ui/alert/index.web.d.ts +135 -0
  22. package/lib/components/ui/alert/index.web.js +38 -0
  23. package/lib/components/ui/alert/index.web.js.map +1 -0
  24. package/lib/components/ui/alert-dialog/index.web.d.ts +64 -0
  25. package/lib/components/ui/alert-dialog/index.web.js +139 -0
  26. package/lib/components/ui/alert-dialog/index.web.js.map +1 -0
  27. package/lib/components/ui/avatar/index.web.d.ts +21 -0
  28. package/lib/components/ui/avatar/index.web.js +92 -0
  29. package/lib/components/ui/avatar/index.web.js.map +1 -0
  30. package/lib/components/ui/badge/index.web.d.ts +382 -0
  31. package/lib/components/ui/badge/index.web.js +138 -0
  32. package/lib/components/ui/badge/index.web.js.map +1 -0
  33. package/lib/components/ui/button/index.web.d.ts +247 -0
  34. package/lib/components/ui/button/index.web.js +57 -0
  35. package/lib/components/ui/button/index.web.js.map +1 -0
  36. package/lib/components/ui/checkbox/index.web.d.ts +265 -0
  37. package/lib/components/ui/checkbox/index.web.js +77 -0
  38. package/lib/components/ui/checkbox/index.web.js.map +1 -0
  39. package/lib/components/ui/divider/index.web.d.ts +53 -0
  40. package/lib/components/ui/divider/index.web.js +21 -0
  41. package/lib/components/ui/divider/index.web.js.map +1 -0
  42. package/lib/components/ui/drawer/index.web.d.ts +174 -0
  43. package/lib/components/ui/drawer/index.web.js +65 -0
  44. package/lib/components/ui/drawer/index.web.js.map +1 -0
  45. package/lib/components/ui/fab/index.web.d.ts +520 -0
  46. package/lib/components/ui/fab/index.web.js +146 -0
  47. package/lib/components/ui/fab/index.web.js.map +1 -0
  48. package/lib/components/ui/flat-list/index.web.d.ts +21 -0
  49. package/lib/components/ui/flat-list/index.web.js +41 -0
  50. package/lib/components/ui/flat-list/index.web.js.map +1 -0
  51. package/lib/components/ui/form-control/index.web.d.ts +2071 -0
  52. package/lib/components/ui/form-control/index.web.js +290 -0
  53. package/lib/components/ui/form-control/index.web.js.map +1 -0
  54. package/lib/components/ui/image/index.web.d.ts +142 -0
  55. package/lib/components/ui/image/index.web.js +29 -0
  56. package/lib/components/ui/image/index.web.js.map +1 -0
  57. package/lib/components/ui/image-background/index.web.d.ts +8 -0
  58. package/lib/components/ui/image-background/index.web.js +23 -0
  59. package/lib/components/ui/image-background/index.web.js.map +1 -0
  60. package/lib/components/ui/input/index.web.d.ts +163 -0
  61. package/lib/components/ui/input/index.web.js +50 -0
  62. package/lib/components/ui/input/index.web.js.map +1 -0
  63. package/lib/components/ui/input-accessory-view/index.web.d.ts +9 -0
  64. package/lib/components/ui/input-accessory-view/index.web.js +16 -0
  65. package/lib/components/ui/input-accessory-view/index.web.js.map +1 -0
  66. package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +9 -0
  67. package/lib/components/ui/keyboard-avoiding-view/index.web.js +8 -0
  68. package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +1 -0
  69. package/lib/components/ui/link/index.web.d.ts +365 -0
  70. package/lib/components/ui/link/index.web.js +70 -0
  71. package/lib/components/ui/link/index.web.js.map +1 -0
  72. package/lib/components/ui/menu/index.web.d.ts +142 -0
  73. package/lib/components/ui/menu/index.web.js +83 -0
  74. package/lib/components/ui/menu/index.web.js.map +1 -0
  75. package/lib/components/ui/modal/index.web.d.ts +111 -0
  76. package/lib/components/ui/modal/index.web.js +58 -0
  77. package/lib/components/ui/modal/index.web.js.map +1 -0
  78. package/lib/components/ui/popover/index.web.d.ts +309 -0
  79. package/lib/components/ui/popover/index.web.js +184 -0
  80. package/lib/components/ui/popover/index.web.js.map +1 -0
  81. package/lib/components/ui/portal/index.web.d.ts +9 -0
  82. package/lib/components/ui/portal/index.web.js +16 -0
  83. package/lib/components/ui/portal/index.web.js.map +1 -0
  84. package/lib/components/ui/pressable/index.web.d.ts +8 -0
  85. package/lib/components/ui/pressable/index.web.js +44 -0
  86. package/lib/components/ui/pressable/index.web.js.map +1 -0
  87. package/lib/components/ui/progress/index.web.d.ts +237 -0
  88. package/lib/components/ui/progress/index.web.js +73 -0
  89. package/lib/components/ui/progress/index.web.js.map +1 -0
  90. package/lib/components/ui/radio/index.web.d.ts +224 -0
  91. package/lib/components/ui/radio/index.web.js +69 -0
  92. package/lib/components/ui/radio/index.web.js.map +1 -0
  93. package/lib/components/ui/refresh-control/index.web.d.ts +14 -0
  94. package/lib/components/ui/refresh-control/index.web.js +69 -0
  95. package/lib/components/ui/refresh-control/index.web.js.map +1 -0
  96. package/lib/components/ui/safe-area-view/index.web.d.ts +6 -0
  97. package/lib/components/ui/safe-area-view/index.web.js +10 -0
  98. package/lib/components/ui/safe-area-view/index.web.js.map +1 -0
  99. package/lib/components/ui/scroll-view/index.web.d.ts +44 -0
  100. package/lib/components/ui/scroll-view/index.web.js +41 -0
  101. package/lib/components/ui/scroll-view/index.web.js.map +1 -0
  102. package/lib/components/ui/section-list/index.web.d.ts +26 -0
  103. package/lib/components/ui/section-list/index.web.js +35 -0
  104. package/lib/components/ui/section-list/index.web.js.map +1 -0
  105. package/lib/components/ui/select/index.web.d.ts +162 -0
  106. package/lib/components/ui/select/index.web.js +51 -0
  107. package/lib/components/ui/select/index.web.js.map +1 -0
  108. package/lib/components/ui/slider/index.web.d.ts +223 -0
  109. package/lib/components/ui/slider/index.web.js +189 -0
  110. package/lib/components/ui/slider/index.web.js.map +1 -0
  111. package/lib/components/ui/spinner/index.web.d.ts +176 -0
  112. package/lib/components/ui/spinner/index.web.js +55 -0
  113. package/lib/components/ui/spinner/index.web.js.map +1 -0
  114. package/lib/components/ui/status-bar/index.web.d.ts +14 -0
  115. package/lib/components/ui/status-bar/index.web.js +7 -0
  116. package/lib/components/ui/status-bar/index.web.js.map +1 -0
  117. package/lib/components/ui/switch/index.web.d.ts +71 -0
  118. package/lib/components/ui/switch/index.web.js +27 -0
  119. package/lib/components/ui/switch/index.web.js.map +1 -0
  120. package/lib/components/ui/tabs/index.web.d.ts +351 -0
  121. package/lib/components/ui/tabs/index.web.js +120 -0
  122. package/lib/components/ui/tabs/index.web.js.map +1 -0
  123. package/lib/components/ui/textarea/index.web.d.ts +162 -0
  124. package/lib/components/ui/textarea/index.web.js +50 -0
  125. package/lib/components/ui/textarea/index.web.js.map +1 -0
  126. package/lib/components/ui/toast/index.web.d.ts +225 -0
  127. package/lib/components/ui/toast/index.web.js +80 -0
  128. package/lib/components/ui/toast/index.web.js.map +1 -0
  129. package/lib/components/ui/tooltip/index.web.d.ts +86 -0
  130. package/lib/components/ui/tooltip/index.web.js +110 -0
  131. package/lib/components/ui/tooltip/index.web.js.map +1 -0
  132. package/lib/components/ui/view/index.web.d.ts +2 -0
  133. package/lib/components/ui/view/index.web.js +7 -0
  134. package/lib/components/ui/view/index.web.js.map +1 -0
  135. package/lib/components/ui/virtualized-list/index.web.d.ts +19 -0
  136. package/lib/components/ui/virtualized-list/index.web.js +30 -0
  137. package/lib/components/ui/virtualized-list/index.web.js.map +1 -0
  138. package/lib/components/usePermissionAutoFetch.d.ts +7 -19
  139. package/lib/components/with-interactions-lifecycle-managed.js.map +1 -1
  140. package/lib/components/with-interactions-managed.js +2 -3
  141. package/lib/components/with-interactions-managed.js.map +1 -1
  142. package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +47 -47
  143. package/lib/containers/layout/DrawerConfig.d.ts +31 -31
  144. package/lib/containers/layout/module.js +1 -1
  145. package/lib/containers/layout/module.js.map +1 -1
  146. package/lib/interfaces/settings.d.ts +1 -0
  147. package/lib/redux/settings.d.ts +4 -9
  148. package/lib/utils/routeConfigKeyReplace.test.js +1 -1
  149. package/lib/utils/routeConfigKeyReplace.test.js.map +1 -1
  150. package/package.json +7 -4
  151. package/src/__tests__/prolayout-layout-feature.test.tsx +2 -2
  152. package/src/components/AuthWrapper.tsx +6 -3
  153. package/src/components/ErrorBounday.tsx +18 -19
  154. package/src/components/NavigationComponent.tsx +1 -1
  155. package/src/components/UnAuthenticatedComponent.tsx +1 -3
  156. package/src/components/WithConfiguration.tsx +5 -8
  157. package/src/components/WithPermission.tsx +1 -1
  158. package/src/components/WithPolicy.tsx +4 -3
  159. package/src/components/ui/accordion/index.web.tsx +294 -0
  160. package/src/components/ui/actionsheet/index.web.tsx +555 -0
  161. package/src/components/ui/alert/index.web.tsx +71 -0
  162. package/src/components/ui/alert-dialog/index.web.tsx +241 -0
  163. package/src/components/ui/avatar/index.web.tsx +150 -0
  164. package/src/components/ui/badge/index.web.tsx +188 -0
  165. package/src/components/ui/button/index.web.tsx +86 -0
  166. package/src/components/ui/checkbox/index.web.tsx +151 -0
  167. package/src/components/ui/divider/index.web.tsx +37 -0
  168. package/src/components/ui/drawer/index.web.tsx +144 -0
  169. package/src/components/ui/fab/index.web.tsx +201 -0
  170. package/src/components/ui/flat-list/index.web.tsx +89 -0
  171. package/src/components/ui/form-control/index.web.tsx +451 -0
  172. package/src/components/ui/image/index.web.tsx +43 -0
  173. package/src/components/ui/image-background/index.web.tsx +43 -0
  174. package/src/components/ui/input/index.web.tsx +80 -0
  175. package/src/components/ui/input-accessory-view/index.web.tsx +31 -0
  176. package/src/components/ui/keyboard-avoiding-view/index.web.tsx +23 -0
  177. package/src/components/ui/link/index.web.tsx +103 -0
  178. package/src/components/ui/menu/index.web.tsx +159 -0
  179. package/src/components/ui/modal/index.web.tsx +135 -0
  180. package/src/components/ui/popover/index.web.tsx +326 -0
  181. package/src/components/ui/portal/index.web.tsx +34 -0
  182. package/src/components/ui/pressable/index.web.tsx +73 -0
  183. package/src/components/ui/progress/index.web.tsx +123 -0
  184. package/src/components/ui/radio/index.web.tsx +130 -0
  185. package/src/components/ui/refresh-control/index.web.tsx +104 -0
  186. package/src/components/ui/safe-area-view/index.web.tsx +24 -0
  187. package/src/components/ui/scroll-view/index.web.tsx +142 -0
  188. package/src/components/ui/section-list/index.web.tsx +93 -0
  189. package/src/components/ui/select/index.web.tsx +83 -0
  190. package/src/components/ui/slider/index.web.tsx +283 -0
  191. package/src/components/ui/spinner/index.web.tsx +81 -0
  192. package/src/components/ui/status-bar/index.web.tsx +20 -0
  193. package/src/components/ui/switch/index.web.tsx +44 -0
  194. package/src/components/ui/tabs/index.web.tsx +205 -0
  195. package/src/components/ui/textarea/index.web.tsx +86 -0
  196. package/src/components/ui/toast/index.web.tsx +132 -0
  197. package/src/components/ui/tooltip/index.web.tsx +155 -0
  198. package/src/components/ui/view/index.web.tsx +15 -0
  199. package/src/components/ui/virtualized-list/index.web.tsx +84 -0
  200. package/src/components/with-interactions-lifecycle-managed.tsx +0 -4
  201. package/src/components/with-interactions-managed.tsx +3 -4
  202. package/src/containers/layout/module.ts +1 -1
  203. package/src/interfaces/settings.ts +1 -0
  204. package/src/utils/routeConfigKeyReplace.test.ts +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"with-interactions-managed.js","sourceRoot":"","sources":["../../src/components/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,CAAC,oBAAC,WAAW,OAAG,CAAC,CAAC,CAAC,oBAAC,gBAAgB,OAAG,CACzC,CACnB,CACF,CACN,CAAC;IACN,CAAC,CAAC;IAEF,oBAAoB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,kDAAkD;AAClD,uCAAuC;AACvC,gDAAgD;AAChD,MAAM;AACN,0CAA0C;AAC1C,0FAA0F;AAC1F,4HAA4H;AAC5H,qEAAqE;AACrE,mBAAmB;AACnB,6BAA6B;AAC7B,sCAAsC;AACtC,2BAA2B;AAC3B,+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"}
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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F;AAC1F,4HAA4H;AAC5H,qEAAqE;AACrE,mBAAmB;AACnB,6BAA6B;AAC7B,sCAAsC;AACtC,2BAA2B;AAC3B,+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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
45
- navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
46
- theme: ReactNavigation.Theme;
47
- children: React.ReactElement;
48
- }) => React.ReactElement;
49
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
91
- navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
92
- theme: ReactNavigation.Theme;
93
- children: React.ReactElement;
94
- }) => React.ReactElement;
95
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
154
- navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
155
- theme: ReactNavigation.Theme;
156
- children: React.ReactElement;
157
- }) => React.ReactElement;
158
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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/commonjs/src/TabRouter").BackBehavior;
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" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
206
- navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
207
- theme: ReactNavigation.Theme;
208
- children: React.ReactElement;
209
- }) => React.ReactElement;
210
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
266
- navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
267
- theme: ReactNavigation.Theme;
268
- children: React.ReactElement;
269
- }) => React.ReactElement;
270
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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/commonjs/src/TabRouter").BackBehavior;
275
- } & import("@react-navigation/bottom-tabs/lib/typescript/commonjs/src/types").BottomTabNavigationConfig, "layout" | "initialRouteName" | "children" | "id" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
312
- navigation: import("@react-navigation/bottom-tabs").BottomTabNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
313
- theme: ReactNavigation.Theme;
314
- children: React.ReactElement;
315
- }) => React.ReactElement;
316
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
45
- navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
46
- theme: ReactNavigation.Theme;
47
- children: React.ReactElement;
48
- }) => React.ReactElement;
49
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
91
- navigation: import("@react-navigation/stack").StackNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
92
- theme: ReactNavigation.Theme;
93
- children: React.ReactElement;
94
- }) => React.ReactElement;
95
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
154
- navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
155
- theme: ReactNavigation.Theme;
156
- children: React.ReactElement;
157
- }) => React.ReactElement;
158
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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/commonjs/src/TabRouter").BackBehavior;
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" | "UNSTABLE_getStateForRouteNamesChange"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
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
- route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
206
- navigation: import("@react-navigation/drawer").DrawerNavigationProp<import("@react-navigation/routers").ParamListBase, string, undefined>;
207
- theme: ReactNavigation.Theme;
208
- children: React.ReactElement;
209
- }) => React.ReactElement;
210
- UNSTABLE_getStateForRouteNamesChange?: (state: import("@react-navigation/routers").NavigationState) => import("@react-navigation/routers").PartialState<import("@react-navigation/routers").NavigationState> | undefined;
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
  }>;
@@ -17,6 +17,6 @@ const layoutConfig = {
17
17
  },
18
18
  };
19
19
  export default new Feature({
20
- routeConfig: layoutConfig,
20
+ routeConfig: [layoutConfig],
21
21
  });
22
22
  //# sourceMappingURL=module.js.map
@@ -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;CAC5B,CAAC,CAAC"}
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"}
@@ -1,4 +1,5 @@
1
1
  import { ProSettings } from '@admin-layout/client';
2
2
  export type DefaultSettings = Partial<ProSettings> & {
3
3
  language?: string;
4
+ extensionName?: string;
4
5
  };
@@ -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
- showHeader?: boolean | any;
54
- headerRender?: boolean | any;
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
- logo: string;
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,EAAmD,MAAM,4BAA4B,CAAC;AACtG,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,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;QACnF,0FAA0F;QAC1F,sEAAsE;QACtE,MAAM,kBAAkB,GAAG,IAAI,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAExE,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": "11.0.4-alpha.0",
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": "11.0.2-alpha.0",
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
- "tailwindcss": "3.4.17"
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": "fcf5c5769b7d4a5cb5839f76bb0c1150678d620e"
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, IRouteData, getNavigation, getSortedNavigations } from '@common-stack/client-react';
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) navigation.navigate('MainStack.Login');
28
- }, [auth, user]);
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, error: Error | null };
5
+ type IErrorBoundryState = { hasError: boolean; error: Error | null };
7
6
  type IErrorBoundryProps = {
8
- children: ReactElement,
7
+ children: ReactElement;
9
8
  };
10
9
 
11
10
  export class ErrorBoundary extends React.Component<IErrorBoundryProps, IErrorBoundryState> {
12
- constructor(props: IErrorBoundryProps) {
13
- super(props);
14
- this.state = { hasError: false, error: null };
15
- }
11
+ constructor(props: IErrorBoundryProps) {
12
+ super(props);
13
+ this.state = { hasError: false, error: null };
14
+ }
16
15
 
17
- static getDerivedStateFromError(error: Error) {
18
- return { hasError: true, error };
19
- }
16
+ static getDerivedStateFromError(error: Error) {
17
+ return { hasError: true, error };
18
+ }
20
19
 
21
- componentDidCatch(error: Error) {
22
- logger.debug(error)
23
- }
20
+ componentDidCatch(error: Error) {
21
+ logger.debug(error);
22
+ }
24
23
 
25
- render() {
26
- if (this.state.hasError) {
27
- return <FallbackComponent error={this.state.error as Error} />;
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
- return this.props.children;
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, merge } from 'lodash-es';
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, HStack, Pressable, Divider, ButtonText, StyledSafeAreaView } from './ui';
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 { Spinner, Box, Text, Heading } from './ui';
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?.resolveConfiguration} />;
32
+ return <Child {...childProps} value={policy} />;
32
33
  };