forlogic-core 2.3.2 → 2.3.4
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.
- package/dist/action-plans/auth/services/AuthService.d.ts +19 -0
- package/dist/action-plans/exports/ui.d.ts +2 -0
- package/dist/action-plans/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/action-plans/i18n/index.d.ts +1 -0
- package/dist/action-plans/index.d.ts +14 -103
- package/dist/action-plans/index.esm.js +1 -1
- package/dist/action-plans/index.js +1 -1
- package/dist/action-plans/types.d.ts +361 -551
- package/dist/audit-trail/auth/services/AuthService.d.ts +19 -0
- package/dist/audit-trail/exports/ui.d.ts +2 -0
- package/dist/audit-trail/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/audit-trail/i18n/index.d.ts +1 -0
- package/dist/audit-trail/index.d.ts +8 -103
- package/dist/audit-trail/types.d.ts +173 -567
- package/dist/auth/services/AuthService.d.ts +19 -0
- package/dist/auth/services/TokenService.d.ts +1 -0
- package/dist/auth/utils/authDebug.d.ts +18 -0
- package/dist/components/ui/combobox.d.ts +2 -1
- package/dist/exports/ui.d.ts +2 -0
- package/dist/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/leadership/auth/services/AuthService.d.ts +19 -0
- package/dist/leadership/exports/ui.d.ts +2 -0
- package/dist/leadership/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/leadership/i18n/index.d.ts +1 -0
- package/dist/leadership/index.d.ts +12 -103
- package/dist/leadership/types.d.ts +13 -593
- package/dist/places/auth/services/AuthService.d.ts +19 -0
- package/dist/places/exports/ui.d.ts +2 -0
- package/dist/places/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/places/i18n/index.d.ts +1 -0
- package/dist/places/index.d.ts +8 -104
- package/dist/places/types.d.ts +6 -599
- package/dist/qualiex/hooks/useQualiexReady.d.ts +15 -0
- package/dist/qualiex/services/qualiexApiService.d.ts +18 -0
- package/dist/sign/auth/services/AuthService.d.ts +19 -0
- package/dist/sign/exports/ui.d.ts +2 -0
- package/dist/sign/i18n/LanguageBootstrap.d.ts +14 -0
- package/dist/sign/i18n/index.d.ts +1 -0
- package/dist/sign/index.d.ts +8 -104
- package/dist/sign/index.esm.js +1 -1
- package/dist/sign/index.js +1 -1
- package/dist/sign/types.d.ts +46 -596
- package/dist/updates/components/UpdatesBar.d.ts +10 -0
- package/dist/updates/components/UpdatesDialog.d.ts +10 -0
- package/dist/updates/components/UserUpdatesViewer.d.ts +5 -0
- package/dist/updates/hooks/useUserUpdates.d.ts +5 -0
- package/dist/updates/index.d.ts +9 -0
- package/dist/updates/services/userUpdatesApi.d.ts +3 -0
- package/dist/updates/types.d.ts +24 -0
- package/dist/updates/utils/dismissedStore.d.ts +4 -0
- package/package.json +2 -2
|
@@ -42,4 +42,23 @@ export declare class AuthService {
|
|
|
42
42
|
* Extrai alias do access token (campo default)
|
|
43
43
|
*/
|
|
44
44
|
private static extractAliasFromAccessToken;
|
|
45
|
+
/**
|
|
46
|
+
* Detecta o alias a partir do subdomínio da URL atual.
|
|
47
|
+
*
|
|
48
|
+
* Padrões reconhecidos:
|
|
49
|
+
* - `educacao.sabergestao.com.br` → "sabergestao"
|
|
50
|
+
* - `<modulo>.<alias>.<tld>` → alias
|
|
51
|
+
* - `<alias>.qualiex.com` → alias
|
|
52
|
+
* - localhost / *.lovable.app / *.lovable.dev → null
|
|
53
|
+
*/
|
|
54
|
+
private static getSubdomainAlias;
|
|
55
|
+
/**
|
|
56
|
+
* Resolve o alias ativo seguindo prioridade:
|
|
57
|
+
* 1. Subdomínio da URL (se válido contra companies)
|
|
58
|
+
* 2. Alias do Supabase token (se válido)
|
|
59
|
+
* 3. Alias armazenado (se válido)
|
|
60
|
+
* 4. `default` do access token (se válido)
|
|
61
|
+
* 5. Primeira company
|
|
62
|
+
*/
|
|
63
|
+
private static resolveAliasFromContext;
|
|
45
64
|
}
|
|
@@ -34,6 +34,7 @@ export declare class TokenService {
|
|
|
34
34
|
* Implementa 3 estratégias de fallback para tokens grandes/problemáticos
|
|
35
35
|
*/
|
|
36
36
|
static parseJwtPayload(token: string): JwtPayload | null;
|
|
37
|
+
private static _parseJwtPayloadImpl;
|
|
37
38
|
/**
|
|
38
39
|
* Validação de tokens com diferenciação ID vs Access
|
|
39
40
|
* ID token é CRÍTICO - deve ser válido ou bloqueia login
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Increment a named counter and optionally warn after a threshold. */
|
|
2
|
+
export declare function authDebugCount(label: string, warnAfter?: number): number;
|
|
3
|
+
export declare function authDebugGetCount(label: string): number;
|
|
4
|
+
export declare function authDebugResetCounters(): void;
|
|
5
|
+
/** Mark a single point in time (uses performance.mark when available). */
|
|
6
|
+
export declare function authDebugMark(name: string): void;
|
|
7
|
+
/** Measure between two marks; logs duration. */
|
|
8
|
+
export declare function authDebugMeasure(name: string, start: string, end: string): number | null;
|
|
9
|
+
/** Wrap an async function with timing logs. */
|
|
10
|
+
export declare function authDebugTime<T>(label: string, fn: () => Promise<T>): Promise<T>;
|
|
11
|
+
/** Synchronous variant. */
|
|
12
|
+
export declare function authDebugTimeSync<T>(label: string, fn: () => T): T;
|
|
13
|
+
/** Print and reset the full counter table. */
|
|
14
|
+
export declare function authDebugFlush(context: string): void;
|
|
15
|
+
export declare function authDebugStartLongTaskWatch(context: string): void;
|
|
16
|
+
export declare function authDebugStopLongTaskWatch(): void;
|
|
17
|
+
export declare function authDebugLogTokenShape(label: string, token: string | null | undefined, payload?: any): void;
|
|
18
|
+
export declare const isAuthDebugEnabled: () => boolean;
|
|
@@ -6,6 +6,7 @@ export interface ComboboxProps<T = any> {
|
|
|
6
6
|
onChange?: (value: string | string[]) => void;
|
|
7
7
|
getOptionValue?: (option: T) => string;
|
|
8
8
|
getOptionLabel?: (option: T) => string;
|
|
9
|
+
renderOption?: (option: T) => React.ReactNode;
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
label?: string;
|
|
11
12
|
icon?: React.ComponentType<{
|
|
@@ -59,6 +60,6 @@ export interface ComboboxProps<T = any> {
|
|
|
59
60
|
*/
|
|
60
61
|
export declare function Combobox<T = any>({ multiple, options: optionsProp, items, // alias
|
|
61
62
|
value, onChange: onChangeProp, onValueChange, // alias
|
|
62
|
-
getOptionValue, getOptionLabel, placeholder, label, icon, emptyMessage, searchPlaceholder, disabled, required, isLoading, error, className, sortOptions, maxDisplayedBadges, popoverContainer, onOpen, onClose, clearable, showCheck }: ComboboxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
getOptionValue, getOptionLabel, renderOption, placeholder, label, icon, emptyMessage, searchPlaceholder, disabled, required, isLoading, error, className, sortOptions, maxDisplayedBadges, popoverContainer, onOpen, onClose, clearable, showCheck }: ComboboxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
63
64
|
export type SelectSearchProps<T = any> = ComboboxProps<T>;
|
|
64
65
|
export declare const SelectSearch: typeof Combobox;
|
package/dist/exports/ui.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente interno (renderiza `null`) que aplica automaticamente o idioma
|
|
3
|
+
* do usuário ao i18next assim que `useModuleAccess` resolver a associação atual.
|
|
4
|
+
*
|
|
5
|
+
* - Fonte de verdade: `association.language` (vindo de `/users/{userId}/associations`).
|
|
6
|
+
* - Não persiste em `localStorage` — o React-Query já cacheia o resultado e o
|
|
7
|
+
* próximo boot refaz a chamada para revalidar.
|
|
8
|
+
* - Reage a `switchUnit`: ao trocar de unidade, useModuleAccess refaz a query
|
|
9
|
+
* e o efeito reaplica o idioma da nova associação.
|
|
10
|
+
*
|
|
11
|
+
* Para que funcione, deve ser montado dentro do `AuthProvider`, `LocaleProvider`
|
|
12
|
+
* e `ModuleProvider`. `CoreProviders` já cuida disso.
|
|
13
|
+
*/
|
|
14
|
+
export declare function LanguageBootstrap(): any;
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Import this instead of importing directly from react-i18next.
|
|
6
6
|
*/
|
|
7
7
|
export { default as i18n, addAppTranslations } from './config';
|
|
8
|
+
export { LanguageBootstrap } from './LanguageBootstrap';
|
|
8
9
|
export { useTranslation } from 'react-i18next';
|
|
9
10
|
export { I18nextProvider } from 'react-i18next';
|
|
10
11
|
export { mergeTranslationFiles } from './utils';
|