chayns-api 3.6.1 → 3.6.3
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.
|
@@ -115,7 +115,12 @@ const loadComponent = (scope, module, url, skipCompatMode = false, preventSingle
|
|
|
115
115
|
OriginalCompatComponent.componentDidUpdate.apply(this, prevProps, prevState, snapshot);
|
|
116
116
|
}
|
|
117
117
|
componentWillUnmount() {
|
|
118
|
-
|
|
118
|
+
clearTimeout(this.timeout);
|
|
119
|
+
if (typeof OriginalCompatComponent.componentWillUnmount === 'function') {
|
|
120
|
+
OriginalCompatComponent.componentWillUnmount.apply(this);
|
|
121
|
+
} else if (this.root) {
|
|
122
|
+
this.root.unmount();
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
render() {
|
|
121
126
|
return _react.default.createElement('div', {
|
|
@@ -45,7 +45,7 @@ class AppWrapper {
|
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
47
47
|
mapOldApiToNew(retVal) {
|
|
48
|
-
var _window, _window2, _AppInfo$TappSelected;
|
|
48
|
+
var _window, _window2, _AppUser$UACGroups$ma, _AppUser$UACGroups, _AppInfo$TappSelected;
|
|
49
49
|
const {
|
|
50
50
|
AppInfo,
|
|
51
51
|
AppUser,
|
|
@@ -138,7 +138,9 @@ class AppWrapper {
|
|
|
138
138
|
userId: userId,
|
|
139
139
|
personId: AppUser.PersonID,
|
|
140
140
|
isAnonymous: AppUser.IsAnonymous,
|
|
141
|
-
uacGroups:
|
|
141
|
+
uacGroups: (_AppUser$UACGroups$ma = (_AppUser$UACGroups = AppUser.UACGroups) === null || _AppUser$UACGroups === void 0 ? void 0 : _AppUser$UACGroups.map(group => ({
|
|
142
|
+
id: group.GroupID
|
|
143
|
+
}))) !== null && _AppUser$UACGroups$ma !== void 0 ? _AppUser$UACGroups$ma : []
|
|
142
144
|
},
|
|
143
145
|
customData: null,
|
|
144
146
|
isAdminModeActive: AppUser.AdminMode,
|
|
@@ -102,6 +102,8 @@ const loadComponent = (scope, module, url, skipCompatMode = false, preventSingle
|
|
|
102
102
|
constructor(props) {
|
|
103
103
|
super(props);
|
|
104
104
|
_defineProperty(this, "ref", void 0);
|
|
105
|
+
_defineProperty(this, "timeout", void 0);
|
|
106
|
+
_defineProperty(this, "root", void 0);
|
|
105
107
|
this.ref = React.createRef();
|
|
106
108
|
}
|
|
107
109
|
componentDidMount() {
|
|
@@ -111,7 +113,12 @@ const loadComponent = (scope, module, url, skipCompatMode = false, preventSingle
|
|
|
111
113
|
OriginalCompatComponent.componentDidUpdate.apply(this, prevProps, prevState, snapshot);
|
|
112
114
|
}
|
|
113
115
|
componentWillUnmount() {
|
|
114
|
-
|
|
116
|
+
clearTimeout(this.timeout);
|
|
117
|
+
if (typeof OriginalCompatComponent.componentWillUnmount === 'function') {
|
|
118
|
+
OriginalCompatComponent.componentWillUnmount.apply(this);
|
|
119
|
+
} else if (this.root) {
|
|
120
|
+
this.root.unmount();
|
|
121
|
+
}
|
|
115
122
|
}
|
|
116
123
|
render() {
|
|
117
124
|
return React.createElement('div', {
|
|
@@ -32,7 +32,7 @@ export class AppWrapper {
|
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
34
|
mapOldApiToNew(retVal) {
|
|
35
|
-
var _window, _window2, _AppInfo$TappSelected;
|
|
35
|
+
var _window, _window2, _AppUser$UACGroups$ma, _AppUser$UACGroups, _AppInfo$TappSelected;
|
|
36
36
|
const {
|
|
37
37
|
AppInfo,
|
|
38
38
|
AppUser,
|
|
@@ -125,7 +125,9 @@ export class AppWrapper {
|
|
|
125
125
|
userId: userId,
|
|
126
126
|
personId: AppUser.PersonID,
|
|
127
127
|
isAnonymous: AppUser.IsAnonymous,
|
|
128
|
-
uacGroups:
|
|
128
|
+
uacGroups: (_AppUser$UACGroups$ma = (_AppUser$UACGroups = AppUser.UACGroups) === null || _AppUser$UACGroups === void 0 ? void 0 : _AppUser$UACGroups.map(group => ({
|
|
129
|
+
id: group.GroupID
|
|
130
|
+
}))) !== null && _AppUser$UACGroups$ma !== void 0 ? _AppUser$UACGroups$ma : []
|
|
129
131
|
},
|
|
130
132
|
customData: null,
|
|
131
133
|
isAdminModeActive: AppUser.AdminMode,
|