Fix build
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
import "minimal-polyfills/Object.fromEntries";
|
import "minimal-polyfills/Object.fromEntries";
|
||||||
//NOTE for later: https://github.com/remarkjs/react-markdown/blob/236182ecf30bd89c1e5a7652acaf8d0bf81e6170/src/renderers.js#L7-L35
|
//NOTE for later: https://github.com/remarkjs/react-markdown/blob/236182ecf30bd89c1e5a7652acaf8d0bf81e6170/src/renderers.js#L7-L35
|
||||||
import React, { useEffect, useState, useRef } from "react";
|
import { useEffect, useState, useRef } from "react";
|
||||||
import type baseMessages from "./generated_messages/18.0.1/login/en";
|
import type baseMessages from "./generated_messages/18.0.1/login/en";
|
||||||
import { assert } from "tsafe/assert";
|
import { assert } from "tsafe/assert";
|
||||||
import type { KcContextBase } from "../kcContext/KcContextBase";
|
import type { KcContextBase as KcContext } from "../kcContext/KcContextBase";
|
||||||
import { Markdown } from "../tools/Markdown";
|
import { Markdown } from "../tools/Markdown";
|
||||||
|
|
||||||
export const fallbackLanguageTag = "en";
|
export const fallbackLanguageTag = "en";
|
||||||
@ -15,7 +15,7 @@ export type KcContextLike = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
assert<KcContextBase extends KcContextLike ? true : false>();
|
assert<KcContext extends KcContextLike ? true : false>();
|
||||||
|
|
||||||
export type MessageKeyBase = keyof typeof baseMessages | keyof (typeof keycloakifyExtraMessages)[typeof fallbackLanguageTag];
|
export type MessageKeyBase = keyof typeof baseMessages | keyof (typeof keycloakifyExtraMessages)[typeof fallbackLanguageTag];
|
||||||
|
|
||||||
|
@ -1,12 +1,3 @@
|
|||||||
export * from "./kcContext";
|
|
||||||
|
|
||||||
export * from "./i18n";
|
|
||||||
|
|
||||||
export { useDownloadTerms } from "./pages/Terms";
|
|
||||||
|
|
||||||
export * from "./KcProps";
|
|
||||||
export * from "./keycloakJsAdapter";
|
|
||||||
|
|
||||||
import KcApp from "./KcApp";
|
import KcApp from "./KcApp";
|
||||||
|
|
||||||
export default KcApp;
|
export default KcApp;
|
||||||
|
@ -85,6 +85,10 @@ export declare namespace KcContextBase {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Account = {
|
export type Account = {
|
||||||
|
locale?: {
|
||||||
|
currentLanguageTag: string;
|
||||||
|
supported: { languageTag: string; url: string; label: string }[];
|
||||||
|
};
|
||||||
url: {
|
url: {
|
||||||
resourcesPath: string;
|
resourcesPath: string;
|
||||||
resourcesCommonPath: string;
|
resourcesCommonPath: string;
|
||||||
|
Reference in New Issue
Block a user