@admin-layout/gluestack-ui-mobile 10.0.2-alpha.5 → 11.0.1-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 +1 -177
- package/lib/components/WithConfiguration.js +1 -1
- package/lib/components/usePermissionAutoFetch.d.ts +7 -19
- package/lib/components/usePermissionAutoFetch.js +2 -2
- package/package.json +3 -3
- package/src/components/WithConfiguration.tsx +1 -1
- package/src/components/usePermissionAutoFetch.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,183 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
9
|
-
|
|
10
|
-
## [10.0.2-alpha.4](https://github.com/CDEBase/admin-layout/compare/v10.0.2-alpha.3...v10.0.2-alpha.4) (2025-02-07)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
13
|
-
|
|
14
|
-
## [10.0.2-alpha.2](https://github.com/CDEBase/admin-layout/compare/v10.0.2-alpha.1...v10.0.2-alpha.2) (2025-02-07)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
17
|
-
|
|
18
|
-
## [10.0.2-alpha.0](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.106...v10.0.2-alpha.0) (2025-02-06)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
21
|
-
|
|
22
|
-
## [9.0.4-alpha.104](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.103...v9.0.4-alpha.104) (2025-01-20)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
25
|
-
|
|
26
|
-
## [9.0.4-alpha.103](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.102...v9.0.4-alpha.103) (2025-01-18)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
29
|
-
|
|
30
|
-
## [9.0.4-alpha.102](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.101...v9.0.4-alpha.102) (2025-01-18)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
33
|
-
|
|
34
|
-
## [9.0.4-alpha.99](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.98...v9.0.4-alpha.99) (2025-01-09)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
37
|
-
|
|
38
|
-
## [9.0.4-alpha.80](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.79...v9.0.4-alpha.80) (2024-12-17)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
41
|
-
|
|
42
|
-
## [9.0.4-alpha.78](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.77...v9.0.4-alpha.78) (2024-12-13)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
45
|
-
|
|
46
|
-
## [9.0.4-alpha.77](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.76...v9.0.4-alpha.77) (2024-12-13)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
49
|
-
|
|
50
|
-
## [9.0.4-alpha.76](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.75...v9.0.4-alpha.76) (2024-12-10)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
53
|
-
|
|
54
|
-
## [9.0.4-alpha.74](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.73...v9.0.4-alpha.74) (2024-12-06)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
57
|
-
|
|
58
|
-
## [9.0.4-alpha.68](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.67...v9.0.4-alpha.68) (2024-11-26)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
61
|
-
|
|
62
|
-
## [9.0.4-alpha.66](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.65...v9.0.4-alpha.66) (2024-11-20)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
65
|
-
|
|
66
|
-
## [9.0.4-alpha.65](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.64...v9.0.4-alpha.65) (2024-11-19)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
69
|
-
|
|
70
|
-
## [9.0.4-alpha.63](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.62...v9.0.4-alpha.63) (2024-11-18)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
73
|
-
|
|
74
|
-
## [9.0.4-alpha.62](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.61...v9.0.4-alpha.62) (2024-11-13)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
77
|
-
|
|
78
|
-
## [9.0.4-alpha.57](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.56...v9.0.4-alpha.57) (2024-11-01)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
81
|
-
|
|
82
|
-
## [9.0.4-alpha.54](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.53...v9.0.4-alpha.54) (2024-10-29)
|
|
83
|
-
|
|
84
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
85
|
-
|
|
86
|
-
## [9.0.4-alpha.46](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.45...v9.0.4-alpha.46) (2024-10-25)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
89
|
-
|
|
90
|
-
## [9.0.4-alpha.43](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.42...v9.0.4-alpha.43) (2024-10-17)
|
|
91
|
-
|
|
92
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
93
|
-
|
|
94
|
-
## [9.0.4-alpha.39](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.38...v9.0.4-alpha.39) (2024-10-17)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
97
|
-
|
|
98
|
-
## [9.0.4-alpha.38](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.37...v9.0.4-alpha.38) (2024-10-17)
|
|
99
|
-
|
|
100
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
101
|
-
|
|
102
|
-
## [9.0.4-alpha.28](https://github.com/cdmbase/admin-layout/compare/v9.0.4-alpha.27...v9.0.4-alpha.28) (2024-10-13)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
105
|
-
|
|
106
|
-
## [9.0.4-alpha.21](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.20...v9.0.4-alpha.21) (2024-10-10)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
109
|
-
|
|
110
|
-
## [9.0.4-alpha.19](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.18...v9.0.4-alpha.19) (2024-09-30)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
113
|
-
|
|
114
|
-
## [9.0.4-alpha.16](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.15...v9.0.4-alpha.16) (2024-09-24)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
117
|
-
|
|
118
|
-
## [9.0.4-alpha.12](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.11...v9.0.4-alpha.12) (2024-09-18)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
121
|
-
|
|
122
|
-
## [9.0.4-alpha.11](https://github.com/CDEBase/admin-layout/compare/v9.0.4-alpha.10...v9.0.4-alpha.11) (2024-09-18)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
125
|
-
|
|
126
|
-
## [9.0.4-alpha.0](https://github.com/CDEBase/admin-layout/compare/v9.0.1-alpha.3...v9.0.4-alpha.0) (2024-09-13)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
129
|
-
|
|
130
|
-
## [9.0.1-alpha.2](https://github.com/CDEBase/admin-layout/compare/v9.0.1-alpha.1...v9.0.1-alpha.2) (2024-09-13)
|
|
131
|
-
|
|
132
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
133
|
-
|
|
134
|
-
## [9.0.1-alpha.1](https://github.com/CDEBase/admin-layout/compare/v9.0.1-alpha.0...v9.0.1-alpha.1) (2024-09-12)
|
|
135
|
-
|
|
136
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
137
|
-
|
|
138
|
-
## [9.0.1-alpha.0](https://github.com/CDEBase/admin-layout/compare/v9.0.2-alpha.13...v9.0.1-alpha.0) (2024-09-11)
|
|
139
|
-
|
|
140
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
141
|
-
|
|
142
|
-
## [9.0.2-alpha.4](https://github.com/cdmbase/admin-layout/compare/v9.0.2-alpha.3...v9.0.2-alpha.4) (2024-09-08)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
145
|
-
|
|
146
|
-
## [9.0.2-alpha.0](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.37...v9.0.2-alpha.0) (2024-09-05)
|
|
147
|
-
|
|
148
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
149
|
-
|
|
150
|
-
## [7.3.8-alpha.36](https://github.com/cdmbase/admin-layout/compare/v7.3.8-alpha.35...v7.3.8-alpha.36) (2024-08-20)
|
|
151
|
-
|
|
152
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
153
|
-
|
|
154
|
-
## [7.3.8-alpha.34](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.33...v7.3.8-alpha.34) (2024-08-12)
|
|
155
|
-
|
|
156
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
157
|
-
|
|
158
|
-
## [7.3.8-alpha.31](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.30...v7.3.8-alpha.31) (2024-08-07)
|
|
159
|
-
|
|
160
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
161
|
-
|
|
162
|
-
## [7.3.8-alpha.13](https://github.com/cdmbase/admin-layout/compare/v7.3.8-alpha.12...v7.3.8-alpha.13) (2024-07-21)
|
|
163
|
-
|
|
164
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
165
|
-
|
|
166
|
-
## [7.3.8-alpha.8](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.7...v7.3.8-alpha.8) (2024-07-19)
|
|
167
|
-
|
|
168
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
169
|
-
|
|
170
|
-
## [7.3.8-alpha.7](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.6...v7.3.8-alpha.7) (2024-07-19)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
173
|
-
|
|
174
|
-
## [7.3.8-alpha.6](https://github.com/cdmbase/admin-layout/compare/v7.3.8-alpha.5...v7.3.8-alpha.6) (2024-07-19)
|
|
175
|
-
|
|
176
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
177
|
-
|
|
178
|
-
## [7.3.8-alpha.2](https://github.com/CDEBase/admin-layout/compare/v7.3.8-alpha.1...v7.3.8-alpha.2) (2024-07-17)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
181
|
-
|
|
182
|
-
## [7.3.8-alpha.0](https://github.com/cdmbase/admin-layout/compare/v3.0.0-alpha.50...v7.3.8-alpha.0) (2024-07-16)
|
|
6
|
+
## [11.0.1-alpha.0](https://github.com/CDEBase/admin-layout/compare/v3.0.0-alpha.50...v11.0.1-alpha.0) (2025-02-21)
|
|
183
7
|
|
|
184
8
|
**Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
|
|
185
9
|
|
|
@@ -11,7 +11,7 @@ export const WithConfiguration = (props) => {
|
|
|
11
11
|
});
|
|
12
12
|
// const { data: permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
13
13
|
const { permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
14
|
-
const isPrivate = React.useMemo(() => Visibility.
|
|
14
|
+
const isPrivate = React.useMemo(() => Visibility.Private === data?.resolveConfiguration, [data?.resolveConfiguration]);
|
|
15
15
|
const hasPermission = React.useMemo(() => {
|
|
16
16
|
if (isPrivate && permissions && Array.isArray(permissionKeys)) {
|
|
17
17
|
return permissionKeys.some((key) => permissionTypes.includes(get(permissions?.resolveConfiguration, key)));
|
|
@@ -24,22 +24,16 @@ export declare const usePermissionAutoFetch: (options?: userPermissionAutoFetchP
|
|
|
24
24
|
called: boolean;
|
|
25
25
|
startPolling: (pollInterval: number) => void;
|
|
26
26
|
stopPolling: () => void;
|
|
27
|
-
subscribeToMore:
|
|
27
|
+
subscribeToMore: import("@apollo/client").SubscribeToMoreFunction<import("common").IResolveConfigurationQuery, import("common").Exact<{
|
|
28
28
|
input: import("common").IPreferencesInputInput;
|
|
29
29
|
key?: import("common").InputMaybe<import("common").Scalars["String"]["input"]>;
|
|
30
30
|
overrides?: import("common").InputMaybe<import("common").IConfigurationOverridesInput>;
|
|
31
|
-
}
|
|
32
|
-
updateQuery:
|
|
31
|
+
}>>;
|
|
32
|
+
updateQuery: (mapFn: import("@apollo/client").UpdateQueryMapFn<import("common").IResolveConfigurationQuery, import("common").Exact<{
|
|
33
33
|
input: import("common").IPreferencesInputInput;
|
|
34
34
|
key?: import("common").InputMaybe<import("common").Scalars["String"]["input"]>;
|
|
35
35
|
overrides?: import("common").InputMaybe<import("common").IConfigurationOverridesInput>;
|
|
36
|
-
}>>
|
|
37
|
-
__typename?: "Query";
|
|
38
|
-
resolveConfiguration?: any | null;
|
|
39
|
-
}, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("common").IResolveConfigurationQuery>, "variables">) => {
|
|
40
|
-
__typename?: "Query";
|
|
41
|
-
resolveConfiguration?: any | null;
|
|
42
|
-
}) => void;
|
|
36
|
+
}>>) => void;
|
|
43
37
|
refetch: (variables?: Partial<import("common").Exact<{
|
|
44
38
|
input: import("common").IPreferencesInputInput;
|
|
45
39
|
key?: import("common").InputMaybe<import("common").Scalars["String"]["input"]>;
|
|
@@ -60,16 +54,10 @@ export declare const usePermissionAutoFetch: (options?: userPermissionAutoFetchP
|
|
|
60
54
|
key?: import("common").InputMaybe<import("common").Scalars["String"]["input"]>;
|
|
61
55
|
overrides?: import("common").InputMaybe<import("common").IConfigurationOverridesInput>;
|
|
62
56
|
}>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
|
|
63
|
-
updateQuery?: (previousQueryResult: {
|
|
64
|
-
__typename?: "Query";
|
|
65
|
-
resolveConfiguration?: any | null;
|
|
66
|
-
}, options: {
|
|
57
|
+
updateQuery?: (previousQueryResult: import("common").IResolveConfigurationQuery, options: {
|
|
67
58
|
fetchMoreResult: import("@apollo/client").Unmasked<TFetchData>;
|
|
68
59
|
variables: TFetchVars;
|
|
69
|
-
}) =>
|
|
70
|
-
|
|
71
|
-
resolveConfiguration?: any | null;
|
|
72
|
-
};
|
|
73
|
-
}) => Promise<import("@apollo/client").ApolloQueryResult<import("@apollo/client").MaybeMasked<TFetchData>>>;
|
|
60
|
+
}) => import("common").IResolveConfigurationQuery;
|
|
61
|
+
}) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
|
|
74
62
|
};
|
|
75
63
|
export {};
|
|
@@ -14,8 +14,8 @@ export const usePermissionAutoFetch = (options) => {
|
|
|
14
14
|
},
|
|
15
15
|
options: {
|
|
16
16
|
forceExist: false,
|
|
17
|
-
authority: ResourceAuthority.
|
|
18
|
-
fragment: ConfigFragmentName.
|
|
17
|
+
authority: ResourceAuthority.Defaultpermissions,
|
|
18
|
+
fragment: ConfigFragmentName.Roles,
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
return { ...remaining, loading: loading || settingLoading };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/gluestack-ui-mobile",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1-alpha.0",
|
|
4
4
|
"description": "Glustack-ui for mobile component layout",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"watch": "npm run build:lib:watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@admin-layout/client": "
|
|
26
|
+
"@admin-layout/client": "11.0.1-alpha.0",
|
|
27
27
|
"@gluestack-style/react": "^1.0.53",
|
|
28
28
|
"@gluestack-ui/config": "^1.1.18",
|
|
29
29
|
"@gluestack-ui/themed": "^1.1.22",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"typescript": {
|
|
43
43
|
"definition": "lib/index.d.ts"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e2156e4f3c7827baeff15a0339acd627eefeed75"
|
|
46
46
|
}
|
|
@@ -30,7 +30,7 @@ export const WithConfiguration = (props: IWithConfigurationProps) => {
|
|
|
30
30
|
const { permissions, loading: permissionLoading } = usePermissionAutoFetch();
|
|
31
31
|
|
|
32
32
|
const isPrivate = React.useMemo(
|
|
33
|
-
() => Visibility.
|
|
33
|
+
() => Visibility.Private === data?.resolveConfiguration,
|
|
34
34
|
[data?.resolveConfiguration],
|
|
35
35
|
);
|
|
36
36
|
|
|
@@ -20,8 +20,8 @@ export const usePermissionAutoFetch = (options?: userPermissionAutoFetchProps) =
|
|
|
20
20
|
},
|
|
21
21
|
options: {
|
|
22
22
|
forceExist: false,
|
|
23
|
-
authority: ResourceAuthority.
|
|
24
|
-
fragment: ConfigFragmentName.
|
|
23
|
+
authority: ResourceAuthority.Defaultpermissions,
|
|
24
|
+
fragment: ConfigFragmentName.Roles,
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
|