@etsoo/materialui 1.0.49 → 1.0.51

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.
@@ -1,5 +1,5 @@
1
- import { IAppSettings, IUser, RefreshTokenProps } from '@etsoo/appscript';
2
- import { IPageData, RefreshTokenRQ } from '@etsoo/react';
1
+ import { IAppSettings, IUser, RefreshTokenProps, RefreshTokenRQ } from '@etsoo/appscript';
2
+ import { IPageData } from '@etsoo/react';
3
3
  import { ReactApp } from './ReactApp';
4
4
  /**
5
5
  * Common independent application
@@ -1,5 +1,4 @@
1
- import { IApi, RefreshTokenProps } from '@etsoo/appscript';
2
- import { RefreshTokenRQ } from '@etsoo/react';
1
+ import { IApi, RefreshTokenProps, RefreshTokenRQ } from '@etsoo/appscript';
3
2
  import { IServiceAppSettings } from './IServiceAppSettings';
4
3
  import { IServicePageData } from './IServicePage';
5
4
  import { IServiceUser } from './IServiceUser';
@@ -26,8 +26,9 @@ export class ServiceApp extends ReactApp {
26
26
  }
27
27
  // Service API
28
28
  const api = createClient();
29
- api.baseUrl = settings.serviceEndpoint;
30
29
  this.setApi(api);
30
+ // Fix the baseUrl done by setupApi (Default is the settings.endpoint)
31
+ api.baseUrl = settings.serviceEndpoint;
31
32
  this.serviceApi = api;
32
33
  }
33
34
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -51,10 +51,10 @@
51
51
  "@emotion/css": "^11.10.0",
52
52
  "@emotion/react": "^11.10.4",
53
53
  "@emotion/styled": "^11.10.4",
54
- "@etsoo/appscript": "^1.3.7",
54
+ "@etsoo/appscript": "^1.3.8",
55
55
  "@etsoo/notificationbase": "^1.1.12",
56
- "@etsoo/react": "^1.6.17",
57
- "@etsoo/shared": "^1.1.60",
56
+ "@etsoo/react": "^1.6.18",
57
+ "@etsoo/shared": "^1.1.62",
58
58
  "@mui/icons-material": "^5.10.9",
59
59
  "@mui/material": "^5.10.9",
60
60
  "@types/pica": "^9.0.1",
@@ -4,9 +4,10 @@ import {
4
4
  IAppSettings,
5
5
  IUser,
6
6
  RefreshTokenProps,
7
- RefreshTokenResult
7
+ RefreshTokenResult,
8
+ RefreshTokenRQ
8
9
  } from '@etsoo/appscript';
9
- import { CoreConstants, IPageData, RefreshTokenRQ } from '@etsoo/react';
10
+ import { CoreConstants, IPageData } from '@etsoo/react';
10
11
  import { ReactApp } from './ReactApp';
11
12
 
12
13
  /**
@@ -5,9 +5,10 @@ import {
5
5
  IApi,
6
6
  IApiPayload,
7
7
  RefreshTokenProps,
8
- RefreshTokenResult
8
+ RefreshTokenResult,
9
+ RefreshTokenRQ
9
10
  } from '@etsoo/appscript';
10
- import { CoreConstants, RefreshTokenRQ } from '@etsoo/react';
11
+ import { CoreConstants } from '@etsoo/react';
11
12
  import { DomUtils } from '@etsoo/shared';
12
13
  import { IServiceAppSettings } from './IServiceAppSettings';
13
14
  import { IServicePageData } from './IServicePage';
@@ -62,9 +63,11 @@ export class ServiceApp<
62
63
 
63
64
  // Service API
64
65
  const api = createClient();
66
+ this.setApi(api);
67
+
68
+ // Fix the baseUrl done by setupApi (Default is the settings.endpoint)
65
69
  api.baseUrl = settings.serviceEndpoint;
66
70
 
67
- this.setApi(api);
68
71
  this.serviceApi = api;
69
72
  }
70
73