@topconsultnpm/sdkui-react 6.22.0-dev1.22 → 6.22.0-dev1.24
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.
|
@@ -49,6 +49,7 @@ interface ITMLoginFormProps {
|
|
|
49
49
|
onChangeLanguage?: (e: CultureIDs) => void;
|
|
50
50
|
cultureID?: CultureIDs;
|
|
51
51
|
defaultLoginValues?: ITMLoginDefaultValues;
|
|
52
|
+
onEndpointChange?: (endpoint: TMEndpointsType | undefined) => void;
|
|
52
53
|
}
|
|
53
54
|
declare const TMLoginForm: React.FunctionComponent<ITMLoginFormProps>;
|
|
54
55
|
export default TMLoginForm;
|
|
@@ -107,6 +107,8 @@ const TMLoginForm = (props) => {
|
|
|
107
107
|
const usernameOnBehalfOfRef = useRef(null);
|
|
108
108
|
const passwordOnBehalfOfRRef = useRef(null);
|
|
109
109
|
const defaultLoginAppliedRef = useRef(false);
|
|
110
|
+
const onEndpointChangeRef = useRef(props.onEndpointChange);
|
|
111
|
+
onEndpointChangeRef.current = props.onEndpointChange;
|
|
110
112
|
const [loginStep, setLoginStep] = useState(1);
|
|
111
113
|
const [tmServer, setTmServer] = useState();
|
|
112
114
|
const [tmSession, setTmSession] = useState();
|
|
@@ -262,6 +264,9 @@ const TMLoginForm = (props) => {
|
|
|
262
264
|
useEffect(() => {
|
|
263
265
|
setTmServer(new TopMediaServer(endpoint?.URL));
|
|
264
266
|
}, [endpoint]);
|
|
267
|
+
useEffect(() => {
|
|
268
|
+
onEndpointChangeRef.current?.(endpoint);
|
|
269
|
+
}, [endpoint]);
|
|
265
270
|
useEffect(() => {
|
|
266
271
|
if (!tmServer)
|
|
267
272
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.22.0-dev1.
|
|
3
|
+
"version": "6.22.0-dev1.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lib"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@topconsultnpm/sdk-ts": "6.22.0-dev1.
|
|
42
|
+
"@topconsultnpm/sdk-ts": "6.22.0-dev1.11",
|
|
43
43
|
"@zip.js/zip.js": "2.8.26",
|
|
44
44
|
"buffer": "^6.0.3",
|
|
45
45
|
"devextreme": "^25.2.6",
|