@intuitionrobotics/permissions 0.47.2 → 0.47.4
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.
|
@@ -5,9 +5,10 @@ type Props = {
|
|
|
5
5
|
url: string;
|
|
6
6
|
loadingComponent?: React.ComponentType;
|
|
7
7
|
fallback?: React.ComponentType;
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
};
|
|
9
10
|
export declare class PermissionsComponent extends BaseComponent<Props> implements OnPermissionsChanged {
|
|
10
11
|
__onPermissionsChanged(): void;
|
|
11
|
-
render(): React.JSX.Element | null;
|
|
12
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
12
13
|
}
|
|
13
14
|
export {};
|
|
@@ -13,7 +13,7 @@ class PermissionsComponent extends frontend_1.BaseComponent {
|
|
|
13
13
|
if (permitted === undefined)
|
|
14
14
|
return this.props.loadingComponent ? React.createElement(this.props.loadingComponent, null) : null;
|
|
15
15
|
if (permitted)
|
|
16
|
-
return
|
|
16
|
+
return this.props.children;
|
|
17
17
|
if (this.props.fallback)
|
|
18
18
|
return React.createElement(this.props.fallback, null);
|
|
19
19
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionsComponent.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/PermissionsComponent.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,uEAAuE;AACvE,+DAG+B;
|
|
1
|
+
{"version":3,"file":"PermissionsComponent.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/PermissionsComponent.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,uEAAuE;AACvE,+DAG+B;AAS/B,MAAa,oBACZ,SAAQ,wBAAoB;IAG5B,sBAAsB;QACrB,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAED,MAAM;QACL,MAAM,SAAS,GAAG,mCAAa,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxE,IAAI,SAAS,KAAK,SAAS;YAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,oBAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,OAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAE5E,IAAI,SAAS;YACZ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;QAE5B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ;YACtB,OAAO,oBAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,OAAE,CAAC;QAE/B,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AArBD,oDAqBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/permissions",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.4",
|
|
4
4
|
"description": "Permissions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@intuitionrobotics/firebase": "~0.47.0",
|
|
37
37
|
"@intuitionrobotics/thunderstorm": "~0.47.0",
|
|
38
38
|
"@intuitionrobotics/user-account": "~0.47.0",
|
|
39
|
-
"react": "^
|
|
39
|
+
"react": "^18.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@intuitionrobotics/testelot": "~0.47.0",
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"@types/react": "^
|
|
43
|
+
"@types/node": "^20.0.0",
|
|
44
|
+
"@types/react": "^18.0.0",
|
|
45
45
|
"ts-node": "^8.6.2",
|
|
46
46
|
"tslint": "^5.16.0",
|
|
47
47
|
"typescript": "^5.3.0"
|