@apicurio/common-ui-components 2.0.9 → 2.0.11

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.
Files changed (2) hide show
  1. package/dist/main.js +10 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -2418,7 +2418,13 @@ const Ls = async (e, t) => {
2418
2418
  isOidcAuthEnabled: () => !0,
2419
2419
  isBasicAuthEnabled: () => !1,
2420
2420
  isAuthenticated: Os,
2421
- getToken: e.options.tokenType === "id" ? qs : Ns,
2421
+ getToken: async () => {
2422
+ if (e.options.logTokens) {
2423
+ const t = await (u == null ? void 0 : u.getUser());
2424
+ console.debug("[Auth] ID Token:"), console.debug(t == null ? void 0 : t.id_token), console.debug("[Auth] Access Token:"), console.debug(t == null ? void 0 : t.access_token);
2425
+ }
2426
+ return e.options.tokenType === "id" ? qs() : Ns();
2427
+ },
2422
2428
  getUsernameAndPassword: () => {
2423
2429
  },
2424
2430
  getUsername: Ds,
@@ -2428,7 +2434,8 @@ const Ls = async (e, t) => {
2428
2434
  isOidcAuthEnabled: () => !1,
2429
2435
  isBasicAuthEnabled: () => !0,
2430
2436
  isAuthenticated: Hs,
2431
- getToken: () => Promise.resolve(void 0),
2437
+ getToken: async () => {
2438
+ },
2432
2439
  getUsernameAndPassword: Fs,
2433
2440
  getUsername: $s,
2434
2441
  login: Ls,
@@ -2731,7 +2738,7 @@ const Ls = async (e, t) => {
2731
2738
  ae,
2732
2739
  {
2733
2740
  isRequired: !0,
2734
- type: "text",
2741
+ type: "password",
2735
2742
  id: "form-password",
2736
2743
  "data-testid": "basic-auth-login-modal-password",
2737
2744
  name: "form-password",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apicurio/common-ui-components",
3
3
  "private": false,
4
- "version": "2.0.9",
4
+ "version": "2.0.11",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",