jclib-ui 1.0.122 → 1.0.124

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.
@@ -9,6 +9,7 @@ export type GlobalApiConfig = {
9
9
  header?: string;
10
10
  prefix?: string;
11
11
  };
12
+ version?: string;
12
13
  ident?: string;
13
14
  loginRoute?: string;
14
15
  isProductionMode: boolean;
@@ -4205,11 +4205,12 @@ const initConfig = {
4205
4205
  auth: {
4206
4206
  username: "",
4207
4207
  password: "",
4208
- prefix: "Bearer",
4209
- header: "x-auth"
4208
+ header: "x-auth",
4209
+ prefix: "Bearer"
4210
4210
  },
4211
- loginRoute: "/",
4211
+ version: "",
4212
4212
  ident: "",
4213
+ loginRoute: "/",
4213
4214
  isProductionMode: true,
4214
4215
  getToken: () => "",
4215
4216
  setToken: (token) => console.error(MESSAGE_ERROR, token),
@@ -5239,6 +5240,8 @@ function IconUserGear(props) {
5239
5240
  );
5240
5241
  }
5241
5242
  const PanelHeader = styled.div`
5243
+ --pn-internal-radius: calc(var(--pn-border-radius) - 1px);
5244
+
5242
5245
  display: flex;
5243
5246
  justify-content: space-between;
5244
5247
  align-items: center;
@@ -5247,7 +5250,7 @@ const PanelHeader = styled.div`
5247
5250
  color: var(--pn-color-font);
5248
5251
  background-color: var(--pn-color);
5249
5252
  padding: var(--pn-padding);
5250
- border-radius: 5px 5px 0 0;
5253
+ border-radius: var(--pn-internal-radius) var(--pn-internal-radius) 0 0;
5251
5254
  min-height: 39px;
5252
5255
 
5253
5256
  .pn-title {
@@ -7696,6 +7699,8 @@ function useApi(initialConfig = {}) {
7696
7699
  initialConfig.headers[globalApiConfig.auth.header] = token;
7697
7700
  }
7698
7701
  }
7702
+ if (globalApiConfig.version)
7703
+ initialConfig.headers["x-ver"] = encodeURIComponent(globalApiConfig.version);
7699
7704
  if (globalApiConfig.ident)
7700
7705
  initialConfig.headers["x-identify"] = encodeURIComponent(globalApiConfig.ident);
7701
7706
  initialConfig.cache = Boolean(